fix(lsp): forward offset_encoding to apply_text_edits (#17075)

This commit is contained in:
Michael Lingelbach
2022-01-13 06:47:35 -08:00
committed by GitHub
parent 4570df0b43
commit 9304ee3874
3 changed files with 7 additions and 5 deletions

View File

@@ -771,7 +771,7 @@ function M.apply_workspace_edit(workspace_edit, offset_encoding)
for uri, changes in pairs(all_changes) do
local bufnr = vim.uri_to_bufnr(uri)
M.apply_text_edits(changes, bufnr)
M.apply_text_edits(changes, bufnr, offset_encoding)
end
end