Skip to content

Commit 76e21a1

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

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
@@ -2408,6 +2408,8 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
24082408

24092409
if (extension.gallery) {
24102410
console.log('+++++++ extension.gallery ');
2411+
console.log('+++ ', extension.gallery);
2412+
console.log('+++ ', extension.displayName);
24112413
// Check if extension is allowed first (before checking platform compatibility or signing)
24122414
const allowedResult = this.allowedExtensionsService.isAllowed({ id: extension.gallery.identifier.id, publisherDisplayName: extension.gallery.publisherDisplayName });
24132415
if (allowedResult !== true) {
@@ -2450,9 +2452,11 @@ export class ExtensionsWorkbenchService extends Disposable implements IExtension
24502452
const hasPolicy = this.configurationService.inspect(AllowedExtensionsConfigKey).policy !== undefined;
24512453
if (hasPolicy && blockNonGallery) {
24522454
console.log('+++++++ hasPolicy && blockNonGallery ', hasPolicy);
2455+
console.error('+++++++ BLOCK ', extension.displayName);
24532456
return new MarkdownString(nls.localize('non-gallery extension not allowed', "This extension cannot be installed because only extensions from the gallery are allowed. Please install this extension from the Extensions marketplace."));
24542457
} else {
24552458
console.log('+++++++ NOT hasPolicy && blockNonGallery ', hasPolicy);
2459+
console.error('+++++++ NOT BLOCK ', extension.displayName);
24562460
}
24572461

24582462
if (extension.resourceExtension && await this.extensionManagementService.canInstall(extension.resourceExtension) === true) {

0 commit comments

Comments
 (0)