Provide offset_encoding argument
This commit is contained in:
@@ -29,9 +29,10 @@ function M.rename()
|
|||||||
|
|
||||||
params.newName = new_name
|
params.newName = new_name
|
||||||
|
|
||||||
buf_request(params.bufnr, 'textDocument/rename', params, function(_, result)
|
buf_request(params.bufnr, 'textDocument/rename', params, function(_, result, ctx)
|
||||||
if result ~= nil then
|
if result ~= nil then
|
||||||
vim.lsp.util.apply_workspace_edit(result)
|
local client = vim.lsp.get_client_by_id(ctx.client_id)
|
||||||
|
vim.lsp.util.apply_workspace_edit(result, client.offset_encoding)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user