This commit is contained in:
meganrogge 2021-12-14 12:27:00 -06:00
parent 2eb4cec44b
commit 6bde12250b
No known key found for this signature in database
GPG key ID: 1367081C49377970

View file

@ -172,6 +172,11 @@ export class TerminalGroupService extends Disposable implements ITerminalGroupSe
const instance = this.activeInstance;
if (instance) {
await instance.focusWhenReady(true);
// HACK: as a workaround for https://github.com/microsoft/vscode/issues/134692,
// this will trigger a forced refresh of the viewport to sync the viewport and scroll bar.
// This can likely be removed after https://github.com/xtermjs/xterm.js/issues/291 is
// fixed upstream.
instance.setVisible(true);
}
}
}