doPostponedFormatting after formatting in completion after new (IDEA-CR-14717)

This commit is contained in:
peter
2016-10-20 18:16:36 +02:00
parent 05cf3e43e5
commit 9ffa29ca2d
4 changed files with 28 additions and 0 deletions
@@ -194,6 +194,7 @@ public class ConstructorInsertHandler implements InsertHandler<LookupElementDeco
PsiExpressionList listToReformat = getEnclosingExpressionList(elementAtOffset.getParent());
if (listToReformat != null) {
CodeStyleManager.getInstance(file.getProject()).reformat(listToReformat);
PostprocessReformattingAspect.getInstance(file.getProject()).doPostponedFormatting();
}
}