From dcf0904276a2cb18988253a36628cd513cb33f8a Mon Sep 17 00:00:00 2001 From: Snjezana Peco Date: Tue, 26 Nov 2024 23:33:43 +0100 Subject: [PATCH] Lombok agent doesn't need to be configured if javac is enabled Signed-off-by: Snjezana Peco --- src/lombokSupport.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lombokSupport.ts b/src/lombokSupport.ts index 4d791223b..d515d3c67 100644 --- a/src/lombokSupport.ts +++ b/src/lombokSupport.ts @@ -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;