mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
commit documents before calling completion insert handlers
This commit is contained in:
+2
-1
@@ -703,8 +703,9 @@ public class CodeCompletionHandlerBase {
|
||||
assert context.getStartOffset() >= 0 : "stale startOffset: was " + initialStartOffset + "; selEnd=" + caretOffset + "; idEnd=" + idEndOffset + "; file=" + context.getFile();
|
||||
assert context.getTailOffset() >= 0 : "stale tail: was " + initialStartOffset + "; selEnd=" + caretOffset + "; idEnd=" + idEndOffset + "; file=" + context.getFile();
|
||||
|
||||
item.handleInsert(context);
|
||||
Project project = indicator.getProject();
|
||||
PsiDocumentManager.getInstance(project).commitAllDocuments();
|
||||
item.handleInsert(context);
|
||||
PostprocessReformattingAspect.getInstance(project).doPostponedFormatting();
|
||||
|
||||
if (context.shouldAddCompletionChar()) {
|
||||
|
||||
Reference in New Issue
Block a user