mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[kotlin] Don't publish module state mod event while the project is not initialized
#KTIJ-33316 (cherry picked from commit 301d814a91c5a05a27e06c18f9e215b6a8decb78) IJ-MR-167260 GitOrigin-RevId: b01b280577dacc2abaa7d6bb49dcc61956f679da
This commit is contained in:
committed by
intellij-monorepo-bot
parent
caee4211c2
commit
77d0ecdc66
@@ -116,7 +116,9 @@ class FirIdeModuleStateModificationService(val project: Project) : Disposable {
|
||||
}
|
||||
|
||||
override fun before(events: List<VFileEvent>) {
|
||||
if (mayBuiltinsHaveChanged(events) || !project.isInitialized) {
|
||||
if (!project.isInitialized) return
|
||||
|
||||
if (mayBuiltinsHaveChanged(events)) {
|
||||
KotlinGlobalModificationService.getInstance(project).publishGlobalModuleStateModification()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user