From e27c0582ae01c517eeb0297b1a8ff21d097a3d86 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 19 Aug 2008 17:59:58 +0400 Subject: [PATCH] by cdr --- .../codeInsight/daemon/impl/PostHighlightingPass.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java b/source/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java index fc5248aa94..c8dbe6e2a7 100644 --- a/source/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java +++ b/source/com/intellij/codeInsight/daemon/impl/PostHighlightingPass.java @@ -51,10 +51,7 @@ import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.TestOnly; import java.text.MessageFormat; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; -import java.util.Set; +import java.util.*; public class PostHighlightingPass extends TextEditorHighlightingPass { private static final Logger LOG = Logger.getInstance("#com.intellij.codeInsight.daemon.impl.PostHighlightingPass"); @@ -127,6 +124,12 @@ public class PostHighlightingPass extends TextEditorHighlightingPass { progress.cancel(); ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() { + try { + Thread.sleep(new Random().nextInt(100)); + } + catch (InterruptedException e) { + LOG.error(e); + } DaemonCodeAnalyzer.getInstance(myProject).restart(); } }, myProject.getDisposed()); -- 2.11.4.GIT