File tree 1 file changed +1
-6
lines changed
src/vs/workbench/contrib/terminal/browser
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ import { MicrotaskDelay } from '../../../../base/common/symbols.js';
55
55
export class TerminalViewPane extends ViewPane {
56
56
private _parentDomElement : HTMLElement | undefined ;
57
57
private _terminalTabbedView ?: TerminalTabbedView ;
58
- private readonly _singleTabActionViewItem : MutableDisposable < SingleTerminalTabActionViewItem > = this . _register ( new MutableDisposable ( ) ) ;
59
58
get terminalTabbedView ( ) : TerminalTabbedView | undefined { return this . _terminalTabbedView ; }
60
59
private _isInitialized : boolean = false ;
61
60
/**
@@ -280,12 +279,8 @@ export class TerminalViewPane extends ViewPane {
280
279
}
281
280
case TerminalCommandId . Focus : {
282
281
if ( action instanceof MenuItemAction ) {
283
- if ( this . _singleTabActionViewItem . value ) {
284
- return this . _singleTabActionViewItem . value ;
285
- }
286
282
const actions = getFlatContextMenuActions ( this . _singleTabMenu . getActions ( { shouldForwardArgs : true } ) ) ;
287
- this . _singleTabActionViewItem . value = this . _instantiationService . createInstance ( SingleTerminalTabActionViewItem , action , actions ) ;
288
- return this . _singleTabActionViewItem . value ;
283
+ return this . _instantiationService . createInstance ( SingleTerminalTabActionViewItem , action , actions ) ;
289
284
}
290
285
break ;
291
286
}
You can’t perform that action at this time.
0 commit comments