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

Remove unnecessary additional layout

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