| ... | @@ -704,12 +704,11 @@ function renderChildren(state: ReadOnlyNode, now: number, depth: boolean[]) { | ... | @@ -704,12 +704,11 @@ function renderChildren(state: ReadOnlyNode, now: number, depth: boolean[]) { |
| 704 | truncated += 1; | 704 | truncated += 1; |
| 705 | continue; | 705 | continue; |
| 706 | } | 706 | } |
| 707 | const logLines = child?.logs | 707 | const logLines = child.logs |
| 708 | .map((msg) => log.formatMessage(msg, true)) | 708 | .map((msg) => log.formatMessage(msg, true)) |
| 709 | .join("") | 709 | .join("") |
| 710 | .split("\n") | 710 | .trim(); |
| 711 | .slice(-Math.min(3, maxHeight)) ?? []; | 711 | if (logLines) for (const line of logLines.split("\n").slice(-Math.min(3, maxHeight))) { |
| 712 | for (const line of logLines) { | | |
| 713 | item += left + (i === length - 1 && !truncated ? " " : box.line) + " " + | 712 | item += left + (i === length - 1 && !truncated ? " " : box.line) + " " + |
| 714 | ansi.style(ansi.fgBrightBlack, ">") + | 713 | ansi.style(ansi.fgBrightBlack, ">") + |
| 715 | " " + line + "\n"; | 714 | " " + line + "\n"; |