Skip to content

Renaming class name doesn't work #3064

@yuyully

Description

@yuyully
Environment
  • Operating System: windows/mac
  • JDK version: 17.0.6
  • Visual Studio Code version: 1.77.1
  • Java extension version:1.17.0
Steps To Reproduce
  1. Open https://github.com/redhat-developer/vscode-java/tree/master/test/resources/projects/maven/salut
  2. Open Foo3.java, put the cursor at the class name in .java file > Right click and select Rename Symbol
Current Result

It shows as 'Renaming this element is not supported'. But renaming file name is ok and the class name will be updated.
image

Expected Result

Renaming from both file name and class name should be ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions