Skip to content

Commit 9e67a1d

Browse files
authored
Use disregardIgnoreFiles in file search queries (microsoft#235502)
Use `disregardIgnoreFiles` from file search
1 parent 3d7aab3 commit 9e67a1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/contrib/files/browser/views/explorerViewer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,10 @@ export class ExplorerFindProvider implements IAsyncFindProvider<ExplorerItem> {
604604

605605
const searchExcludePattern = getExcludes(this.configurationService.getValue<ISearchConfiguration>({ resource: root.resource })) || {};
606606
const searchOptions: IFileQuery = {
607-
folderQueries: [{ folder: root.resource }],
607+
folderQueries: [{
608+
folder: root.resource,
609+
disregardIgnoreFiles: !this.configurationService.getValue<boolean>('explorer.excludeGitIgnore'),
610+
}],
608611
type: QueryType.File,
609612
shouldGlobMatchFilePattern: true,
610613
cacheKey: `explorerfindprovider:${root.name}:${rootIndex}:${this.sessionId}`,

0 commit comments

Comments
 (0)