@@ -120,12 +120,12 @@ export const WorkbenchListHasSelectionOrFocus = new RawContextKey<boolean>('list
120120export const WorkbenchListDoubleSelection = new RawContextKey < boolean > ( 'listDoubleSelection' , false ) ;
121121export const WorkbenchListMultiSelection = new RawContextKey < boolean > ( 'listMultiSelection' , false ) ;
122122export const WorkbenchListSelectionNavigation = new RawContextKey < boolean > ( 'listSelectionNavigation' , false ) ;
123+ export const WorkbenchListSupportsFind = new RawContextKey < boolean > ( 'listSupportsFind' , true ) ;
123124export const WorkbenchTreeElementCanCollapse = new RawContextKey < boolean > ( 'treeElementCanCollapse' , false ) ;
124125export const WorkbenchTreeElementHasParent = new RawContextKey < boolean > ( 'treeElementHasParent' , false ) ;
125126export const WorkbenchTreeElementCanExpand = new RawContextKey < boolean > ( 'treeElementCanExpand' , false ) ;
126127export const WorkbenchTreeElementHasChild = new RawContextKey < boolean > ( 'treeElementHasChild' , false ) ;
127128export const WorkbenchTreeFindOpen = new RawContextKey < boolean > ( 'treeFindOpen' , false ) ;
128- export const WorkbenchTreeSupportsFind = new RawContextKey < boolean > ( 'treeSupportsFind' , true ) ;
129129const WorkbenchListTypeNavigationModeKey = 'listTypeNavigationMode' ;
130130
131131/**
@@ -1136,6 +1136,7 @@ class WorkbenchTreeInternals<TInput, T, TFilterData> {
11361136
11371137 readonly contextKeyService : IContextKeyService ;
11381138 private listSupportsMultiSelect : IContextKey < boolean > ;
1139+ private listSupportFindWidget : IContextKey < boolean > ;
11391140 private hasSelectionOrFocus : IContextKey < boolean > ;
11401141 private hasDoubleSelection : IContextKey < boolean > ;
11411142 private hasMultiSelection : IContextKey < boolean > ;
@@ -1144,7 +1145,6 @@ class WorkbenchTreeInternals<TInput, T, TFilterData> {
11441145 private treeElementCanExpand : IContextKey < boolean > ;
11451146 private treeElementHasChild : IContextKey < boolean > ;
11461147 private treeFindOpen : IContextKey < boolean > ;
1147- private treeSupportFindWidget : IContextKey < boolean > ;
11481148 private _useAltAsMultipleSelectionModifier : boolean ;
11491149 private disposables : IDisposable [ ] = [ ] ;
11501150 private styler : IDisposable | undefined ;
@@ -1170,6 +1170,9 @@ class WorkbenchTreeInternals<TInput, T, TFilterData> {
11701170 const listSelectionNavigation = WorkbenchListSelectionNavigation . bindTo ( this . contextKeyService ) ;
11711171 listSelectionNavigation . set ( Boolean ( options . selectionNavigation ) ) ;
11721172
1173+ this . listSupportFindWidget = WorkbenchListSupportsFind . bindTo ( this . contextKeyService ) ;
1174+ this . listSupportFindWidget . set ( options . findWidgetEnabled ?? true ) ;
1175+
11731176 this . hasSelectionOrFocus = WorkbenchListHasSelectionOrFocus . bindTo ( this . contextKeyService ) ;
11741177 this . hasDoubleSelection = WorkbenchListDoubleSelection . bindTo ( this . contextKeyService ) ;
11751178 this . hasMultiSelection = WorkbenchListMultiSelection . bindTo ( this . contextKeyService ) ;
@@ -1180,8 +1183,6 @@ class WorkbenchTreeInternals<TInput, T, TFilterData> {
11801183 this . treeElementHasChild = WorkbenchTreeElementHasChild . bindTo ( this . contextKeyService ) ;
11811184
11821185 this . treeFindOpen = WorkbenchTreeFindOpen . bindTo ( this . contextKeyService ) ;
1183- this . treeSupportFindWidget = WorkbenchTreeSupportsFind . bindTo ( this . contextKeyService ) ;
1184- this . treeSupportFindWidget . set ( options . findWidgetEnabled ?? true ) ;
11851186
11861187 this . _useAltAsMultipleSelectionModifier = useAltAsMultipleSelectionModifier ( configurationService ) ;
11871188
0 commit comments