-
Notifications
You must be signed in to change notification settings - Fork 305
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
Support rename operations #1250
Comments
What language server can we try this? |
Still not try it for real: As java class name and file name should match, I think eclipse jdt ls should be a valid example: To integrate with vim-lsp I found: https://github.com/lgranie/vim-lsp-java If I'm able to find a client that supports rename operations, will push here request/response communication. |
So finally using vscode and jdtls I as able to see all the communication for a rename: I create a maven project with:
And change the default Project attached with history of changes Communication:
Notice, ls detects that rename needs a rename in file:
|
I did the opposite operation but this time for files: So I rename
This triggers a document change:
|
So as far as I understand, a rename file operation in general (if language does not need semantic changes due to file rename is:
an option progress report can be received, and final response shows changes and possible document changes. |
Seems like need support for this first. #1069. |
Will try to collaborate in all those, thanks! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
#1265 is merged. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm curious about this feature:
https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#resourceChanges
for java files that might change imports secions in other files, but many times, that affects buildsystem, like change a source in a Makefile or meson.build.
I'm unsure if a language server protocol can cross languages and affect other environment in a project like build system
If that sounds interesting I can work on implement it
The text was updated successfully, but these errors were encountered: