Skip to content

Commit

Permalink
Swallow resize error if terminal already exited
Browse files Browse the repository at this point in the history
Fixes #82581
  • Loading branch information
Tyriar committed Oct 16, 2019
1 parent f462eab commit 06f94fb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/vs/workbench/contrib/terminal/node/terminalProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,14 @@ export class TerminalProcess extends Disposable implements ITerminalChildProcess
cols = Math.max(cols, 1);
rows = Math.max(rows, 1);
this._logService.trace('IPty#resize', cols, rows);
this._ptyProcess.resize(cols, rows);
try {
this._ptyProcess.resize(cols, rows);
} catch (e) {
// Swallow error if the pty has already exited
if (this._exitCode !== undefined) {
throw e;
}
}
}
}

Expand Down

0 comments on commit 06f94fb

Please sign in to comment.