Skip to content

Commit 644e8d4

Browse files
committed
1 parent 681256b commit 644e8d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/workbench/contrib/terminal/browser/terminalTabbedView.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class TerminalTabbedView extends Disposable {
107107
this._tabTreeIndex = this._terminalService.configHelper.config.tabs.location === 'left' ? 0 : 1;
108108
this._terminalContainerIndex = this._terminalService.configHelper.config.tabs.location === 'left' ? 1 : 0;
109109

110-
_configurationService.onDidChangeConfiguration(e => {
110+
this._register(_configurationService.onDidChangeConfiguration(e => {
111111
if (e.affectsConfiguration(TerminalSettingId.TabsEnabled) ||
112112
e.affectsConfiguration(TerminalSettingId.TabsHideCondition)) {
113113
this._refreshShowTabs();
@@ -121,20 +121,20 @@ export class TerminalTabbedView extends Disposable {
121121
this._splitView.resizeView(this._tabTreeIndex, this._getLastListWidth());
122122
}
123123
}
124-
});
124+
}));
125125
this._register(this._terminalGroupService.onDidChangeInstances(() => this._refreshShowTabs()));
126126
this._register(this._terminalGroupService.onDidChangeGroups(() => this._refreshShowTabs()));
127127

128128
this._attachEventListeners(parentElement, this._terminalContainer);
129129

130-
this._terminalGroupService.onDidChangePanelOrientation((orientation) => {
130+
this._register(this._terminalGroupService.onDidChangePanelOrientation((orientation) => {
131131
this._panelOrientation = orientation;
132132
if (this._panelOrientation === Orientation.VERTICAL) {
133133
this._terminalContainer.classList.add(CssClass.ViewIsVertical);
134134
} else {
135135
this._terminalContainer.classList.remove(CssClass.ViewIsVertical);
136136
}
137-
});
137+
}));
138138

139139
this._splitView = new SplitView(parentElement, { orientation: Orientation.HORIZONTAL, proportionalLayout: false });
140140
this._setupSplitView(terminalOuterContainer);

0 commit comments

Comments
 (0)