waitAnalysisToFinish: do not wait for FUSProjectHotStartUpMeasurerService in isHeadlessEnvironment as isHandlingFinished is not triggered in headless mode

GitOrigin-RevId: 6a75aff74656cb094307604457b2712b218c6093
This commit is contained in:
Anastasia Katsman
2025-04-10 15:49:39 +02:00
committed by intellij-monorepo-bot
parent f29e56fb66
commit e44b48bcaa

View File

@@ -139,7 +139,7 @@ class CodeAnalysisStateListener(val project: Project, val cs: CoroutineScope) {
launch {
while (true) {
@Suppress("TestOnlyProblems")
if (!service<FUSProjectHotStartUpMeasurerService>().isHandlingFinished() && !future.isDone) {
if (!ApplicationManagerEx.getApplication().isHeadlessEnvironment && !service<FUSProjectHotStartUpMeasurerService>().isHandlingFinished() && !future.isDone) {
delay(500)
}
else {