From 949bfe924e9fa2c068302663b108ce696268989d Mon Sep 17 00:00:00 2001 From: Rustam Vishnyakov Date: Wed, 14 Jan 2015 19:49:28 +0300 Subject: [PATCH] Do postponed operations/formatting in case of PSI modifications (fixes WI-26121 Format on paste throws exception after modification of injected fragment) --- .../intellij/codeInsight/intention/impl/QuickEditHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/QuickEditHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/QuickEditHandler.java index 7f3f4c47de7d..db6b405e50c8 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/QuickEditHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/QuickEditHandler.java @@ -382,6 +382,7 @@ public class QuickEditHandler extends DocumentAdapter implements Disposable { commitToOriginalInner(); } }); + PsiDocumentManager.getInstance(myProject).doPostponedOperationsAndUnblockDocument(myOrigDocument); } } finally {