mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-completion] Unblock document before removing empty parentheses
Fixes EA-237439 - Throwable: PostprocessReformattingAspect.postponeFormatting GitOrigin-RevId: 48a403bd7c87c29a626cf46b990520d4262b4678
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0c1507340d
commit
fe1ef7ea68
@@ -254,6 +254,7 @@ public class VariableLookupItem extends LookupItem<PsiVariable> implements Typed
|
||||
if (ref != null && ref.getParent() instanceof PsiMethodCallExpression) {
|
||||
PsiExpressionList argList = ((PsiMethodCallExpression)ref.getParent()).getArgumentList();
|
||||
if (argList.getExpressionCount() == 0) {
|
||||
PsiDocumentManager.getInstance(argList.getProject()).doPostponedOperationsAndUnblockDocument(context.getDocument());
|
||||
context.getDocument().deleteString(argList.getTextRange().getStartOffset(), argList.getTextRange().getEndOffset());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user