Refactor search - add config to run search in EH

This commit is contained in:
Rob Lourens
2018-10-15 22:50:20 -07:00
parent dd9b271f7c
commit 2fdd6c1021
2 changed files with 12 additions and 1 deletions

View File

@@ -193,7 +193,7 @@ export class ExtHostSearch implements ExtHostSearchShape {
}
function registerEHProviders(extHostSearch: ExtHostSearch, logService: ILogService, configService: ExtHostConfiguration) {
if (configService.getConfiguration('searchRipgrep').enable) {
if (configService.getConfiguration('searchRipgrep').enable || configService.getConfiguration('search').runInExtensionHost) {
const outputChannel = new OutputChannel(logService);
extHostSearch.registerTextSearchProvider('file', new RipgrepSearchProvider(outputChannel));