diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-12-22 21:21:18 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-22 21:21:18 +1100 |
commit | 097c3379ba8a5dce5d9a73771693205d8178792d (patch) | |
tree | 085b775e016f219782455d923f8bdf924916d4e0 /cli/tests | |
parent | b091c6c8c9cf33cc27b25560feaeea1eb23dd345 (diff) |
feat(lsp): support the unstable setting (#8851)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/lsp/did_open_notification_unstable.json | 12 | ||||
-rw-r--r-- | cli/tests/lsp/initialize_request_unstable.json | 30 |
2 files changed, 42 insertions, 0 deletions
diff --git a/cli/tests/lsp/did_open_notification_unstable.json b/cli/tests/lsp/did_open_notification_unstable.json new file mode 100644 index 000000000..583eafdef --- /dev/null +++ b/cli/tests/lsp/did_open_notification_unstable.json @@ -0,0 +1,12 @@ +{ + "jsonrpc": "2.0", + "method": "textDocument/didOpen", + "params": { + "textDocument": { + "uri": "file:///a/file.ts", + "languageId": "typescript", + "version": 1, + "text": "console.log(Deno.permissions);\n" + } + } +} diff --git a/cli/tests/lsp/initialize_request_unstable.json b/cli/tests/lsp/initialize_request_unstable.json new file mode 100644 index 000000000..8c086c838 --- /dev/null +++ b/cli/tests/lsp/initialize_request_unstable.json @@ -0,0 +1,30 @@ +{ + "jsonrpc": "2.0", + "id": 1, + "method": "initialize", + "params": { + "processId": 0, + "clientInfo": { + "name": "test-harness", + "version": "1.0.0" + }, + "rootUri": null, + "initializationOptions": { + "enable": true, + "lint": true, + "unstable": true, + "config": null, + "importMap": null + }, + "capabilities": { + "textDocument": { + "synchronization": { + "dynamicRegistration": true, + "willSave": true, + "willSaveWaitUntil": true, + "didSave": true + } + } + } + } +} |