Scripts: clear modification stamps cache when script dependencies cache is cleared

Otherwise it prevents script dependencies reloading
It may occur when script definitions are reloaded, cache is cleared, but dependencies aren't reloaded

^KT-31826 Fixed
This commit is contained in:
Natalia Selezneva
2019-06-06 15:56:38 +03:00
parent 2b748ccd9a
commit 151c12dd85
@@ -169,6 +169,7 @@ class ScriptsCompilationConfigurationCache(private val project: Project) {
val keys = scriptDependenciesCache.getAll().map { it.key }.toList()
scriptDependenciesCache.clear()
scriptsModificationStampsCache.clear()
onChange(keys)
}