Fix tests freeze because of ScriptChangesNotifier (KT-37112)
#KT-37112 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
03913ff029
commit
7359bb8a00
+5
-1
@@ -45,8 +45,12 @@ internal class ScriptChangesNotifier(
|
||||
}
|
||||
|
||||
private fun runScriptDependenciesUpdateIfNeeded(file: VirtualFile) {
|
||||
AppExecutorUtil.getAppExecutorService().submit {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode) {
|
||||
getListener(project, file)?.editorActivated(file, updater)
|
||||
} else {
|
||||
AppExecutorUtil.getAppExecutorService().submit {
|
||||
getListener(project, file)?.editorActivated(file, updater)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user