214
215
async scanSystemExtensions(scanOptions: SystemExtensionsScanOptions): Promise<IScannedExtension[]> {
217
>
promises.push(this.scanDefaultSystemExtensions(scanOptions.language));
218
>
promises.push(this.scanDevSystemExtensions(scanOptions.language, !!scanOptions.checkControlFile));
219
>
const [defaultSystemExtensions, devSystemExtensions] = await Promise.all(promises);
220
>
let allSystemExtensions = [...defaultSystemExtensions, ...devSystemExtensions];
221
>
222
>
if (this.environmentService.skipBuiltinExtensions?.length) {
223
const skipSet = new Set(this.environmentService.skipBuiltinExtensions.map(id => id.toLowerCase()));
224
allSystemExtensions = allSystemExtensions.filter(ext => !skipSet.has(ext.identifier.id.toLowerCase()));
225
}
227
>
return this.applyScanOptions(allSystemExtensions, ExtensionType.System, { pickLatest: false });
228
>
}
229
230
async scanUserExtensions(scanOptions: UserExtensionsScanOptions): Promise<IScannedExtension[]> {