mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
unblock document before starting java call argument live template (EA-125190 - Throwable: PostprocessReformattingAspect.postponeFormatting)
This commit is contained in:
@@ -256,6 +256,8 @@ public class JavaMethodCallElement extends LookupItem<PsiMethod> implements Type
|
||||
|
||||
Editor editor = context.getEditor();
|
||||
context.commitDocument();
|
||||
PsiDocumentManager.getInstance(context.getProject()).doPostponedOperationsAndUnblockDocument(editor.getDocument());
|
||||
|
||||
PsiCall call = PsiTreeUtil.findElementOfClassAtOffset(context.getFile(), context.getStartOffset(), PsiCall.class, false);
|
||||
PsiExpressionList argList = call == null ? null : call.getArgumentList();
|
||||
if (argList == null || !argList.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user