File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/search/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,15 +194,16 @@ export class AnythingQuickAccessProvider extends PickerQuickAccessProvider<IAnyt
194194 private readonly labelOnlyEditorHistoryPickAccessor = new QuickPickItemScorerAccessor ( { skipDescription : true } ) ;
195195
196196 protected getEditorHistoryPicks ( query : IPreparedQuery , range : IRange | undefined ) : Array < IAnythingQuickPickItem > {
197- if ( ! this . configuration . includeHistory ) {
198- return [ ] ; // disabled
199- }
200197
201198 // Just return all history entries if not searching
202199 if ( ! query . value ) {
203200 return this . historyService . getHistory ( ) . map ( editor => this . createAnythingPick ( editor , range ) ) ;
204201 }
205202
203+ if ( ! this . configuration . includeHistory ) {
204+ return [ ] ; // disabled when searching
205+ }
206+
206207 // Only match on label of the editor unless the search includes path separators
207208 const editorHistoryScorerAccessor = query . containsPathSeparator ? quickPickItemScorerAccessor : this . labelOnlyEditorHistoryPickAccessor ;
208209
You can’t perform that action at this time.
0 commit comments