-
Notifications
You must be signed in to change notification settings - Fork 401
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
Add rename support #43
Comments
duplicate of #19 ? |
yes, but this one has more info. Closing #19. |
Both duplicates are closed, this one should be open. |
For more proper support see microsoft/language-server-protocol#41 and its VS Code counterpart microsoft/vscode#10659 |
|
Signed-off-by: Fred Bricon <fbricon@gmail.com>
This reverts commit 58d2a3e.
…dtls#43 Signed-off-by: Fred Bricon <fbricon@gmail.com>
* 1.add variable list Signed-off-by: andxu <andxu@microsoft.com> * 1.fix a constructor error: missing field assignment. Signed-off-by: andxu <andxu@microsoft.com> * ArrayUtils.toStringArray is not available in a low version, remove the usage. Signed-off-by: andxu <andxu@microsoft.com> * add javadoc back Signed-off-by: andxu <andxu@microsoft.com> * remove local debug code Signed-off-by: andxu <andxu@microsoft.com> * remove local debug code Signed-off-by: andxu <andxu@microsoft.com> * adjust class signature about util class Signed-off-by: andxu <andxu@microsoft.com> * change the options per request. Signed-off-by: andxu <andxu@microsoft.com> * change the options per request. Signed-off-by: andxu <andxu@microsoft.com> * 1. check all thread running to recycle all ids. 2. remove a unused method in variable formatter. Signed-off-by: andxu <andxu@microsoft.com> * 1. check all thread running to recycle all ids. 2. remove a unused method in variable formatter. Signed-off-by: andxu <andxu@microsoft.com>
Renaming of classes seems to work but if the renamed class import is a path e.g. |
@tepf without proper support on LSP for file level operations it will not get any better. Perhaps we should disable rename for classes completely for now. @fbricon WDYT? |
I understand that file level operations are needed in case the file is named after the class or maybe moving the file around. But shouldn't basic renaming still work while preserving the namespace of the class? Please don't disable it for now. It's still better than nothing. |
@gorkem I think we should keep it. Anonymous class renaming works fine. Current situation just requires 1 manual operation to complete the Class renaming, which shouldn't be a big deal. Since package renaming is disabled (intentionally or not), we should be fine. @tepf please open another ticket about renaming the import, this is a specific use case that's broken in jdt.ls (works fine in stock Eclipse). |
@snjeza eclipse-lsp4j/lsp4j#257 needs to be tackled 1st. |
@fbricon LSP4J PR: eclipse-lsp4j/lsp4j#277 |
Mostly fixed with #864 . Still need to support package renaming |
Now that the primary document provider is hooked to the text buffer framework we can add rename support as well.
The text was updated successfully, but these errors were encountered: