-
Notifications
You must be signed in to change notification settings - Fork 408
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
F2 rename of Lombok @Singular attribute does nothing #2828
Conversation
test this please |
1 similar comment
test this please |
This comment was marked as resolved.
This comment was marked as resolved.
@rgrunber This PR is not ready yet. |
@rgrunber I have updated the PR. It is ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine. I remember a very similar issue so wanted to track it down. It's #1561 .
Lines 77 to 81 in 847f305
IJavaElement elementToSearch = JDTUtils.findElementAtSelection(typeRoot, param.getPosition().getLine(), param.getPosition().getCharacter(), this.preferenceManager, monitor); | |
if (elementToSearch == null) { | |
int offset = JsonRpcHelpers.toOffset(typeRoot.getBuffer(), param.getPosition().getLine(), param.getPosition().getCharacter()); | |
elementToSearch = typeRoot.getElementAt(offset); | |
} |
Is the code inside the if statement still necessary if we're moving the logic into JDTUtils#findElementAtSelection(..)
?
Yes, it is. See 8ba5bee#diff-38af31aa96ae8ee1debae74bf388b43dea8891646b1032ecdb2f4a7ea3e06f8cR1011 |
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
test this please |
Fixes redhat-developer/vscode-java#3203