@@ -120,12 +120,12 @@ export const WorkbenchListHasSelectionOrFocus = new RawContextKey<boolean>('list
120
120
export const WorkbenchListDoubleSelection = new RawContextKey < boolean > ( 'listDoubleSelection' , false ) ;
121
121
export const WorkbenchListMultiSelection = new RawContextKey < boolean > ( 'listMultiSelection' , false ) ;
122
122
export const WorkbenchListSelectionNavigation = new RawContextKey < boolean > ( 'listSelectionNavigation' , false ) ;
123
+ export const WorkbenchListSupportsFind = new RawContextKey < boolean > ( 'listSupportsFind' , true ) ;
123
124
export const WorkbenchTreeElementCanCollapse = new RawContextKey < boolean > ( 'treeElementCanCollapse' , false ) ;
124
125
export const WorkbenchTreeElementHasParent = new RawContextKey < boolean > ( 'treeElementHasParent' , false ) ;
125
126
export const WorkbenchTreeElementCanExpand = new RawContextKey < boolean > ( 'treeElementCanExpand' , false ) ;
126
127
export const WorkbenchTreeElementHasChild = new RawContextKey < boolean > ( 'treeElementHasChild' , false ) ;
127
128
export const WorkbenchTreeFindOpen = new RawContextKey < boolean > ( 'treeFindOpen' , false ) ;
128
- export const WorkbenchTreeSupportsFind = new RawContextKey < boolean > ( 'treeSupportsFind' , true ) ;
129
129
const WorkbenchListTypeNavigationModeKey = 'listTypeNavigationMode' ;
130
130
131
131
/**
@@ -1136,6 +1136,7 @@ class WorkbenchTreeInternals<TInput, T, TFilterData> {
1136
1136
1137
1137
readonly contextKeyService : IContextKeyService ;
1138
1138
private listSupportsMultiSelect : IContextKey < boolean > ;
1139
+ private listSupportFindWidget : IContextKey < boolean > ;
1139
1140
private hasSelectionOrFocus : IContextKey < boolean > ;
1140
1141
private hasDoubleSelection : IContextKey < boolean > ;
1141
1142
private hasMultiSelection : IContextKey < boolean > ;
@@ -1144,7 +1145,6 @@ class WorkbenchTreeInternals<TInput, T, TFilterData> {
1144
1145
private treeElementCanExpand : IContextKey < boolean > ;
1145
1146
private treeElementHasChild : IContextKey < boolean > ;
1146
1147
private treeFindOpen : IContextKey < boolean > ;
1147
- private treeSupportFindWidget : IContextKey < boolean > ;
1148
1148
private _useAltAsMultipleSelectionModifier : boolean ;
1149
1149
private disposables : IDisposable [ ] = [ ] ;
1150
1150
private styler : IDisposable | undefined ;
@@ -1170,6 +1170,9 @@ class WorkbenchTreeInternals<TInput, T, TFilterData> {
1170
1170
const listSelectionNavigation = WorkbenchListSelectionNavigation . bindTo ( this . contextKeyService ) ;
1171
1171
listSelectionNavigation . set ( Boolean ( options . selectionNavigation ) ) ;
1172
1172
1173
+ this . listSupportFindWidget = WorkbenchListSupportsFind . bindTo ( this . contextKeyService ) ;
1174
+ this . listSupportFindWidget . set ( options . findWidgetEnabled ?? true ) ;
1175
+
1173
1176
this . hasSelectionOrFocus = WorkbenchListHasSelectionOrFocus . bindTo ( this . contextKeyService ) ;
1174
1177
this . hasDoubleSelection = WorkbenchListDoubleSelection . bindTo ( this . contextKeyService ) ;
1175
1178
this . hasMultiSelection = WorkbenchListMultiSelection . bindTo ( this . contextKeyService ) ;
@@ -1180,8 +1183,6 @@ class WorkbenchTreeInternals<TInput, T, TFilterData> {
1180
1183
this . treeElementHasChild = WorkbenchTreeElementHasChild . bindTo ( this . contextKeyService ) ;
1181
1184
1182
1185
this . treeFindOpen = WorkbenchTreeFindOpen . bindTo ( this . contextKeyService ) ;
1183
- this . treeSupportFindWidget = WorkbenchTreeSupportsFind . bindTo ( this . contextKeyService ) ;
1184
- this . treeSupportFindWidget . set ( options . findWidgetEnabled ?? true ) ;
1185
1186
1186
1187
this . _useAltAsMultipleSelectionModifier = useAltAsMultipleSelectionModifier ( configurationService ) ;
1187
1188
0 commit comments