-
Notifications
You must be signed in to change notification settings - Fork 438
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
Rename class won't save the file #871
Comments
Reproed this issue on the latest version. |
I can reproduce this issue. |
Indeed, this is new. Looks like a bug in vscode, since jdt.ls hasn't changed anything in that area in a long time. |
I've opened microsoft/vscode#72343 upstream |
The problem is fixed in VSCode. You can use the Insiders build until the next official release (1st week of May, probably) |
Great. I'll wait for the next official release then |
When renaming a class (F2) the class symbol and the file itself are renamed properly. However, when I try to save the file the following error is displayed:
Failed to save 'NewName.java': The content on disk is newer. Please compare your version with the one on disk.
When I now click on the compare button (part of the error popup) and accept the change then the renamed class is eventually saved.
Environment
Steps To Reproduce
Current Result
Extra step to save/ accept the renamed class.
Expected Result
After changing the name of the class via F2, the class symbol as well as the file name are changed and saved.
Additional Informations
When autosave is turned on the error occurs instantly, with autosave turned off the error popup is displayed when saving manually.
The text was updated successfully, but these errors were encountered: