KotlinScriptConfigurationManager: run caching code in smart mode
This commit is contained in:
+3
@@ -53,6 +53,8 @@ class KotlinScriptConfigurationManager(
|
|||||||
|
|
||||||
init {
|
init {
|
||||||
reloadScriptDefinitions()
|
reloadScriptDefinitions()
|
||||||
|
|
||||||
|
dumbService.runWhenSmart {
|
||||||
// TODO: sort out read/write action business and if possible make it lazy (e.g. move to getAllScriptsClasspath)
|
// TODO: sort out read/write action business and if possible make it lazy (e.g. move to getAllScriptsClasspath)
|
||||||
runReadAction { cacheAllScriptsExtraImports() }
|
runReadAction { cacheAllScriptsExtraImports() }
|
||||||
|
|
||||||
@@ -70,6 +72,7 @@ class KotlinScriptConfigurationManager(
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private var allScriptsClasspathCache: List<VirtualFile>? = null
|
private var allScriptsClasspathCache: List<VirtualFile>? = null
|
||||||
private var allLibrarySourcesCache: List<VirtualFile>? = null
|
private var allLibrarySourcesCache: List<VirtualFile>? = null
|
||||||
|
|||||||
Reference in New Issue
Block a user