Do not run multiple script dependencies updates if dependencies weren't saved yet

^KT-29770 Fixed
This commit is contained in:
Natalia Selezneva
2019-02-08 14:06:10 +03:00
parent 8918a83fb4
commit 00cd6a698d
@@ -25,7 +25,7 @@ import kotlin.script.experimental.dependencies.DependenciesResolver
abstract class ScriptDependenciesLoader(protected val project: Project) {
fun updateDependencies(file: VirtualFile, scriptDef: KotlinScriptDefinition) {
if (cache[file] == null || fileModificationStamps[file.path] != file.modificationStamp) {
if (fileModificationStamps[file.path] != file.modificationStamp) {
fileModificationStamps.put(file.path, file.modificationStamp)
loadDependencies(file, scriptDef)