Refactor search - add config to run search in EH
This commit is contained in:
parent
dd9b271f7c
commit
2fdd6c1021
|
@ -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));
|
||||
|
||||
|
|
|
@ -653,6 +653,17 @@ configurationRegistry.registerConfiguration({
|
|||
type: 'boolean',
|
||||
default: false,
|
||||
description: nls.localize('search.showLineNumbers', "Controls whether to show line numbers for search results."),
|
||||
},
|
||||
'searchRipgrep.enable': {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
deprecationMessage: nls.localize('search.searchRipgrepEnableDeprecated', "Deprecated. Use \"search.runInExtensionHost\" instead"),
|
||||
description: nls.localize('search.searchRipgrepEnable', "Whether to run search in the extension host")
|
||||
},
|
||||
'search.runInExtensionHost': {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: nls.localize('search.searchRipgrepEnable', "Whether to run search in the extension host")
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue