Skip to content

Commit

Permalink
Lombok agent doesn't need to be configured if javac is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Snjezana Peco <[email protected]>
  • Loading branch information
snjeza committed Nov 26, 2024
1 parent 2f57115 commit dcf0904
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lombokSupport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ export function addLombokParam(context: ExtensionContext, params: string[]) {
for (let i = deleteIndex.length - 1; i >= 0; i--) {
params.splice(deleteIndex[i], 1);
}
// 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")) {
return;
}
// add -javaagent arg to support Lombok.
// use the extension's Lombok version by default.
isExtensionLombok = true;
Expand Down

0 comments on commit dcf0904

Please sign in to comment.