We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd032ee commit 8fa438fCopy full SHA for 8fa438f
lua/flutter-tools/lsp/rename.lua
@@ -68,8 +68,11 @@ function M.rename(new_name, opts)
68
params.newName = name
69
local handler = client.handlers["textDocument/rename"] or lsp.handlers["textDocument/rename"]
70
client.request("textDocument/rename", params, function(...)
71
- if result then lsp.util.apply_workspace_edit(result, client.offset_encoding) end
72
handler(...)
+ if result then lsp.util.apply_workspace_edit(result, client.offset_encoding) end
73
+
74
+ -- Save all modified buffers after applying workspace edits
75
+ vim.cmd("silent! wa")
76
end, bufnr)
77
end
78
0 commit comments