mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] do not try to notify about changes under already running progress
https://ea.jetbrains.com/browser/ea_problems/256520 GitOrigin-RevId: efe63ba632b9a06ec1e1bec86dbfc41e49ae8fcd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
658e24ec59
commit
41f79ea01a
+2
-1
@@ -4,6 +4,7 @@ package org.jetbrains.kotlin.idea.core.script.ucache
|
||||
|
||||
import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.application.ModalityState
|
||||
import com.intellij.openapi.application.runInEdt
|
||||
import com.intellij.openapi.components.service
|
||||
import com.intellij.openapi.fileEditor.FileEditorManager
|
||||
@@ -225,7 +226,7 @@ abstract class ScriptClassRootsUpdater(
|
||||
}
|
||||
|
||||
private fun notifyRootsChanged() {
|
||||
runInEdt {
|
||||
runInEdt (ModalityState.NON_MODAL) {
|
||||
runWriteAction {
|
||||
if (project.isDisposed) return@runWriteAction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user