[threading] IJPL-206977: Use safer dispatcher in project frame creation

GitOrigin-RevId: f44128749d46c31dbcd306b8e34dd9802cc4e496
This commit is contained in:
Konstantin Nisht
2025-09-11 13:02:35 +00:00
committed by intellij-monorepo-bot
parent 0e14915c60
commit 1d5c3b9e76
@@ -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())
}
}