未验证 提交 dfc984fb 编写于 作者: D Daniel Imms 提交者: GitHub

Merge pull request #60221 from josephduchesne/fixes-58159-terminal-vanishing-on-font-resize

Fixed #58159 by triggering a layout refresh to work around xtermjs bug…
......@@ -168,6 +168,10 @@ export class TerminalInstance implements ITerminalInstance {
this.addDisposable(this._configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration('terminal.integrated')) {
this.updateConfig();
// HACK: Trigger another async layout to ensure xterm's CharMeasure is ready to use,
// this hack can be removed when https://github.com/xtermjs/xterm.js/issues/702 is
// supported.
this.setVisible(this._isVisible);
}
if (e.affectsConfiguration('editor.accessibilitySupport')) {
this.updateAccessibilitySupport();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册