@@ -96,6 +96,7 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
96
96
private modelChangeListener : IDisposable = Disposable . None ;
97
97
private filter : ReplFilter ;
98
98
private filterState : TreeFilterState ;
99
+ private filterActionViewItem : TreeFilterPanelActionViewItem | undefined ;
99
100
100
101
constructor (
101
102
options : IViewPaneOptions ,
@@ -276,8 +277,8 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
276
277
this . navigateHistory ( false ) ;
277
278
}
278
279
279
- focusRepl ( ) : void {
280
- this . tree . domFocus ( ) ;
280
+ focusFilter ( ) : void {
281
+ this . filterActionViewItem ?. focus ( ) ;
281
282
}
282
283
283
284
private setMode ( ) : void {
@@ -458,7 +459,8 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
458
459
if ( action . id === SelectReplAction . ID ) {
459
460
return this . instantiationService . createInstance ( SelectReplActionViewItem , this . selectReplAction ) ;
460
461
} else if ( action . id === FILTER_ACTION_ID ) {
461
- return this . instantiationService . createInstance ( TreeFilterPanelActionViewItem , action , localize ( 'workbench.debug.filter.placeholder' , "Filter. E.g.: text, !exclude" ) , this . filterState ) ;
462
+ this . filterActionViewItem = this . instantiationService . createInstance ( TreeFilterPanelActionViewItem , action , localize ( 'workbench.debug.filter.placeholder' , "Filter. E.g.: text, !exclude" ) , this . filterState ) ;
463
+ return this . filterActionViewItem ;
462
464
}
463
465
464
466
return super . getActionViewItem ( action ) ;
@@ -764,7 +766,7 @@ class FilterReplAction extends EditorAction {
764
766
run ( accessor : ServicesAccessor , editor : ICodeEditor ) : void | Promise < void > {
765
767
SuggestController . get ( editor ) . acceptSelectedSuggestion ( false , true ) ;
766
768
const repl = getReplView ( accessor . get ( IViewsService ) ) ;
767
- repl ?. focusRepl ( ) ;
769
+ repl ?. focusFilter ( ) ;
768
770
}
769
771
}
770
772
0 commit comments