fix(lsp.util): inconsistent handling of offset_encoding

This commit is contained in:
Lewis Russell
2024-10-16 13:17:10 +01:00
parent ff1d7d4299
commit acbc6a7f91
4 changed files with 14 additions and 4 deletions

View File

@@ -2586,7 +2586,7 @@ describe('LSP', function()
},
},
}
eq(false, pcall(exec_lua, 'vim.lsp.util.apply_workspace_edit(...)', edit))
eq(false, pcall(exec_lua, 'vim.lsp.util.apply_workspace_edit(...)', edit, 'utf-16'))
eq(false, vim.uv.fs_stat(tmpfile) ~= nil)
end)
end)