diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java index ec5d3f575c94..c7ea6098864a 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java @@ -809,7 +809,8 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzerEx implements Pers } if (HeavyProcessLatch.INSTANCE.isRunning()) { if (myAlarm.isEmpty()) { - myAlarm.addRequest(myUpdateRunnable, mySettings.AUTOREPARSE_DELAY); + // wait for heavy processing to stop, re-schedule daemon but not too soon + myAlarm.addRequest(myUpdateRunnable, Math.max(mySettings.AUTOREPARSE_DELAY,100)); } return; }