mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't commit document in the completion framework, give the chance to see the old PSI
This commit is contained in:
@@ -820,6 +820,8 @@ public class JavaCompletionUtil {
|
||||
hasParams = false;
|
||||
}
|
||||
|
||||
PsiDocumentManager.getInstance(context.getProject()).commitDocument(context.getDocument());
|
||||
|
||||
final CodeStyleSettings styleSettings = CodeStyleSettingsManager.getSettings(context.getProject());
|
||||
ParenthesesInsertHandler.getInstance(hasParams,
|
||||
styleSettings.SPACE_BEFORE_METHOD_CALL_PARENTHESES,
|
||||
|
||||
-1
@@ -535,7 +535,6 @@ public class CodeCompletionHandlerBase implements CodeInsightActionHandler {
|
||||
assert context.getStartOffset() >= 0 : "stale startOffset";
|
||||
assert context.getTailOffset() >= 0 : "stale tailOffset";
|
||||
|
||||
PsiDocumentManager.getInstance(indicator.getProject()).commitAllDocuments();
|
||||
item.handleInsert(context);
|
||||
PostprocessReformattingAspect.getInstance(indicator.getProject()).doPostponedFormatting();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user