File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/vs/workbench/api/node Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ export class NativeExtHostSearch extends ExtHostSearch {
2727 private _internalFileSearchHandle : number = - 1 ;
2828 private _internalFileSearchProvider : SearchService | null = null ;
2929
30+ private _registeredEHSearchProvider = false ;
31+
3032 constructor (
3133 @IExtHostRpcService extHostRpc : IExtHostRpcService ,
3234 @IExtHostInitDataService initData : IExtHostInitDataService ,
@@ -47,6 +49,11 @@ export class NativeExtHostSearch extends ExtHostSearch {
4749 }
4850
4951 private _registerEHSearchProviders ( ) : void {
52+ if ( this . _registeredEHSearchProvider ) {
53+ return ;
54+ }
55+
56+ this . _registeredEHSearchProvider = true ;
5057 const outputChannel = new OutputChannel ( 'RipgrepSearchEH' , this . _logService ) ;
5158 this . registerTextSearchProvider ( Schemas . file , new RipgrepSearchProvider ( outputChannel ) ) ;
5259 this . registerInternalFileSearchProvider ( Schemas . file , new SearchService ( 'fileSearchProvider' ) ) ;
You can’t perform that action at this time.
0 commit comments