more diagnostics

This commit is contained in:
peter
2010-11-18 00:06:47 +03:00
parent 8de272b7cc
commit c75da27d81
@@ -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();