Skip to content

Commit c730451

Browse files
authored
ensure height of output is correct (#280427)
fixes #280425
1 parent ba284f0 commit c730451

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatContentParts/toolInvocationParts/chatTerminalToolProgressPart.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,8 @@ class ChatTerminalToolOutputSection extends Disposable {
867867

868868
private _getOutputContentHeight(lineCount: number, rowHeight: number, padding: number): number {
869869
const contentRows = Math.max(lineCount, MIN_OUTPUT_ROWS);
870-
return (contentRows * rowHeight) + padding;
870+
const adjustedRows = contentRows + (lineCount > MAX_OUTPUT_ROWS ? 1 : 0);
871+
return (adjustedRows * rowHeight) + padding;
871872
}
872873

873874
private _getOutputPadding(): number {

0 commit comments

Comments
 (0)