Add previous imports to resolving interfaces to enable effective caching implementations

This commit is contained in:
Ilya Chernikov
2016-06-17 17:04:14 +02:00
committed by Pavel V. Talanov
parent f30b402640
commit 4f05f839a3
7 changed files with 20 additions and 11 deletions
@@ -309,7 +309,7 @@ internal data class ScriptModuleInfo(val project: Project, val module: Module?,
private fun dependenciesRoots(): List<VirtualFile> {
// TODO: find out whether it should be cashed (some changes listener should be implemented for the cached roots)
val jarfs = StandardFileSystems.jar()
return scriptDefinition.getDependenciesFor(scriptFile, project)?.classpath
return scriptDefinition.getDependenciesFor(scriptFile, project, null)?.classpath
?.map { it.canonicalFile }
?.distinct()
?.mapNotNull {