summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/lsp/initialize_request.json6
-rw-r--r--cli/tests/lsp/initialize_request_disabled.json29
2 files changed, 35 insertions, 0 deletions
diff --git a/cli/tests/lsp/initialize_request.json b/cli/tests/lsp/initialize_request.json
index 960420bfd..722a3c783 100644
--- a/cli/tests/lsp/initialize_request.json
+++ b/cli/tests/lsp/initialize_request.json
@@ -9,6 +9,12 @@
"version": "1.0.0"
},
"rootUri": null,
+ "initializationOptions": {
+ "enable": true,
+ "lint": true,
+ "importMap": null,
+ "unstable": false
+ },
"capabilities": {
"textDocument": {
"synchronization": {
diff --git a/cli/tests/lsp/initialize_request_disabled.json b/cli/tests/lsp/initialize_request_disabled.json
new file mode 100644
index 000000000..f763375f8
--- /dev/null
+++ b/cli/tests/lsp/initialize_request_disabled.json
@@ -0,0 +1,29 @@
+{
+ "jsonrpc": "2.0",
+ "id": 1,
+ "method": "initialize",
+ "params": {
+ "processId": 0,
+ "clientInfo": {
+ "name": "test-harness",
+ "version": "1.0.0"
+ },
+ "rootUri": null,
+ "initializationOptions": {
+ "enable": false,
+ "lint": true,
+ "importMap": null,
+ "unstable": false
+ },
+ "capabilities": {
+ "textDocument": {
+ "synchronization": {
+ "dynamicRegistration": true,
+ "willSave": true,
+ "willSaveWaitUntil": true,
+ "didSave": true
+ }
+ }
+ }
+ }
+}