mirror of
https://github.com/neovim/neovim
synced 2025-07-21 05:42:46 +00:00
fix(lsp): update workspace/applyEdit handler signature (#15573)
This commit is contained in:
@ -144,7 +144,7 @@ M['textDocument/codeAction'] = function(_, result)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--see: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_applyEdit
|
--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
|
if not workspace_edit then return end
|
||||||
-- TODO(ashkan) Do something more with label?
|
-- TODO(ashkan) Do something more with label?
|
||||||
if workspace_edit.label then
|
if workspace_edit.label then
|
||||||
|
@ -1226,7 +1226,7 @@ describe('LSP', function()
|
|||||||
label = nil;
|
label = nil;
|
||||||
edit = {};
|
edit = {};
|
||||||
}
|
}
|
||||||
return vim.lsp.handlers['workspace/applyEdit'](nil, nil, apply_edit)
|
return vim.lsp.handlers['workspace/applyEdit'](nil, apply_edit)
|
||||||
]])
|
]])
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user