diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java index d02f3d86dd40..e5d39800f642 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/CompletionProgressIndicator.java @@ -382,16 +382,17 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement myLookup.addItem(item.getLookupElement(), item.getPrefixMatcher()); myCount++; - if (myCount == 1/* && !ApplicationManager.getApplication().isUnitTestMode()todo [peter]*/) { + if (myCount == 1) { ApplicationManager.getApplication().executeOnPooledThread(new Runnable() { public void run() { try { Thread.sleep(300); } - catch (InterruptedException e) { - LOG.error(e); + catch (InterruptedException ignore) { + } + finally { + myFreezeSemaphore.up(); } - myFreezeSemaphore.up(); } }); }