[kotlin] Don't publish module state mod event while the project is not initialized

#KTIJ-33316

GitOrigin-RevId: f953fb703448e965392667495e4ee48594a5879c
This commit is contained in:
Vladimir Dolzhenko
2025-06-26 12:56:16 +00:00
committed by intellij-monorepo-bot
parent edc35b8592
commit 596f44795c
@@ -114,7 +114,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)) {
project.publishGlobalModuleStateModificationEvent()
return
}