fix(lsp): validate that workspace_edit isn't nil (#39947)

This commit is contained in:
Maria Solano
2026-05-21 19:00:02 -07:00
committed by GitHub
parent dee602e659
commit 71c72c3409

View File

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