Invalid script dependencies should be removed from fileAttributes to avoid 'all red file highlighting'

^KT-32061 Fixed
This commit is contained in:
Natalia Selezneva
2019-07-19 12:11:13 +03:00
parent dd437b585b
commit 7d6bb023a8
@@ -39,6 +39,9 @@ class FromFileAttributeScriptDependenciesLoader(project: Project) : ScriptDepend
}?.let {
if (areDependenciesValid(file, it)) {
saveToCache(file, it.asSuccess(), skipSaveToAttributes = true)
} else {
file.scriptCompilationConfiguration = null
file.scriptDependencies = null
}
}
}