Skip to content

Commit 0eb6770

Browse files
anthonykim1Copilot
andauthored
Update src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b50ca99 commit 0eb6770

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/workbench/contrib/terminal/browser/terminalProcessManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,8 @@ export class TerminalProcessManager extends Disposable implements ITerminalProce
568568
// For normal terminals write a message indicating what happened and relaunch
569569
// using the previous shellLaunchConfig
570570
const message = localize('ptyHostRelaunch', "Restarting the terminal because the connection to the shell process was lost...");
571-
// Align with _reviveTerminalProcess to hedge against PSReadLine `GetConsoleCursorInfo` and cursor handling from conpty.
571+
// Align with the pty service's revive logic (_reviveTerminalProcess in src/vs/platform/terminal/node/ptyService.ts)
572+
// to hedge against PSReadLine `GetConsoleCursorInfo` and cursor handling from conpty.
572573
let postRestartMessage = '';
573574
if (this.os === OperatingSystem.Windows && this._dimensions.rows > 0) {
574575
postRestartMessage = '\r\n'.repeat(this._dimensions.rows - 1) + `\x1b[H`;

0 commit comments

Comments
 (0)