From 2fce671d0dca5b36556ac5ddb7d4fcd73bb5f5f4 Mon Sep 17 00:00:00 2001 From: Natalia Selezneva Date: Tue, 18 Jun 2019 10:43:41 +0300 Subject: [PATCH] Scripts, AsyncScripDependenciesLoader: notifyRootsChanged should return false in case when no dependencies are loaded --- .../core/script/dependencies/AsyncScriptDependenciesLoader.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/idea/idea-core/src/org/jetbrains/kotlin/idea/core/script/dependencies/AsyncScriptDependenciesLoader.kt b/idea/idea-core/src/org/jetbrains/kotlin/idea/core/script/dependencies/AsyncScriptDependenciesLoader.kt index 4893ef1d213..0a9253bc96d 100644 --- a/idea/idea-core/src/org/jetbrains/kotlin/idea/core/script/dependencies/AsyncScriptDependenciesLoader.kt +++ b/idea/idea-core/src/org/jetbrains/kotlin/idea/core/script/dependencies/AsyncScriptDependenciesLoader.kt @@ -52,8 +52,7 @@ class AsyncScriptDependenciesLoader internal constructor(project: Project) : Scr if (notifyRootChange) return false if (backgroundTasksQueue == null) { - submitMakeRootsChange() - return true + return submitMakeRootsChange() } notifyRootChange = true