Skip to content

Commit

Permalink
Fix scrolling of Test Results when a new test starts (fixes #229531) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
r3m0t authored Sep 28, 2024
1 parent d809b43 commit 2b0935a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,8 @@ export class TerminalMessagePeek extends Disposable implements IPeekOutputRender
if (prev) {
prev.xterm.clearBuffer();
prev.xterm.clearSearchDecorations();
// clearBuffer tries to retain the prompt line, but this doesn't exist for tests.
// So clear the screen (J) and move to home (H) to ensure previous data is cleaned up.
prev.xterm.write(`\x1b[2J\x1b[0;0H`);
// clearBuffer tries to retain the prompt. Reset prompt, scrolling state, etc.
prev.xterm.write(`\x1bc`);
return prev;
}

Expand Down

0 comments on commit 2b0935a

Please sign in to comment.