From a3a39924cab9734c00089d0fb438092c85bc5ea0 Mon Sep 17 00:00:00 2001 From: Anastasia Katsman Date: Mon, 24 Mar 2025 14:55:30 +0100 Subject: [PATCH] WaitForFinishedCodeAnalysis: fix not rethrowing CancellationException GitOrigin-RevId: a91c594c4e8a8fd7708a7f7f8f6adc06570a7dbf --- .../performancePlugin/commands/WaitForFinishedCodeAnalysis.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/commands/WaitForFinishedCodeAnalysis.kt b/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/commands/WaitForFinishedCodeAnalysis.kt index de887b74cabf..0cd1cfede9d0 100644 --- a/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/commands/WaitForFinishedCodeAnalysis.kt +++ b/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/commands/WaitForFinishedCodeAnalysis.kt @@ -354,6 +354,9 @@ class CodeAnalysisStateListener(val project: Project, val cs: CoroutineScope) { LOG.info("Analyzer status for ${editor.virtualFile.path}\n ${TrafficLightRenderer(project, editor).use { it.daemonCodeAnalyzerStatus }}") } } + catch (ex: CancellationException) { + throw ex + } catch (ex: Throwable) { LOG.warn("Print Analyzer status failed", ex) }