mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
KTIJ-37427 [CRI] Initialize storage before marking modules as not dirty
GitOrigin-RevId: 5124fba4e36bd4eabfa9df96443f2f9f23585886
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6928cfcabb
commit
06d0b3a016
+4
-3
@@ -188,13 +188,13 @@ class KotlinCompilerReferenceIndexService(private val project: Project) : Dispos
|
||||
withDirtyScopeUnderWriteLock {
|
||||
--activeBuildCount
|
||||
|
||||
if (activeBuildCount == 0) openStorage(projectPath)
|
||||
|
||||
if (!initialized) {
|
||||
initialize(allModules, compiledModules)
|
||||
} else {
|
||||
compilerActivityFinished(compiledModules)
|
||||
}
|
||||
|
||||
if (activeBuildCount == 0) openStorage(projectPath)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -209,7 +209,8 @@ class KotlinCompilerReferenceIndexService(private val project: Project) : Dispos
|
||||
|
||||
@ApiStatus.Internal
|
||||
@VisibleForTesting
|
||||
fun dirtyModules(): Set<Module> {
|
||||
fun dirtyModules(): Set<Module>? {
|
||||
if (!initialized) return null
|
||||
return dirtyScopeHolder.allDirtyModules
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user