PY-719 Highlighting artifacts on executed lines in console
authorOleg Shpynov <oleg.shpynov@jebrains.com>
Tue, 31 Aug 2010 13:43:05 +0000 (17:43 +0400)
committerOleg Shpynov <oleg.shpynov@jebrains.com>
Tue, 31 Aug 2010 13:43:05 +0000 (17:43 +0400)
platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java

index 33712dc11c79bf1809ccb7fa3fcb48bb69bbdf27..c242553cb401bc06dbb257140dbef332d7224f0d 100644 (file)
@@ -236,6 +236,13 @@ public abstract class AbstractConsoleRunnerWithHistory {
   }
 
   protected void runExecuteActionInner(final AnActionEvent actionEvent) {
+    try {
+      // Allow editor syntax highlighting daemon to finish
+      Thread.sleep(300);
+    }
+    catch (InterruptedException e) {
+      // ignore
+    }
     // Process input and add to history
     final Document document = getLanguageConsole().getCurrentEditor().getDocument();
     final String text = document.getText();