From f7e416bc7fbb8b1bc17e180d5aeb2e4f00256bea Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 10 Aug 2021 09:56:34 +1000 Subject: feat(lsp): support clients which do not support disabled code actions (#11612) Closes: #11610 --- .../lsp/initialize_params_ca_no_disabled.json | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 cli/tests/lsp/initialize_params_ca_no_disabled.json (limited to 'cli/tests/lsp/initialize_params_ca_no_disabled.json') diff --git a/cli/tests/lsp/initialize_params_ca_no_disabled.json b/cli/tests/lsp/initialize_params_ca_no_disabled.json new file mode 100644 index 000000000..3df87aded --- /dev/null +++ b/cli/tests/lsp/initialize_params_ca_no_disabled.json @@ -0,0 +1,64 @@ +{ + "processId": 0, + "clientInfo": { + "name": "test-harness", + "version": "1.0.0" + }, + "rootUri": null, + "initializationOptions": { + "enable": true, + "cache": null, + "codeLens": { + "implementations": true, + "references": true, + "test": true + }, + "config": "", + "importMap": null, + "lint": true, + "suggest": { + "autoImports": true, + "completeFunctionCalls": false, + "names": true, + "paths": true, + "imports": { + "hosts": {} + } + }, + "unstable": false + }, + "capabilities": { + "textDocument": { + "codeAction": { + "codeActionLiteralSupport": { + "codeActionKind": { + "valueSet": [ + "quickfix", + "refactor" + ] + } + }, + "isPreferredSupport": true, + "dataSupport": true, + "resolveSupport": { + "properties": [ + "edit" + ] + } + }, + "foldingRange": { + "lineFoldingOnly": true + }, + "synchronization": { + "dynamicRegistration": true, + "willSave": true, + "willSaveWaitUntil": true, + "didSave": true + } + }, + "workspace": { + "configuration": true, + "workspaceFolders": true + } + } +} -- cgit v1.2.3