From a9060058d33791569b2e05b4247741c135540a32 Mon Sep 17 00:00:00 2001 From: aboyko Date: Mon, 15 May 2023 12:59:33 -0400 Subject: [PATCH] Don't add JMX rags for tests launches --- .../vscode-spring-boot/lib/debug-config-provider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts b/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts index 4599476a6..192acf338 100644 --- a/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts +++ b/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts @@ -19,7 +19,7 @@ const TEST_RUNNER_MAIN_CLASSES = [ class SpringBootDebugConfigProvider implements DebugConfigurationProvider { resolveDebugConfigurationWithSubstitutedVariables(folder: WorkspaceFolder | undefined, debugConfiguration: DebugConfiguration, token?: CancellationToken): ProviderResult { - if (isActuatorOnClasspath(debugConfiguration)) { + if (!TEST_RUNNER_MAIN_CLASSES.includes(debugConfiguration.mainClass) && isActuatorOnClasspath(debugConfiguration)) { if (debugConfiguration.vmArgs) { if (debugConfiguration.vmArgs.indexOf(JMX_VM_ARG) < 0) { debugConfiguration.vmArgs += ` ${JMX_VM_ARG}true`;