diff options
Diffstat (limited to 'test/functional/fixtures/fake-lsp-server.lua')
-rw-r--r-- | test/functional/fixtures/fake-lsp-server.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/functional/fixtures/fake-lsp-server.lua b/test/functional/fixtures/fake-lsp-server.lua index 9bceb612a5..0dc0c8c2db 100644 --- a/test/functional/fixtures/fake-lsp-server.lua +++ b/test/functional/fixtures/fake-lsp-server.lua @@ -757,6 +757,35 @@ function tests.code_action_with_resolve() } end +function tests.code_action_server_side_command() + skeleton({ + on_init = function() + return { + capabilities = { + codeActionProvider = { + resolveProvider = false, + }, + }, + } + end, + body = function() + notify('start') + local cmd = { + title = 'Command 1', + command = 'dummy1', + } + expect_request('textDocument/codeAction', function() + return nil, { cmd } + end) + expect_request('workspace/executeCommand', function() + return nil, cmd + end) + notify('shutdown') + end, + }) +end + + function tests.code_action_filter() skeleton { on_init = function() |