Fix warning in scripts that dependencies are not available

^KT-30441 Fixed
This commit is contained in:
Natalia Selezneva
2019-03-25 19:31:45 +03:00
parent 791ab05e08
commit 224f37ca00
2 changed files with 15 additions and 4 deletions
@@ -60,7 +60,8 @@ class ScriptExternalHighlightingPass(
)
}
if (!ScriptDependenciesUpdater.areDependenciesCached(file)) {
// show notification only for async resolvers, for others file analysis is in progress until all dependencies are ready
if (!ScriptDependenciesUpdater.areDependenciesCached(file) && ScriptDependenciesUpdater.isAsyncDependencyResolver(file)) {
showNotification(
file,
"Highlighting in scripts is not available until all Script Dependencies are loaded"