Skip to content

Commit

Permalink
fix: lsp rename when files with import is opened in another buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
m-salman-a authored and sidlatau committed Sep 20, 2023
1 parent 8690d0b commit 29da857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/flutter-tools/lsp/rename.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ function M.rename(new_name, options)
params.newName = name
local handler = client.handlers["textDocument/rename"] or lsp.handlers["textDocument/rename"]
client.request("textDocument/rename", params, function(...)
handler(...)
if result then lsp.util.apply_workspace_edit(result, client.offset_encoding) end
handler(...)
end, bufnr)
end

Expand Down

0 comments on commit 29da857

Please sign in to comment.