diff --git a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewComputable.kt b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewComputable.kt index 3614d571c03f..1a485d2e3f3c 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewComputable.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewComputable.kt @@ -130,7 +130,7 @@ class IntentionPreviewComputable(private val project: Project, } Reference.reachabilityFence(settings) val manager = PsiDocumentManager.getInstance(project) - if (!psiFileCopy.isPhysical) { + if (!psiFileCopy.viewProvider.isEventSystemEnabled) { manager.commitDocument(editorCopy.document) manager.doPostponedOperationsAndUnblockDocument(editorCopy.document) }