Lombok agent doesn't need to be configured if javac is enabled#3877
Lombok agent doesn't need to be configured if javac is enabled#3877snjeza wants to merge 1 commit intoredhat-developer:mainfrom
Conversation
src/lombokSupport.ts
Outdated
| } | ||
| // https://github.com/redhat-developer/vscode-java/issues/3875 | ||
| // Lombok agent doesn't need to be configured if java.jdt.ls.javac.enabled is on | ||
| if ("on" === vscode.workspace.getConfiguration().get("java.jdt.ls.javac.enabled")) { |
There was a problem hiding this comment.
The flag "java.jdt.ls.javac.enabled" only controls whether to delegate compilation and DOM AST to javac, which does not need an additional lombok agent. However, if code completion continues to rely on the ECJ-based engine, the Lombok agent will still be required.
Therefore, the lombok agent is not needed only when both "java.jdt.ls.javac.enabled" and "java.completion.engine": "dom" settings are enabled.
There was a problem hiding this comment.
What about SourceIndexer.DOM_BASED_INDEXER ? Lombok is affect by source references right ?
Update: Could we just create a separate setting for the dom based indexing as well ? Then just update the instructions for the extra features : https://github.com/redhat-developer/vscode-java/wiki/Javac%E2%80%90based-compilation-support
There was a problem hiding this comment.
Therefore, the lombok agent is not needed only when both "java.jdt.ls.javac.enabled" and "java.completion.engine": "dom" settings are enabled.
What about SourceIndexer.DOM_BASED_INDEXER ? Lombok is affect by source references right ?
Fixed.
There was a problem hiding this comment.
The issue is we don't even set the dom based indexer at
vscode-java/src/javaServerStarter.ts
Lines 143 to 145 in 2f57115
No description provided.