Skip to content

Commit

Permalink
Do not append \n for PROCESS since that output has all of the delim…
Browse files Browse the repository at this point in the history
…iters and can be chunked not per line. (#7146)

(cherry picked from commit f5f8f24)
  • Loading branch information
ujohnny committed Dec 17, 2024
1 parent 92449bb commit c207432
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions base/src/com/google/idea/blaze/base/toolwindow/ConsoleView.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,19 +237,17 @@ void println(PrintOutput output) {
}

private void println(String text, OutputType outputType) {
if (outputType == OutputType.PROCESS) {
text = text.stripTrailing();
}

ansiEscapeDecoder.escapeText(
text,
outputType == OutputType.ERROR ? ProcessOutputTypes.STDERR : ProcessOutputTypes.STDOUT,
(t, k) -> consoleView.print(t, ConsoleViewContentType.getConsoleViewType(k)));
consoleView.print(
"\n",
outputType == OutputType.ERROR
? ConsoleViewContentType.ERROR_OUTPUT
: ConsoleViewContentType.NORMAL_OUTPUT);
if (outputType != OutputType.PROCESS) {
consoleView.print(
"\n",
outputType == OutputType.ERROR
? ConsoleViewContentType.ERROR_OUTPUT
: ConsoleViewContentType.NORMAL_OUTPUT);
}
}

public void printHyperlink(String text, HyperlinkInfo hyperlinkInfo) {
Expand Down

0 comments on commit c207432

Please sign in to comment.