Skip to content

Commit

Permalink
fix(lsp): update workspace/applyEdit handler signature (neovim#15573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Alvarez committed Sep 5, 2021
1 parent 23fe6db commit 3f526fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/lua/vim/lsp/handlers.lua
Expand Up @@ -144,7 +144,7 @@ M['textDocument/codeAction'] = function(_, result)
end

--see: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_applyEdit
M['workspace/applyEdit'] = function(_, _, workspace_edit)
M['workspace/applyEdit'] = function(_, workspace_edit)
if not workspace_edit then return end
-- TODO(ashkan) Do something more with label?
if workspace_edit.label then
Expand Down
2 changes: 1 addition & 1 deletion test/functional/plugin/lsp_spec.lua
Expand Up @@ -1226,7 +1226,7 @@ describe('LSP', function()
label = nil;
edit = {};
}
return vim.lsp.handlers['workspace/applyEdit'](nil, nil, apply_edit)
return vim.lsp.handlers['workspace/applyEdit'](nil, apply_edit)
]])
end)
end)
Expand Down

0 comments on commit 3f526fe

Please sign in to comment.