@@ -107,7 +107,7 @@ export class TerminalTabbedView extends Disposable {
107
107
this . _tabTreeIndex = this . _terminalService . configHelper . config . tabs . location === 'left' ? 0 : 1 ;
108
108
this . _terminalContainerIndex = this . _terminalService . configHelper . config . tabs . location === 'left' ? 1 : 0 ;
109
109
110
- _configurationService . onDidChangeConfiguration ( e => {
110
+ this . _register ( _configurationService . onDidChangeConfiguration ( e => {
111
111
if ( e . affectsConfiguration ( TerminalSettingId . TabsEnabled ) ||
112
112
e . affectsConfiguration ( TerminalSettingId . TabsHideCondition ) ) {
113
113
this . _refreshShowTabs ( ) ;
@@ -121,20 +121,20 @@ export class TerminalTabbedView extends Disposable {
121
121
this . _splitView . resizeView ( this . _tabTreeIndex , this . _getLastListWidth ( ) ) ;
122
122
}
123
123
}
124
- } ) ;
124
+ } ) ) ;
125
125
this . _register ( this . _terminalGroupService . onDidChangeInstances ( ( ) => this . _refreshShowTabs ( ) ) ) ;
126
126
this . _register ( this . _terminalGroupService . onDidChangeGroups ( ( ) => this . _refreshShowTabs ( ) ) ) ;
127
127
128
128
this . _attachEventListeners ( parentElement , this . _terminalContainer ) ;
129
129
130
- this . _terminalGroupService . onDidChangePanelOrientation ( ( orientation ) => {
130
+ this . _register ( this . _terminalGroupService . onDidChangePanelOrientation ( ( orientation ) => {
131
131
this . _panelOrientation = orientation ;
132
132
if ( this . _panelOrientation === Orientation . VERTICAL ) {
133
133
this . _terminalContainer . classList . add ( CssClass . ViewIsVertical ) ;
134
134
} else {
135
135
this . _terminalContainer . classList . remove ( CssClass . ViewIsVertical ) ;
136
136
}
137
- } ) ;
137
+ } ) ) ;
138
138
139
139
this . _splitView = new SplitView ( parentElement , { orientation : Orientation . HORIZONTAL , proportionalLayout : false } ) ;
140
140
this . _setupSplitView ( terminalOuterContainer ) ;
0 commit comments