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)
  • Loading branch information
dkashyn-sfdc authored Dec 10, 2024
1 parent 2bea8d9 commit f5f8f24
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 f5f8f24

Please sign in to comment.