Don't fire onDidChangeTerminalDimensions when cols/rows is 0

Fixes #83778
This commit is contained in:
Daniel Imms
2020-08-12 16:33:55 -07:00
parent c80b8a3318
commit 9a2696d391
2 changed files with 3 additions and 4 deletions

View File

@@ -460,10 +460,6 @@ import { doesNotThrow, equal, ok, deepEqual, throws } from 'assert';
}
term.show();
disposables.push(window.onDidChangeTerminalDimensions(e => {
if (e.dimensions.columns === 0 || e.dimensions.rows === 0) {
// HACK: Ignore the event if dimension(s) are zero (#83778)
return;
}
// The default pty dimensions have a chance to appear here since override
// dimensions happens after the terminal is created. If so just ignore and
// wait for the right dimensions