From 8badc5f454c845a82fd5a7fe3574c70dd7e9bb98 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 17 Sep 2015 14:40:52 +0300 Subject: [PATCH] too many events posted in dump mode fixed --- .../codeInsight/daemon/impl/DaemonCodeAnalyzerImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }