Skip to content

Commit ba3d6c4

Browse files
Add logs
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
1 parent 76e21a1 commit ba3d6c4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

code/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2595,14 +2595,18 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
25952595
}
25962596
}
25972597
if (installable instanceof URI) {
2598+
this.logService.info('!!!!!!!!! installable instanceof URI ', installable);
25982599
// Block VSIX installations if the policy is configured and blockNonGalleryExtensions is enabled
25992600
const blockNonGallery = this.configurationService.getValue<boolean>(BlockNonGalleryExtensionsConfigKey);
26002601
const hasPolicy = this.configurationService.inspect(AllowedExtensionsConfigKey).policy !== undefined;
26012602
if (hasPolicy && blockNonGallery) {
2603+
this.logService.error('!!! installable instanceof URI !!! BLOCK ');
26022604
throw new Error(nls.localize('vsix not allowed', "VSIX files cannot be installed because only extensions from the gallery are allowed. Please install this extension from the Extensions marketplace."));
26032605
}
2606+
this.logService.error('!!! installable instanceof URI !!!NOT BLOCK ');
26042607
extension = await this.doInstall(undefined, () => this.installFromVSIX(installable, installOptions), progressLocation);
26052608
} else if (extension) {
2609+
this.logService.info('!!!!!!!!! installable NOT instanceof URI === resourceExtension??? ');
26062610
if (extension.resourceExtension) {
26072611
// Block resource extension installations if the policy is configured and blockNonGalleryExtensions is enabled
26082612
const blockNonGallery = this.configurationService.getValue<boolean>(BlockNonGalleryExtensionsConfigKey);

0 commit comments

Comments
 (0)