diff --git a/packages/file-search/src/node/file-search-service-impl.ts b/packages/file-search/src/node/file-search-service-impl.ts index fc38824eabb19..1d98bc5590af2 100644 --- a/packages/file-search/src/node/file-search-service-impl.ts +++ b/packages/file-search/src/node/file-search-service-impl.ts @@ -129,11 +129,11 @@ export class FileSearchServiceImpl implements FileSearchService { return [...exactMatches, ...fuzzyMatches].slice(0, opts.limit); } - private doFind(rootUri: URI, options: FileSearchService.BaseOptions, accept: (fileUri: string) => void, token: CancellationToken): Promise<void> { + protected doFind(rootUri: URI, options: FileSearchService.BaseOptions, accept: (fileUri: string) => void, token: CancellationToken): Promise<void> { return new Promise((resolve, reject) => { const cwd = FileUri.fsPath(rootUri); const args = this.getSearchArgs(options); - const ripgrep = cp.spawn(rgPath, args, { cwd, stdio: ['pipe', 'pipe', 'inherit'] }); + const ripgrep = cp.spawn(rgPath, args, { cwd }); ripgrep.on('error', reject); ripgrep.on('exit', (code, signal) => { if (typeof code === 'number' && code !== 0) { @@ -159,8 +159,8 @@ export class FileSearchServiceImpl implements FileSearchService { }); } - private getSearchArgs(options: FileSearchService.BaseOptions): string[] { - const args = ['--files', '--hidden']; + protected getSearchArgs(options: FileSearchService.BaseOptions): string[] { + const args = ['--files', '--hidden', '--case-sensitive', '--no-require-git', '--no-config']; if (options.includePatterns) { for (const includePattern of options.includePatterns) { if (includePattern) {