From b091c6c8c9cf33cc27b25560feaeea1eb23dd345 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 22 Dec 2020 16:42:32 +1100 Subject: fix(lsp): respect enable flag for requests (#8850) --- cli/tests/lsp/initialize_request.json | 6 ++++++ cli/tests/lsp/initialize_request_disabled.json | 29 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 cli/tests/lsp/initialize_request_disabled.json (limited to 'cli/tests') 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 + } + } + } + } +} -- cgit v1.2.3