enable in-place replace action for Analyze Stacktrace (IDEA-CR-9987)
[idea/community.git] / platform / lang-impl / src / com / intellij / execution / impl / ConsoleViewImpl.java
index a5570e0450270ace339aa5171b83777925925137..f46811c0a2d162907f95c75bfb6f27c227b4dec1 100644 (file)
@@ -992,7 +992,13 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
         }
       }
       else {
-        LOG.warn("unhandled external change: " + event);
+        if (ConsoleViewUtil.isReplaceActionEnabledForConsoleViewEditor(myEditor)) {
+          clearHyperlinkAndFoldings();
+          highlightHyperlinksAndFoldings(event.getDocument().createRangeMarker(0, 0));
+        }
+        else {
+          LOG.warn("unhandled external change: " + event);
+        }
       }
     }
   }