-
Notifications
You must be signed in to change notification settings - Fork 420
quickfix not available where cursor lands by default on annotations #1812
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
Conversation
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.
I noticed that if you save the editor (regardless of state), then the error range reverts back to excluding the the `@' and any possible whitespace between it and the annotation name.
@rgrunber I have updated the PR. |
The issue seems fixed for regular spaces between eg.
I think the problem is in WorkspaceDiagnosticsHandler#convertRange(..). The marker attribute's line number (based off the position of the type) is used for the starting range, but if the |
@rgrunber I have updated the PR. |
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.
The change works for me, so I would be fine with submitting. Just a few small things to address.
...clipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/BaseDiagnosticsHandler.java
Outdated
Show resolved
Hide resolved
...e.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/WorkspaceDiagnosticsHandler.java
Outdated
Show resolved
Hide resolved
...e.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/WorkspaceDiagnosticsHandler.java
Outdated
Show resolved
Hide resolved
...e.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/WorkspaceDiagnosticsHandler.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/JDTUtils.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Snjezana Peco <[email protected]>
@rgrunber I have updated the PR. |
Fixes redhat-developer/vscode-java#1992
Signed-off-by: Snjezana Peco [email protected]