mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(lsp): update workspace/applyEdit handler signature (#15573)
This commit is contained in:
parent
23fe6dba13
commit
3f526feebf
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user