diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/CodeCompletionHandlerBase.java b/platform/lang-impl/src/com/intellij/codeInsight/completion/CodeCompletionHandlerBase.java index f2458c7f82c8..1f47088981fa 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/CodeCompletionHandlerBase.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/CodeCompletionHandlerBase.java @@ -279,11 +279,17 @@ public class CodeCompletionHandlerBase implements CodeInsightActionHandler { if (freezeSemaphore.waitFor(2000)) { final LookupElement[] allItems = data.get(); + if (CompletionAutoPopupHandler.ourTestingAutopopup) { + System.out.println("allItems = " + allItems); + } if (allItems != null) { // the completion is really finished, now we may auto-insert or show lookup completionFinished(initContext.getStartOffset(), initContext.getSelectionEndOffset(), indicator, allItems); return; } } + if (CompletionAutoPopupHandler.ourTestingAutopopup) { + System.out.println("backgrounded"); + } indicator.notifyBackgrounded(); indicator.showLookup();