Skip to content
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

Renaming a symbol that has a Lombok @Getter or @Setter annotation also renames the annotations #1203

Open
paronix opened this issue May 30, 2023 · 0 comments

Comments

@paronix
Copy link

paronix commented May 30, 2023

Environment:

  • VS Code Version: 1.78.2
  • Extension Version: 0.25.11
  • JDK Type & Version: 20
  • OS Type & Version: Windows 10

Step to Reproduce:

In a class, simply define a field and add @getter and/or @Setter annotations to the field.

@Getter
private final String message = "Hello";

Put your cursor on the field and press f2 to start renaming the symbol. Rename it to for instance resultMessage.

Expected Behavior:

I would expect the code to end up like this:

@Getter
private final String resultMessage = "Hello";

Actual Behavior:

@getResultMessage
private final String resultMessage = "Hello";

Related Issues:

When placing the @getter annotation at the Class level, the annotation is untouched.

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

No branches or pull requests

2 participants