From 32db2fdb09e0ccb80895d71d1f7009d829638cef Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Thu, 3 Jan 2019 16:55:51 -0800 Subject: [PATCH] Disable legacy non-rg search #65337 --- src/vs/workbench/parts/search/common/queryBuilder.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vs/workbench/parts/search/common/queryBuilder.ts b/src/vs/workbench/parts/search/common/queryBuilder.ts index 0ba573aa4cc..05679350ff5 100644 --- a/src/vs/workbench/parts/search/common/queryBuilder.ts +++ b/src/vs/workbench/parts/search/common/queryBuilder.ts @@ -150,10 +150,10 @@ export class QueryBuilder { folderResources.map(uri => this.getFolderQueryForRoot(uri, options, excludePattern))) .filter(query => !!query) as IFolderQuery[]; - const useRipgrep = !folderResources || folderResources.every(folder => { - const folderConfig = this.configurationService.getValue({ resource: folder }); - return !folderConfig.search.useLegacySearch; - }); + // const useRipgrep = !folderResources || folderResources.every(folder => { + // const folderConfig = this.configurationService.getValue({ resource: folder }); + // return !folderConfig.search.useLegacySearch; + // }); const queryProps: ICommonQueryProps = { _reason: options._reason, @@ -164,7 +164,7 @@ export class QueryBuilder { excludePattern: excludePattern.pattern, includePattern, maxResults: options.maxResults, - useRipgrep + useRipgrep: true }; // Filter extraFileResources against global include/exclude patterns - they are already expected to not belong to a workspace