in src/windowsTerminal.ts [146:155]
public resize(cols: number, rows: number): void {
if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) {
throw new Error('resizing must be done using positive cols and rows');
}
this._defer(() => {
this._agent.resize(cols, rows);
this._cols = cols;
this._rows = rows;
});
}