diff options
author | Mathias Fußenegger <mfussenegger@users.noreply.github.com> | 2021-09-28 23:04:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 14:04:01 -0700 |
commit | ec4731d982031e363a59efd4566fc72234bb43c8 (patch) | |
tree | c0f6dabcdd7c0ae86da4fd74da44dd80abe2dba3 /test/functional/fixtures/fake-lsp-server.lua | |
parent | 3507d58dfb87923aa4031cbefaf1ef576a45dcaf (diff) | |
download | rneovim-ec4731d982031e363a59efd4566fc72234bb43c8.tar.gz rneovim-ec4731d982031e363a59efd4566fc72234bb43c8.tar.bz2 rneovim-ec4731d982031e363a59efd4566fc72234bb43c8.zip |
feat(lsp): add codeAction/resolve support (#15818)
Closes https://github.com/neovim/neovim/issues/15339 and https://github.com/neovim/neovim/issues/15828
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 297641849d..8e03d9a46e 100644 --- a/test/functional/fixtures/fake-lsp-server.lua +++ b/test/functional/fixtures/fake-lsp-server.lua @@ -564,6 +564,35 @@ function tests.decode_nil() } end + +function tests.code_action_with_resolve() + skeleton { + on_init = function() + return { + capabilities = { + codeActionProvider = { + resolveProvider = true + } + } + } + end; + body = function() + notify('start') + local cmd = { + title = 'Command 1', + command = 'dummy1' + } + expect_request('textDocument/codeAction', function() + return nil, { cmd, } + end) + expect_request('codeAction/resolve', function() + return nil, cmd + end) + notify('shutdown') + end; + } +end + -- Tests will be indexed by TEST_NAME local kill_timer = vim.loop.new_timer() |