mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do postponed formatting in JavaChainLookupElement (EA-56040)
This commit is contained in:
@@ -112,6 +112,8 @@ public class JavaChainLookupElement extends LookupElementDecorator<LookupElement
|
||||
final InsertionContext qualifierContext = CompletionUtil.emulateInsertion(context, context.getStartOffset(), myQualifier);
|
||||
OffsetKey oldStart = context.trackOffset(context.getStartOffset(), false);
|
||||
|
||||
PsiDocumentManager.getInstance(context.getProject()).doPostponedOperationsAndUnblockDocument(document);
|
||||
|
||||
int start = CharArrayUtil.shiftForward(context.getDocument().getCharsSequence(), context.getStartOffset(), " \t\n");
|
||||
if (shouldParenthesizeQualifier(context.getFile(), start, qualifierContext.getTailOffset())) {
|
||||
final String space = CodeStyleSettingsManager.getSettings(qualifierContext.getProject()).SPACE_WITHIN_PARENTHESES ? " " : "";
|
||||
|
||||
Reference in New Issue
Block a user