Skip to content

Commit

Permalink
Use disregardIgnoreFiles in file search queries (#235502)
Browse files Browse the repository at this point in the history
Use `disregardIgnoreFiles` from file search
  • Loading branch information
benibenj authored Dec 9, 2024
1 parent 3d7aab3 commit 9e67a1d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 9e67a1d

Please sign in to comment.