-
Notifications
You must be signed in to change notification settings - Fork 441
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
Refactor when moving files #641
Comments
The original change was made for Eclipse Che. @yaohaizh can we also enable this feature at vscode side? |
That's literally the one thing that's stopping this (amazing) tool to become the # 1 choice for Java development. I am the only developer in a project of near 100 Java developers who is using VSCode for Java. People are very impressed when I show my Java code in VSCode and also skeptical. So they ask "can it do this?" or "I bet if you try this it won't let you...". And refactoring is a key point. I confess I've been relying on Eclipse to do more complex code refactoring... It'd be great to have this fetaure incorporated in the tool. |
Automatically fixing imports across the project and package declarations would be a killer feature for Java in vscode. |
See microsoft/vscode#43768, vscode will fire an FileWillRenameEvent when the user is renaming or moving (drag and drop) files in file explorer. By listening at this event, the language server is able to update package declaration and references. Currently the change is proposed at vscode insider. When it's officially ready, it will unblock us on the refactoring features such as move/rename file/rename package name. |
What is the current status on this? There's some work merged here microsoft/vscode#85830 |
I also like this feature |
Is there a way I can get notification for when this fix is released? |
@noel-yap You can subscribe to this issue and choose to only get notified once it closes. |
Hi any update on this? |
Automatically adjust imports and package declarations when moving a class in the file explorer. (As implemented in eclipse-jdtls/eclipse.jdt.ls#683 ?)
Environment
Windows 10
1.8.0_144
1.27.2
0.30.0
Steps To Reproduce
Current Result
Expected Result
The text was updated successfully, but these errors were encountered: