Fix exception throwing in terminal integration tests

Part of #76515
This commit is contained in:
Daniel Imms 2019-07-03 16:23:53 -07:00
parent e717f7e51c
commit 052f74b6c6

View file

@ -1287,11 +1287,15 @@ export class TerminalInstance implements ITerminalInstance {
this._safeSetOption('drawBoldTextInBrightColors', config.drawBoldTextInBrightColors);
}
if (isNaN(cols) || isNaN(rows)) {
return;
}
if (cols !== this._xterm.cols || rows !== this._xterm.rows) {
this._onDimensionsChanged.fire();
}
this._xterm.resize(cols, rows);
if (this._isVisible) {
// HACK: Force the renderer to unpause by simulating an IntersectionObserver event.
// This is to fix an issue where dragging the window to the top of the screen to