Use `disregardIgnoreFiles` in file search queries (#235501)

Use `disregardIgnoreFiles` from file search
pull/235508/head
Benjamin Christopher Simmonds 2024-12-06 16:41:46 +01:00 committed by GitHub
parent 9609819024
commit f7069b2fea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -604,7 +604,10 @@ export class ExplorerFindProvider implements IAsyncFindProvider<ExplorerItem> {
const searchExcludePattern = getExcludes(this.configurationService.getValue<ISearchConfiguration>({ resource: root.resource })) || {};
const searchOptions: IFileQuery = {
folderQueries: [{ folder: root.resource }],
folderQueries: [{
folder: root.resource,
disregardIgnoreFiles: !this.configurationService.getValue<boolean>('explorer.excludeGitIgnore'),
}],
type: QueryType.File,
shouldGlobMatchFilePattern: true,
cacheKey: `explorerfindprovider:${root.name}:${rootIndex}:${this.sessionId}`,