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 {
27
27
private _internalFileSearchHandle : number = - 1 ;
28
28
private _internalFileSearchProvider : SearchService | null = null ;
29
29
30
+ private _registeredEHSearchProvider = false ;
31
+
30
32
constructor (
31
33
@IExtHostRpcService extHostRpc : IExtHostRpcService ,
32
34
@IExtHostInitDataService initData : IExtHostInitDataService ,
@@ -47,6 +49,11 @@ export class NativeExtHostSearch extends ExtHostSearch {
47
49
}
48
50
49
51
private _registerEHSearchProviders ( ) : void {
52
+ if ( this . _registeredEHSearchProvider ) {
53
+ return ;
54
+ }
55
+
56
+ this . _registeredEHSearchProvider = true ;
50
57
const outputChannel = new OutputChannel ( 'RipgrepSearchEH' , this . _logService ) ;
51
58
this . registerTextSearchProvider ( Schemas . file , new RipgrepSearchProvider ( outputChannel ) ) ;
52
59
this . registerInternalFileSearchProvider ( Schemas . file , new SearchService ( 'fileSearchProvider' ) ) ;
You can’t perform that action at this time.
0 commit comments