提交 9237df9e 编写于 作者: D Daniel Imms

Remove unnecessary additional layout

Fixes #96586
上级 da88f129
......@@ -84,10 +84,6 @@ export class TerminalViewPane extends ViewPane {
this._register(this.themeService.onDidColorThemeChange(theme => this._updateTheme(theme)));
this._register(this.configurationService.onDidChangeConfiguration(e => {
if (e.affectsConfiguration('terminal.integrated') || e.affectsConfiguration('editor.fontFamily')) {
this._updateFont();
}
if (e.affectsConfiguration('terminal.integrated.fontFamily') || e.affectsConfiguration('editor.fontFamily')) {
const configHelper = this._terminalService.configHelper;
if (!configHelper.configFontIsMonospace()) {
......@@ -99,7 +95,6 @@ export class TerminalViewPane extends ViewPane {
}
}
}));
this._updateFont();
this._updateTheme();
this._register(this.onDidChangeBodyVisibility(visible => {
......@@ -108,7 +103,6 @@ export class TerminalViewPane extends ViewPane {
if (!hadTerminals) {
this._terminalService.createTerminal();
}
this._updateFont();
this._updateTheme();
if (hadTerminals) {
this._terminalService.getActiveTab()?.setVisible(visible);
......@@ -335,15 +329,6 @@ export class TerminalViewPane extends ViewPane {
this._findWidget.updateTheme(theme);
}
}
private _updateFont(): void {
if (this._terminalService.terminalInstances.length === 0 || !this._parentDomElement) {
return;
}
// TODO: Can we support ligatures?
// dom.toggleClass(this._parentDomElement, 'enable-ligatures', this._terminalService.configHelper.config.fontLigatures);
this.layoutBody(this._parentDomElement.offsetHeight, this._parentDomElement.offsetWidth);
}
}
registerThemingParticipant((theme: IColorTheme, collector: ICssStyleCollector) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册