From d3698c52d94b997fdb16690773ad79a3810b6569 Mon Sep 17 00:00:00 2001 From: Oleg Shpynov Date: Tue, 31 Aug 2010 17:43:05 +0400 Subject: [PATCH] PY-719 Highlighting artifacts on executed lines in console --- .../runners/AbstractConsoleRunnerWithHistory.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java b/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java index 33712dc11c79..c242553cb401 100644 --- a/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java +++ b/platform/lang-impl/src/com/intellij/execution/runners/AbstractConsoleRunnerWithHistory.java @@ -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();