From f7069b2feada75d95faf3806e35e507cfa8b6fed Mon Sep 17 00:00:00 2001 From: Benjamin Christopher Simmonds <44439583+benibenj@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:41:46 +0100 Subject: [PATCH] Use `disregardIgnoreFiles` in file search queries (#235501) Use `disregardIgnoreFiles` from file search --- .../workbench/contrib/files/browser/views/explorerViewer.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/files/browser/views/explorerViewer.ts b/src/vs/workbench/contrib/files/browser/views/explorerViewer.ts index 9f15f33a26b..4de8cc1c244 100644 --- a/src/vs/workbench/contrib/files/browser/views/explorerViewer.ts +++ b/src/vs/workbench/contrib/files/browser/views/explorerViewer.ts @@ -604,7 +604,10 @@ export class ExplorerFindProvider implements IAsyncFindProvider { const searchExcludePattern = getExcludes(this.configurationService.getValue({ resource: root.resource })) || {}; const searchOptions: IFileQuery = { - folderQueries: [{ folder: root.resource }], + folderQueries: [{ + folder: root.resource, + disregardIgnoreFiles: !this.configurationService.getValue('explorer.excludeGitIgnore'), + }], type: QueryType.File, shouldGlobMatchFilePattern: true, cacheKey: `explorerfindprovider:${root.name}:${rootIndex}:${this.sessionId}`,