mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[intention-preview] Better check for commit
For binary file copies, isPhysical returns false but viewProvider.isEventSystemEnabled returns true, which causes invalid commit operation GitOrigin-RevId: 91dfcc355a9cc3d51b15db2b20e9c8b206435106
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1ad1289917
commit
d345431d4a
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user