diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 111ce83f71..085dd0f7f6 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -536,6 +536,7 @@ end ---@param position_encoding 'utf-8'|'utf-16'|'utf-32' (required) ---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#workspace_applyEdit function M.apply_workspace_edit(workspace_edit, position_encoding) + vim.validate('workspace_edit', workspace_edit, 'table') vim.validate('position_encoding', position_encoding, 'string') if workspace_edit.documentChanges then