Skip to content

Commit b4a4a00

Browse files
committed
do not log if custom builtin extensions are not passed
1 parent f65642b commit b4a4a00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,14 @@ export class WebExtensionsScannerService extends Disposable implements IWebExten
207207
}
208208

209209
private async getCustomBuiltinExtensionsFromGallery(scanOptions?: ScanOptions): Promise<IScannedExtension[]> {
210-
if (!this.galleryService.isEnabled()) {
211-
this.logService.info('Ignoring fetching additional builtin extensions from gallery as it is disabled.');
212-
return [];
213-
}
214210
const { extensions } = await this.readCustomBuiltinExtensionsInfoFromEnv();
215211
if (!extensions.length) {
216212
return [];
217213
}
214+
if (!this.galleryService.isEnabled()) {
215+
this.logService.info('Ignoring fetching additional builtin extensions from gallery as it is disabled.');
216+
return [];
217+
}
218218
const result: IScannedExtension[] = [];
219219
try {
220220
const useCache = this.storageService.get('additionalBuiltinExtensions', StorageScope.GLOBAL, '[]') === JSON.stringify(extensions);

0 commit comments

Comments
 (0)