microsoft / vscode-java-pack

VS Code extensions for Java developers.
Other
291 stars 133 forks source link

Modifying class name and file name are out of sync #1287

Closed loralei28 closed 9 months ago

loralei28 commented 9 months ago

Environment:

Step to Reproduce:

  1. Clone and open project https://github.com/redhat-developer/vscode-java/tree/master/test/resources/projects/gradle/simple-gradle
  2. Open Foo.java file
  3. Click on class name > Rename Symbol > change name to Foo12

Expected Behavior: After modifying the class name or file name, it will be synchronized. Actual Behavior: image

testforstephen commented 9 months ago

Closing it since I cannot reproduce it.

If you rename a class before Java extension is ready (the status bar shows Java: Ready), it won't update the file name.

If this still happens when the Java extension is ready, feel free to reopen it.