Don't add JMX rags for tests launches

This commit is contained in:
aboyko
2023-05-15 12:59:33 -04:00
parent 6082456a0e
commit a9060058d3

View File

@@ -19,7 +19,7 @@ const TEST_RUNNER_MAIN_CLASSES = [
class SpringBootDebugConfigProvider implements DebugConfigurationProvider {
resolveDebugConfigurationWithSubstitutedVariables(folder: WorkspaceFolder | undefined, debugConfiguration: DebugConfiguration, token?: CancellationToken): ProviderResult<DebugConfiguration> {
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`;