Allow ripgrep search provider to work for files backed by file scheme, but not file scheme themselves (vscode-userdata) (#118069)

* Allow ripgrep search provider to work for files backed by file scheme, but not file scheme themselves (vscode-userdata)
Fixes #115434

* Only execute new code path for userData scheme

* Differentiate output channels
This commit is contained in:
Jackson Kearl
2021-03-03 21:13:58 -08:00
committed by GitHub
parent 5f17dc2a59
commit 2ba67b7b07
4 changed files with 17 additions and 8 deletions

View File

@@ -35,13 +35,15 @@ export class NativeExtHostSearch extends ExtHostSearch {
) {
super(extHostRpc, _uriTransformer, _logService);
const outputChannel = new OutputChannel('RipgrepSearchUD', this._logService);
this.registerTextSearchProvider(Schemas.userData, new RipgrepSearchProvider(outputChannel));
if (initData.remote.isRemote && initData.remote.authority) {
this._registerEHSearchProviders();
}
}
private _registerEHSearchProviders(): void {
const outputChannel = new OutputChannel(this._logService);
const outputChannel = new OutputChannel('RipgrepSearchEH', this._logService);
this.registerTextSearchProvider(Schemas.file, new RipgrepSearchProvider(outputChannel));
this.registerInternalFileSearchProvider(Schemas.file, new SearchService());
}
@@ -101,4 +103,3 @@ export class NativeExtHostSearch extends ExtHostSearch {
return new NativeTextSearchManager(query, provider);
}
}