diff options
Diffstat (limited to 'cli/lsp/language_server.rs')
-rw-r--r-- | cli/lsp/language_server.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs index e6880f0df..755151a24 100644 --- a/cli/lsp/language_server.rs +++ b/cli/lsp/language_server.rs @@ -2226,7 +2226,7 @@ mod tests { }, "end": { "line": 0, - "character": 28 + "character": 27 } } }), @@ -2255,9 +2255,9 @@ mod tests { "contents": [ { "language": "typescript", - "value": "const Deno.permissions: Deno.Permissions" + "value": "function Deno.openPlugin(filename: string): number" }, - "**UNSTABLE**: Under consideration to move to `navigator.permissions` to\nmatch web API. It could look like `navigator.permissions.query({ name: Deno.symbols.read })`." + "**UNSTABLE**: new API, yet to be vetted.\n\nOpen and initialize a plugin.\n\n```ts\nconst rid = Deno.openPlugin(\"./path/to/some/plugin.so\");\nconst opId = Deno.core.ops()[\"some_op\"];\nconst response = Deno.core.dispatch(opId, new Uint8Array([1,2,3,4]));\nconsole.log(`Response from plugin ${response}`);\n```\n\nRequires `allow-plugin` permission.\n\nThe plugin system is not stable and will change in the future, hence the\nlack of docs. For now take a look at the example\nhttps://github.com/denoland/deno/tree/master/test_plugin" ], "range": { "start": { @@ -2266,7 +2266,7 @@ mod tests { }, "end": { "line": 0, - "character": 28 + "character": 27 } } }), |