Fix indexing for force load configuration action
This commit is contained in:
+6
-4
@@ -167,11 +167,13 @@ class DefaultScriptingSupport(project: Project) : DefaultScriptingSupportBase(pr
|
|||||||
if (!ScriptDefinitionsManager.getInstance(project).isReady()) return null
|
if (!ScriptDefinitionsManager.getInstance(project).isReady()) return null
|
||||||
val scriptDefinition = file.findScriptDefinition() ?: return null
|
val scriptDefinition = file.findScriptDefinition() ?: return null
|
||||||
|
|
||||||
if (!loader.shouldRunInBackground(scriptDefinition)) {
|
rootsIndexer.transaction {
|
||||||
loader.loadDependencies(false, file, scriptDefinition, loadingContext)
|
if (!loader.shouldRunInBackground(scriptDefinition)) {
|
||||||
} else {
|
|
||||||
backgroundExecutor.ensureScheduled(virtualFile) {
|
|
||||||
loader.loadDependencies(false, file, scriptDefinition, loadingContext)
|
loader.loadDependencies(false, file, scriptDefinition, loadingContext)
|
||||||
|
} else {
|
||||||
|
backgroundExecutor.ensureScheduled(virtualFile) {
|
||||||
|
loader.loadDependencies(false, file, scriptDefinition, loadingContext)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user