Invalid script dependencies should be removed from fileAttributes to avoid 'all red file highlighting'
^KT-32061 Fixed
This commit is contained in:
+3
@@ -39,6 +39,9 @@ class FromFileAttributeScriptDependenciesLoader(project: Project) : ScriptDepend
|
|||||||
}?.let {
|
}?.let {
|
||||||
if (areDependenciesValid(file, it)) {
|
if (areDependenciesValid(file, it)) {
|
||||||
saveToCache(file, it.asSuccess(), skipSaveToAttributes = true)
|
saveToCache(file, it.asSuccess(), skipSaveToAttributes = true)
|
||||||
|
} else {
|
||||||
|
file.scriptCompilationConfiguration = null
|
||||||
|
file.scriptDependencies = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user