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 GitHub
parent 23fe6dba13
commit 3f526feebf
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)