diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonListeners.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonListeners.java index 53791bb8dec8..92a23259e39b 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonListeners.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/DaemonListeners.java @@ -130,7 +130,8 @@ class DaemonListeners implements Disposable { @Override public void caretPositionChanged(CaretEvent e) { Editor editor = e.getEditor(); - if (!editor.getComponent().isShowing() || !worthBothering(editor.getDocument(), editor.getProject())) { + if ((!editor.getComponent().isShowing() && !ApplicationManager.getApplication().isUnitTestMode()) || + !worthBothering(editor.getDocument(), editor.getProject())) { return; //no need to stop daemon if something happened in the console }