fix(lsp): update workspace/applyEdit handler signature (#15573)

This commit is contained in:
Jose Alvarez 2021-09-06 04:48:54 +09:00 committed by Justin M. Keyes
parent cd8f6c5fb7
commit a6eab6e25e
2 changed files with 3 additions and 3 deletions

View File

@ -143,8 +143,8 @@ M['textDocument/codeAction'] = function(_, result)
end
end
--@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_applyEdit
M['workspace/applyEdit'] = function(_, _, workspace_edit)
--see: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_applyEdit
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

View File

@ -1224,7 +1224,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)