diff options
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 + } + } + } + } +} |