Skip to content

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

Closed

Description

@loralei28

Environment:

  • VS Code Version:1.85.2
  • Extension Version:1.27.0
  • JDK Type & Version:17.0.9 <build 17.0.9+9-Ubuntu-122.04>
  • OS Type & Version: WSL

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

Activity

  1. testforstephen commented on Feb 5, 2024

    @testforstephen
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions