-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement textDocument/rename #679
Comments
Blocked by fix in scalameta/scalameta#1859 to handle renaming of overridden methods in anonymous classes |
Up for debate: should "rename symbol" work for symbols that are not defined in the workspace? For example, should it be possible to rename references to a class defined in library dependencies? In IntelliJ, the symbol must be defined in the workspace but sometimes this limitation might be undesirable. |
@olafurpg I'm a bit puzzled by the use case. If the symbol is defined in a dependency, wouldn't renaming references to that symbol just break the usage site? |
I think you are right, we should restrict rename for symbols that are defined in the workspace. |
Is anyone currently working on this? Just as an anecdotal data point, I just watched a colleague try VS Code + Metals for the first time, discover that they couldn't rename symbols, and switch back to IntelliJ within 5 minutes 😢 |
@olafurpg started to work on some necessary work with |
The rename request is sent from the client to the server to perform a workspace-wide rename of a symbol. https://microsoft.github.io/language-server-protocol/specification#textDocument_rename
Some challenges:
The text was updated successfully, but these errors were encountered: