From b31beafc3a6c4573274e9817b2e6ca4512aba218 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Thu, 4 Sep 2025 13:19:58 +0200 Subject: [PATCH] gateway: fix helper command not exiting if the IDE was not launched initially GitOrigin-RevId: 729ad0d9ce75db5769078e423869b9c88356c923 --- .../jetbrains/performancePlugin/StopTelemetryStarter.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/StopTelemetryStarter.kt b/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/StopTelemetryStarter.kt index df5f2e2717d5..9e0060b8c194 100644 --- a/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/StopTelemetryStarter.kt +++ b/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/StopTelemetryStarter.kt @@ -2,16 +2,19 @@ package com.jetbrains.performancePlugin import com.intellij.ide.CliResult -import com.intellij.openapi.application.ApplicationStarter +import com.intellij.openapi.application.ModernApplicationStarter import com.intellij.openapi.diagnostic.logger import com.intellij.platform.diagnostic.telemetry.TelemetryManager +import kotlin.system.exitProcess -internal class StopTelemetryStarter : ApplicationStarter { +internal class StopTelemetryStarter : ModernApplicationStarter() { override fun canProcessExternalCommandLine(): Boolean = true - override fun main(args: List) { + override suspend fun start(args: List) { logger().info("IDE is not running") println("IDE is not running") + + exitProcess(0) } override suspend fun processExternalCommandLine(args: List, currentDirectory: String?): CliResult {