LSP: Use workspace/willRenameFiles
to handle rename resource operations
#8942
Labels
workspace/willRenameFiles
to handle rename resource operations
#8942
With the addition of LSP renaming in #8584 we now declare
willRename
support - that we will send aworkspace/willRenameFiles
before renaming a file. The spec says that this should be used for workspace edits as well as user commands (emphasis mine):Currently we just rename the file when receiving a workspace edit that attempts to rename a file (which was the proper behavior when we didn't declare willRename support):
helix/helix-term/src/commands/lsp.rs
Lines 827 to 837 in b023faa
But this needs to be updated to use willRenameFiles.
This causes a bug with rust analyzer for example, see #8923.
The text was updated successfully, but these errors were encountered: