@@ -120,7 +120,7 @@ export interface IExtensionsScannerService {
120
120
121
121
getTargetPlatform ( ) : Promise < TargetPlatform > ;
122
122
123
- scanAllExtensions ( systemScanOptions : ScanOptions , userScanOptions : ScanOptions ) : Promise < IScannedExtension [ ] > ;
123
+ scanAllExtensions ( systemScanOptions : ScanOptions , userScanOptions : ScanOptions , includeExtensionsUnderDev : boolean ) : Promise < IScannedExtension [ ] > ;
124
124
scanSystemExtensions ( scanOptions : ScanOptions ) : Promise < IScannedExtension [ ] > ;
125
125
scanUserExtensions ( scanOptions : ScanOptions ) : Promise < IScannedExtension [ ] > ;
126
126
scanExtensionsUnderDevelopment ( scanOptions : ScanOptions , existingExtensions : IScannedExtension [ ] ) : Promise < IScannedExtension [ ] > ;
@@ -172,12 +172,12 @@ export abstract class AbstractExtensionsScannerService extends Disposable implem
172
172
return this . _targetPlatformPromise ;
173
173
}
174
174
175
- async scanAllExtensions ( systemScanOptions : ScanOptions , userScanOptions : ScanOptions ) : Promise < IScannedExtension [ ] > {
175
+ async scanAllExtensions ( systemScanOptions : ScanOptions , userScanOptions : ScanOptions , includeExtensionsUnderDev : boolean ) : Promise < IScannedExtension [ ] > {
176
176
const [ system , user ] = await Promise . all ( [
177
177
this . scanSystemExtensions ( systemScanOptions ) ,
178
178
this . scanUserExtensions ( userScanOptions ) ,
179
179
] ) ;
180
- const development = await this . scanExtensionsUnderDevelopment ( systemScanOptions , [ ...system , ...user ] ) ;
180
+ const development = includeExtensionsUnderDev ? await this . scanExtensionsUnderDevelopment ( systemScanOptions , [ ...system , ...user ] ) : [ ] ;
181
181
return this . dedupExtensions ( system , user , development , await this . getTargetPlatform ( ) , true ) ;
182
182
}
183
183
0 commit comments