Fix #33163 - run ripgrep even when there are no folderQueries, as long as there are extraFiles

pull/33317/head
Rob Lourens 2017-08-28 15:58:07 -07:00
parent 24098ae6fb
commit ba2ccf0667
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export class RipgrepEngine {
// TODO@Rob - make promise-based once the old search is gone, and I don't need them to have matching interfaces anymore
search(onResult: (match: ISerializedFileMatch) => void, onMessage: (message: ISearchLog) => void, done: (error: Error, complete: ISerializedSearchComplete) => void): void {
if (!this.config.folderQueries.length) {
if (!this.config.folderQueries.length && !this.config.extraFiles.length) {
done(null, {
limitHit: false,
stats: null