From 1d5c3b9e76d03e8bedc4806f20eaabeb52303f0d Mon Sep 17 00:00:00 2001 From: Konstantin Nisht Date: Thu, 11 Sep 2025 11:42:09 +0200 Subject: [PATCH] [threading] IJPL-206977: Use safer dispatcher in project frame creation GitOrigin-RevId: f44128749d46c31dbcd306b8e34dd9802cc4e496 --- .../intellij/openapi/project/impl/IdeProjectFrameAllocator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/project/impl/IdeProjectFrameAllocator.kt b/platform/platform-impl/src/com/intellij/openapi/project/impl/IdeProjectFrameAllocator.kt index 14e0b8f6fc13..38cf590df980 100644 --- a/platform/platform-impl/src/com/intellij/openapi/project/impl/IdeProjectFrameAllocator.kt +++ b/platform/platform-impl/src/com/intellij/openapi/project/impl/IdeProjectFrameAllocator.kt @@ -490,7 +490,7 @@ private suspend fun openProjectViewIfNeeded(project: Project, toolWindowInitJob: val toolWindow = toolWindowManager.getToolWindow("Project") if (toolWindow != null) { // maybe readAction - withContext(Dispatchers.UiWithModelAccess) { + withContext(Dispatchers.EDT) { toolWindow.activate(null, !AppMode.isRemoteDevHost()) } }