src/vs/platform/extensionManagement/common/allowedExtensionsService.ts

144 LOC · 143 covered · 1 uncovered · 47 ranges · 33 concepts · 30 introducers · 29 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the fileallowedExtensionsService.ts ×1 · 6 introduced LOCallowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow platform specific version of an extension when configured to multiple versions|occurrence=1 · 0 introduced LOCallowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should specific version of an extension when configured to different versions|occurrence=1 · 0 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×2 · 5 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 6 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if publisher is in allowed list|occurrence=1, allowedExtensionsService.test|title=AllowedExtensionsService should not allow extension if publisher is not in allowed list|occurrence=1, +1 · 0 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×4 · 4 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×2 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 7 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×2 · 4 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 1 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×4 · 13 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 4 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 2 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×3 · 5 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 1 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×1 · 1 introduced LOCallowedExtensionsService…allowedExtensionsService.ts ×7 · 52 introduced LOCallowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow a gallery extension|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow a gallery extension|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow a local extension|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow a local extension|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow a pre-release version of an extension when stable is configured|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow a pre-release version of an extension when stable is configured|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow a version of an extension when stable is configured|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow a version of an extension when stable is configured|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow all extensions if no allowed extensions are configured|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow all extensions if no allowed extensions are configured|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow any version of an extension when a specific version is configured|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow any version of an extension when a specific version is configured|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow any version of an extension when stable is configured|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow any version of an extension when stable is configured|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if only wildcard is in allowed list|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if only wildcard is in allowed list|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if publisher is in allowed list|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if publisher is in allowed list|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if publisher is not in allowed list and has different publisher mapping|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if publisher is not in allowed list and has different publisher mapping|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if publisher is not in allowed list and has publisher mapping|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if publisher is not in allowed list and has publisher mapping|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if publisher is set to random value|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if publisher is set to random value|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if wildcard is in allowed list|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow extension if wildcard is in allowed list|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow platform specific version of an extension when configured to multiple versions|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow platform specific version of an extension when configured to multiple versions|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow platform specific version of an extension when configured to platform specific version|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow platform specific version of an extension when configured to platform specific version|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow pre-release extension if pre-release is allowed|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow pre-release extension if pre-release is allowed|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow specific extension if in allowed list|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow specific extension if in allowed list|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow specific version of an extension when configured to multiple versions|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow specific version of an extension when configured to multiple versions|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow specific version of an extension when configured to platform specific version|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow specific version of an extension when configured to platform specific version|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow specific version of an extension when configured to that version|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow specific version of an extension when configured to that version|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should allow universal platform specific version of an extension when configured to platform specific version|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should allow universal platform specific version of an extension when configured to platform specific version|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should not allow extension if publisher is not in allowed list|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should not allow extension if publisher is not in allowed list|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should not allow extension if wildcard is not in allowed list|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should not allow extension if wildcard is not in allowed list|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should not allow platform specific version of an extension when configured to different platform specific version|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should not allow platform specific version of an extension when configured to different platform specific version|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should not allow pre-release extension if only stable is allowed|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should not allow pre-release extension if only stable is allowed|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should not allow prerelease extension if publisher is allowed only to stable|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should not allow prerelease extension if publisher is allowed only to stable|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should not allow specific extension if not in allowed list|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should not allow specific extension if not in allowed list|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should specific version of an extension when configured to different versions|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should specific version of an extension when configured to different versions|occurrence=1allowedExtensionsService…allowedExtensionsService.test|title=AllowedExtensionsService should trigger change event when allowed list change|occurrence=1 · introduced test · mocha:v1|namespace=vscode@05c208e9e28d8c1c723fa08f85e2b7a96092e8e5|file=vs/platform/extensionManagement/test/common/allowedExtensionsService.test|title=AllowedExtensionsService should trigger change event when allowed list change|occurrence=1allowedExtensionsService…Focused file · src/vs/platform/extensionManagement/common/allowedExtensionsService.ts · 144 LOCcommon/allowedExtensions…

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 > /*--------------------------------------------------------------------------------------------- allowedExtensionsService.ts ×7
2 > * Copyright (c) Microsoft Corporation. All rights reserved.
3 > * Licensed under the MIT License. See License.txt in the project root for license information.
4 > *--------------------------------------------------------------------------------------------*/
5 >
6 > import { Disposable } from '../../../base/common/lifecycle.js';
7 > import * as nls from '../../../nls.js';
8 > import { IGalleryExtension, AllowedExtensionsConfigKey, IAllowedExtensionsService, AllowedExtensionsConfigValueType } from './extensionManagement.js';
9 > import { ExtensionType, IExtension, TargetPlatform } from '../../extensions/common/extensions.js';
10 > import { IProductService } from '../../product/common/productService.js';
11 > import { createCommandUri, IMarkdownString, MarkdownString } from '../../../base/common/htmlContent.js';
12 > import { IConfigurationService } from '../../configuration/common/configuration.js';
13 > import { isBoolean, isObject, isUndefined } from '../../../base/common/types.js';
14 > import { Emitter } from '../../../base/common/event.js';
15 >
16 > function isGalleryExtension(extension: unknown): extension is IGalleryExtension { allowedExtensionsService.ts ×4
17 > return (extension as IGalleryExtension).type === 'gallery';
18 > }
20 > function isIExtension(extension: unknown): extension is IExtension { allowedExtensionsService.ts ×2
21 > return (extension as IExtension).type === ExtensionType.User || (extension as IExtension).type === ExtensionType.System;
22 > }
24 >
25 > const VersionRegex = /^(?<version>\d+\.\d+\.\d+(-.*)?)(@(?<platform>.+))?$/;
26 >
27 > export class AllowedExtensionsService extends Disposable implements IAllowedExtensionsService {
28 >
29 > _serviceBrand: undefined;
30 >
31 > private readonly publisherOrgs: string[];
32 >
33 > private _allowedExtensionsConfigValue: AllowedExtensionsConfigValueType | undefined;
34 > get allowedExtensionsConfigValue(): AllowedExtensionsConfigValueType | undefined {
35 > return this._allowedExtensionsConfigValue;
36 > }
37 > private _onDidChangeAllowedExtensions = this._register(new Emitter<void>());
38 > readonly onDidChangeAllowedExtensionsConfigValue = this._onDidChangeAllowedExtensions.event;
39 >
40 > constructor(
41 > @IProductService productService: IProductService,
42 > @IConfigurationService protected readonly configurationService: IConfigurationService
43 > ) {
44 > super();
45 > this.publisherOrgs = productService.extensionPublisherOrgs?.map(p => p.toLowerCase()) ?? [];
46 > this._allowedExtensionsConfigValue = this.getAllowedExtensionsValue();
47 > this._register(this.configurationService.onDidChangeConfiguration(e => {
48 > if (e.affectsConfiguration(AllowedExtensionsConfigKey)) { allowedExtensionsService.ts ×1
49 > this._allowedExtensionsConfigValue = this.getAllowedExtensionsValue();
50 > this._onDidChangeAllowedExtensions.fire();
51 > }
53 > }
54 >
55 > private getAllowedExtensionsValue(): AllowedExtensionsConfigValueType | undefined {
56 > const value = this.configurationService.getValue<AllowedExtensionsConfigValueType | undefined>(AllowedExtensionsConfigKey);
57 > if (!isObject(value) || Array.isArray(value)) {
58 > return undefined; allowedExtensionsService.ts ×1
59 > }
60 > const entries = Object.entries(value).map(([key, value]) => [key.toLowerCase(), value]); allowedExtensionsService.ts ×1
61 > if (entries.length === 1 && entries[0][0] === '*' && entries[0][1] === true) { allowedExtensionsService.ts ×7
62 > return undefined; allowedExtensionsService.ts ×1
63 > }
64 > return Object.fromEntries(entries); allowedExtensionsService.ts ×1
66 >
67 > isAllowed(extension: IGalleryExtension | IExtension | { id: string; publisherDisplayName: string | undefined; version?: string; prerelease?: boolean; targetPlatform?: TargetPlatform }): true | IMarkdownString {
68 > if (!this._allowedExtensionsConfigValue) { allowedExtensionsService.ts ×3
70 > }
72 > let id: string, version: string, targetPlatform: TargetPlatform, prerelease: boolean, publisher: string, publisherDisplayName: string | undefined;
73 >
74 > if (isGalleryExtension(extension)) {
75 > id = extension.identifier.id.toLowerCase(); allowedExtensionsService.ts ×1
76 > version = extension.version;
77 > prerelease = extension.properties.isPreReleaseVersion;
78 > publisher = extension.publisher.toLowerCase();
79 > publisherDisplayName = extension.publisherDisplayName.toLowerCase();
80 > targetPlatform = extension.properties.targetPlatform;
81 > } else if (isIExtension(extension)) { allowedExtensionsService.ts ×4
82 > id = extension.identifier.id.toLowerCase(); allowedExtensionsService.ts ×1
83 > version = extension.manifest.version;
84 > prerelease = extension.preRelease;
85 > publisher = extension.manifest.publisher.toLowerCase();
86 > publisherDisplayName = extension.publisherDisplayName?.toLowerCase();
87 > targetPlatform = extension.targetPlatform;
89 > id = extension.id.toLowerCase(); allowedExtensionsService.ts ×1
90 > version = extension.version ?? '*';
91 > targetPlatform = extension.targetPlatform ?? TargetPlatform.UNIVERSAL;
92 > prerelease = extension.prerelease ?? false;
93 > publisher = extension.id.substring(0, extension.id.indexOf('.')).toLowerCase();
94 > publisherDisplayName = extension.publisherDisplayName?.toLowerCase();
95 > }
97 > const settingsCommandLink = createCommandUri('workbench.action.openSettings', { query: `@id:${AllowedExtensionsConfigKey}` }).toString();
98 > const extensionValue = this._allowedExtensionsConfigValue[id];
99 > const extensionReason = new MarkdownString(nls.localize('specific extension not allowed', "it is not in the [allowed list]({0})", settingsCommandLink));
100 > if (!isUndefined(extensionValue)) {
101 > if (isBoolean(extensionValue)) { allowedExtensionsService.ts ×4
102 > return extensionValue ? true : extensionReason; allowedExtensionsService.ts ×1
103 > }
104 > if (extensionValue === 'stable' && prerelease) { allowedExtensionsService.ts ×4
105 > return new MarkdownString(nls.localize('extension prerelease not allowed', "the pre-release versions of this extension are not in the [allowed list]({0})", settingsCommandLink)); allowedExtensionsService.ts ×1
106 > }
107 > if (version !== '*' && Array.isArray(extensionValue) && !extensionValue.some(v => { allowedExtensionsService.ts ×4
108 > const match = VersionRegex.exec(v); allowedExtensionsService.ts ×2
109 > if (match && match.groups) {
110 > const { platform: p, version: v } = match.groups;
111 > if (v !== version) {
112 > return false; allowedExtensionsService.ts ×1
113 > }
114 > if (targetPlatform !== TargetPlatform.UNIVERSAL && p && targetPlatform !== p) { allowedExtensionsService.ts ×2
115 > return false; allowedExtensionsService.ts ×1
116 > }
117 > return true; allowedExtensionsService.ts ×1
118 > }
119 return false;
121 > return new MarkdownString(nls.localize('specific version of extension not allowed', "the version {0} of this extension is not in the [allowed list]({1})", version, settingsCommandLink)); allowedExtensionsService.ts ×1
122 > }
123 > return true; allowedExtensionsService.ts ×1
124 > }
126 > const publisherKey = publisherDisplayName && this.publisherOrgs.includes(publisherDisplayName) ? publisherDisplayName : publisher; allowedExtensionsService.ts ×3
127 > const publisherValue = this._allowedExtensionsConfigValue[publisherKey];
128 > if (!isUndefined(publisherValue)) {
129 > if (isBoolean(publisherValue)) { allowedExtensionsService.ts ×2
130 > return publisherValue ? true : new MarkdownString(nls.localize('publisher not allowed', "the extensions from this publisher are not in the [allowed list]({1})", publisherKey, settingsCommandLink)); allowedExtensionsService.ts ×1
131 > }
132 > if (publisherValue === 'stable' && prerelease) { allowedExtensionsService.ts ×2
133 > return new MarkdownString(nls.localize('prerelease versions from this publisher not allowed', "the pre-release versions from this publisher are not in the [allowed list]({1})", publisherKey, settingsCommandLink)); allowedExtensionsService.ts ×1
134 > }
135 > return true; allowedExtensionsService.ts ×1
136 > }
138 > if (this._allowedExtensionsConfigValue['*'] === true) {
139 > return true; allowedExtensionsService.ts ×1
140 > }
142 > return extensionReason;