From 097c3379ba8a5dce5d9a73771693205d8178792d Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 22 Dec 2020 21:21:18 +1100 Subject: feat(lsp): support the unstable setting (#8851) --- cli/tests/lsp/did_open_notification_unstable.json | 12 +++++++++ cli/tests/lsp/initialize_request_unstable.json | 30 +++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 cli/tests/lsp/did_open_notification_unstable.json create mode 100644 cli/tests/lsp/initialize_request_unstable.json (limited to 'cli/tests/lsp') 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 + } + } + } + } +} -- cgit v1.2.3