-
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
CodeInlays shows up next to Lombok annotations #2323
Comments
There are two approaches that may fix this problem. The first one is to check the field Which can also be found in lombok project itself: https://github.com/projectlombok/lombok/blob/70bda546114ceccc7714bd6060d96edbcd25e3a0/src/eclipseAgent/lombok/launch/PatchFixesHider.java#L395 But this might not work for other code generation though. Another thought is to compare the node length with real expression's length. Not ideal enough but should be able to fix most cases. |
I tried running with remote server mode. But the lombox doesn't kick in, do i need to do any classpath changes to the ls launcher ? |
Found it, need to add the lombok agent into the launcher |
Personally, I prefer to check |
Not sure if just checking for |
Check for $isGenerated on the JDT ASTNode to see if it is generated by lombok according to https://github.com/projectlombok/lombok/blob/70bda546114ceccc7714bd6060d96edbcd25e3a0/src/eclipseAgent/lombok/launch/PatchFixesHider.java#L395
Check for $isGenerated on the JDT ASTNode to see if it is generated by lombok according to https://github.com/projectlombok/lombok/blob/70bda546114ceccc7714bd6060d96edbcd25e3a0/src/eclipseAgent/lombok/launch/PatchFixesHider.java#L395
Check for $isGenerated on the JDT ASTNode to see if it is generated by lombok according to https://github.com/projectlombok/lombok/blob/731bb185077918af8bc1e6a9e6bb538b2d3fbbd8/src/eclipseAgent/lombok/launch/PatchFixesHider.java#L398
Check for $isGenerated on the JDT ASTNode to see if it is generated by lombok according to https://github.com/projectlombok/lombok/blob/731bb185077918af8bc1e6a9e6bb538b2d3fbbd8/src/eclipseAgent/lombok/launch/PatchFixesHider.java#L398
This happens for other type of annotations which ends up generating code which could result inlays.
The text was updated successfully, but these errors were encountered: