@codingame/monaco-vscode-extension-gallery-service-override 13.1.4 → 13.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +20 -20
- package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryService.js +1 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.js +13 -13
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +2 -2
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeaturesManagemetService.js +4 -4
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementServerService.js +2 -2
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementService.js +24 -24
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
package/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
4
|
-
import {
|
|
4
|
+
import { IAllowedExtensionsService, IExtensionTipsService, IGlobalExtensionEnablementService, IExtensionGalleryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
5
5
|
import { ExtensionGalleryService } from './vscode/src/vs/platform/extensionManagement/common/extensionGalleryService.js';
|
|
6
6
|
import { GlobalExtensionEnablementService } from '@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common/vscode/vs/platform/extensionManagement/common/extensionEnablementService';
|
|
7
7
|
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
8
8
|
import { getLocale } from '@codingame/monaco-vscode-47923ab1-c4c8-58b5-89ac-fa1b998eb5dd-common/vscode/vs/platform/languagePacks/common/languagePacks';
|
|
9
9
|
import { ExtensionsWorkbenchService } from './vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js';
|
|
10
|
-
import {
|
|
10
|
+
import { IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService, IWebExtensionsScannerService, IExtensionManagementServerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service';
|
|
11
11
|
import { ExtensionManagementServerService } from './vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementServerService.js';
|
|
12
|
-
import {
|
|
12
|
+
import { IExtensionIgnoredRecommendationsService, IExtensionRecommendationsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service';
|
|
13
13
|
import { ExtensionRecommendationsService } from './vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationsService.js';
|
|
14
14
|
import { WebExtensionsScannerService } from './vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js';
|
|
15
15
|
import { IExtensionRecommendationNotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionRecommendations/common/extensionRecommendations.service';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extension-gallery-service-override",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - extension-gallery service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-039b5553-0838-562a-97c2-30d6e54a7b42-common": "13.1.
|
|
19
|
-
"@codingame/monaco-vscode-0f5ced28-abde-558b-8652-db8e7d4d64aa-common": "13.1.
|
|
20
|
-
"@codingame/monaco-vscode-10418ae3-ee63-5700-a757-89cbe6564ee4-common": "13.1.
|
|
21
|
-
"@codingame/monaco-vscode-219d9a5f-b446-507b-a188-1178a0867c75-common": "13.1.
|
|
22
|
-
"@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "13.1.
|
|
23
|
-
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "13.1.
|
|
24
|
-
"@codingame/monaco-vscode-47923ab1-c4c8-58b5-89ac-fa1b998eb5dd-common": "13.1.
|
|
25
|
-
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "13.1.
|
|
26
|
-
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "13.1.
|
|
27
|
-
"@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common": "13.1.
|
|
28
|
-
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "13.1.
|
|
29
|
-
"@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common": "13.1.
|
|
30
|
-
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "13.1.
|
|
31
|
-
"@codingame/monaco-vscode-api": "13.1.
|
|
32
|
-
"@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common": "13.1.
|
|
33
|
-
"@codingame/monaco-vscode-cc9ccbec-e2a1-599d-84ae-46f5efc666e3-common": "13.1.
|
|
34
|
-
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "13.1.
|
|
35
|
-
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": "13.1.
|
|
36
|
-
"@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.
|
|
18
|
+
"@codingame/monaco-vscode-039b5553-0838-562a-97c2-30d6e54a7b42-common": "13.1.5",
|
|
19
|
+
"@codingame/monaco-vscode-0f5ced28-abde-558b-8652-db8e7d4d64aa-common": "13.1.5",
|
|
20
|
+
"@codingame/monaco-vscode-10418ae3-ee63-5700-a757-89cbe6564ee4-common": "13.1.5",
|
|
21
|
+
"@codingame/monaco-vscode-219d9a5f-b446-507b-a188-1178a0867c75-common": "13.1.5",
|
|
22
|
+
"@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "13.1.5",
|
|
23
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "13.1.5",
|
|
24
|
+
"@codingame/monaco-vscode-47923ab1-c4c8-58b5-89ac-fa1b998eb5dd-common": "13.1.5",
|
|
25
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "13.1.5",
|
|
26
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "13.1.5",
|
|
27
|
+
"@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common": "13.1.5",
|
|
28
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "13.1.5",
|
|
29
|
+
"@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common": "13.1.5",
|
|
30
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "13.1.5",
|
|
31
|
+
"@codingame/monaco-vscode-api": "13.1.5",
|
|
32
|
+
"@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common": "13.1.5",
|
|
33
|
+
"@codingame/monaco-vscode-cc9ccbec-e2a1-599d-84ae-46f5efc666e3-common": "13.1.5",
|
|
34
|
+
"@codingame/monaco-vscode-d6e33d82-c101-549d-a885-0807ab3e0cfb-common": "13.1.5",
|
|
35
|
+
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": "13.1.5",
|
|
36
|
+
"@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.5"
|
|
37
37
|
},
|
|
38
38
|
"main": "index.js",
|
|
39
39
|
"module": "index.js",
|
|
@@ -10,7 +10,7 @@ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
|
10
10
|
import { isOfflineError } from '@codingame/monaco-vscode-039b5553-0838-562a-97c2-30d6e54a7b42-common/vscode/vs/base/parts/request/common/request';
|
|
11
11
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
12
12
|
import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service';
|
|
13
|
-
import { getTargetPlatform,
|
|
13
|
+
import { getTargetPlatform, SortOrder, SortBy, toTargetPlatform, WEB_EXTENSION_TAG, UseUnpkgResourceApiConfigKey, isNotWebExtensionInWebTargetPlatform, isTargetPlatformCompatible, ExtensionGalleryErrorCode, ExtensionGalleryError, StatisticType, InstallOperation } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
14
14
|
import { IAllowedExtensionsService } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
15
15
|
import { adoptToGalleryExtensionId, getGalleryExtensionId, areSameExtensions, getGalleryExtensionTelemetryData } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagementUtil';
|
|
16
16
|
import { TargetPlatform } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
@@ -75,7 +75,6 @@ const PropertyType = {
|
|
|
75
75
|
PreRelease: 'Microsoft.VisualStudio.Code.PreRelease',
|
|
76
76
|
EnabledApiProposals: 'Microsoft.VisualStudio.Code.EnabledApiProposals',
|
|
77
77
|
LocalizedLanguages: 'Microsoft.VisualStudio.Code.LocalizedLanguages',
|
|
78
|
-
WebExtension: 'Microsoft.VisualStudio.Code.WebExtension',
|
|
79
78
|
SponsorLink: 'Microsoft.VisualStudio.Code.SponsorLink',
|
|
80
79
|
SupportLink: 'Microsoft.VisualStudio.Services.Links.Support',
|
|
81
80
|
ExecutesCode: 'Microsoft.VisualStudio.Code.ExecutesCode',
|
package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import {
|
|
3
|
+
import { addDisposableListener, clearNode, $, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
4
|
import { ActionBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
5
5
|
import { getDefaultHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
6
6
|
import { renderLabelWithIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
@@ -55,7 +55,7 @@ import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/t
|
|
|
55
55
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
56
56
|
import { EditorPane } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
57
57
|
import { ExtensionFeaturesTab } from './extensionFeaturesTab.js';
|
|
58
|
-
import { InstallDropdownAction, ExtensionRuntimeStateAction, ExtensionStatusLabelAction, UpdateAction, SetColorThemeAction, SetFileIconThemeAction, SetProductIconThemeAction, SetLanguageAction, ClearLanguageAction, EnableDropDownAction, DisableDropDownAction, RemoteInstallAction, LocalInstallAction, WebInstallAction, InstallingLabelAction, ButtonWithDropDownExtensionAction, UninstallAction, MigrateDeprecatedExtensionAction, InstallAnotherVersionAction, TogglePreReleaseExtensionAction, ToggleAutoUpdateForExtensionAction,
|
|
58
|
+
import { InstallDropdownAction, ExtensionEditorManageExtensionAction, ExtensionRuntimeStateAction, ExtensionStatusLabelAction, UpdateAction, SetColorThemeAction, SetFileIconThemeAction, SetProductIconThemeAction, SetLanguageAction, ClearLanguageAction, EnableDropDownAction, DisableDropDownAction, RemoteInstallAction, LocalInstallAction, WebInstallAction, InstallingLabelAction, ButtonWithDropDownExtensionAction, UninstallAction, MigrateDeprecatedExtensionAction, InstallAnotherVersionAction, TogglePreReleaseExtensionAction, ToggleAutoUpdateForExtensionAction, DropDownExtensionAction, ButtonWithDropdownExtensionActionViewItem, ExtensionStatusAction } from '@codingame/monaco-vscode-47923ab1-c4c8-58b5-89ac-fa1b998eb5dd-common/vscode/vs/workbench/contrib/extensions/browser/extensionsActions';
|
|
59
59
|
import { Delegate } from './extensionsList.js';
|
|
60
60
|
import { ExtensionsTree, ExtensionData, ExtensionsGridView, getExtensions } from './extensionsViewer.js';
|
|
61
61
|
import { ExtensionWidget, RemoteBadgeWidget, VerifiedPublisherWidget, InstallCountWidget, RatingsWidget, SponsorWidget, ExtensionStatusWidget, ExtensionRecommendationWidget, onClick } from './extensionsWidgets.js';
|
|
@@ -5,7 +5,7 @@ import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/com
|
|
|
5
5
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
6
6
|
import { MenuRegistry, MenuId, registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
7
7
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
8
|
-
import { UseUnpkgResourceApiConfigKey,
|
|
8
|
+
import { AllowedExtensionsConfigKey, UseUnpkgResourceApiConfigKey, ExtensionInstallSource, EXTENSION_INSTALL_SOURCE_CONTEXT, ExtensionsLocalizedLabel, PreferencesLocalizedLabel } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
9
9
|
import { IExtensionGalleryService, IExtensionManagementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
10
10
|
import { EnablementState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement';
|
|
11
11
|
import { IWorkbenchExtensionManagementService, IExtensionManagementServerService, IWorkbenchExtensionEnablementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service';
|
|
@@ -56,7 +56,7 @@ import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/
|
|
|
56
56
|
import { IDialogService, IFileDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
57
57
|
import { StateType } from '@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update';
|
|
58
58
|
import { IUpdateService } from '@codingame/monaco-vscode-api/vscode/vs/platform/update/common/update.service';
|
|
59
|
-
import {
|
|
59
|
+
import { areApiProposalsCompatible, isEngineValid } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensionValidator';
|
|
60
60
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
61
61
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
62
62
|
import { ShowCurrentReleaseNotesActionId } from '@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common/vscode/vs/workbench/contrib/update/common/update';
|
package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.js
CHANGED
|
@@ -70,8 +70,8 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
70
70
|
this._register(allowedExtensionsService.onDidChangeAllowedExtensions(() => this._onDidChangeExtensions([], [], false)));
|
|
71
71
|
if (this.allUserExtensionsDisabled) {
|
|
72
72
|
this.lifecycleService.when(LifecyclePhase.Eventually).then(() => {
|
|
73
|
-
this.notificationService.prompt(Severity.Info, ( localize(
|
|
74
|
-
label: ( localize(
|
|
73
|
+
this.notificationService.prompt(Severity.Info, ( localize(11431, "All installed extensions are temporarily disabled.")), [{
|
|
74
|
+
label: ( localize(11432, "Reload and Enable Extensions")),
|
|
75
75
|
run: () => hostService.reload({ disableExtensions: false })
|
|
76
76
|
}], {
|
|
77
77
|
sticky: true,
|
|
@@ -123,7 +123,7 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
123
123
|
throwErrorIfCannotChangeEnablement(extension, donotCheckDependencies) {
|
|
124
124
|
if (isLanguagePackExtension(extension.manifest)) {
|
|
125
125
|
throw ( new Error(( localize(
|
|
126
|
-
|
|
126
|
+
11433,
|
|
127
127
|
"Cannot change enablement of {0} extension because it contributes language packs.",
|
|
128
128
|
extension.manifest.displayName || extension.identifier.id
|
|
129
129
|
))));
|
|
@@ -133,14 +133,14 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
133
133
|
a => a.id === this.userDataSyncAccountService.account.authenticationProviderId
|
|
134
134
|
))) {
|
|
135
135
|
throw ( new Error(( localize(
|
|
136
|
-
|
|
136
|
+
11434,
|
|
137
137
|
"Cannot change enablement {0} extension because Settings Sync depends on it.",
|
|
138
138
|
extension.manifest.displayName || extension.identifier.id
|
|
139
139
|
))));
|
|
140
140
|
}
|
|
141
141
|
if (this._isEnabledInEnv(extension)) {
|
|
142
142
|
throw ( new Error(( localize(
|
|
143
|
-
|
|
143
|
+
11435,
|
|
144
144
|
"Cannot change enablement of {0} extension because it is enabled in environment",
|
|
145
145
|
extension.manifest.displayName || extension.identifier.id
|
|
146
146
|
))));
|
|
@@ -151,31 +151,31 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
151
151
|
switch (enablementStateOfExtension) {
|
|
152
152
|
case EnablementState.DisabledByEnvironment:
|
|
153
153
|
throw ( new Error(( localize(
|
|
154
|
-
|
|
154
|
+
11436,
|
|
155
155
|
"Cannot change enablement of {0} extension because it is disabled in environment",
|
|
156
156
|
extension.manifest.displayName || extension.identifier.id
|
|
157
157
|
))));
|
|
158
158
|
case EnablementState.DisabledByVirtualWorkspace:
|
|
159
159
|
throw ( new Error(( localize(
|
|
160
|
-
|
|
160
|
+
11437,
|
|
161
161
|
"Cannot change enablement of {0} extension because it does not support virtual workspaces",
|
|
162
162
|
extension.manifest.displayName || extension.identifier.id
|
|
163
163
|
))));
|
|
164
164
|
case EnablementState.DisabledByExtensionKind:
|
|
165
165
|
throw ( new Error(( localize(
|
|
166
|
-
|
|
166
|
+
11438,
|
|
167
167
|
"Cannot change enablement of {0} extension because of its extension kind",
|
|
168
168
|
extension.manifest.displayName || extension.identifier.id
|
|
169
169
|
))));
|
|
170
170
|
case EnablementState.DisabledByAllowlist:
|
|
171
171
|
throw ( new Error(( localize(
|
|
172
|
-
|
|
172
|
+
11439,
|
|
173
173
|
"Cannot change enablement of {0} extension because it is disallowed",
|
|
174
174
|
extension.manifest.displayName || extension.identifier.id
|
|
175
175
|
))));
|
|
176
176
|
case EnablementState.DisabledByInvalidExtension:
|
|
177
177
|
throw ( new Error(( localize(
|
|
178
|
-
|
|
178
|
+
11440,
|
|
179
179
|
"Cannot change enablement of {0} extension because of it is invalid",
|
|
180
180
|
extension.manifest.displayName || extension.identifier.id
|
|
181
181
|
))));
|
|
@@ -188,7 +188,7 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
188
188
|
continue;
|
|
189
189
|
}
|
|
190
190
|
throw ( new Error(( localize(
|
|
191
|
-
|
|
191
|
+
11441,
|
|
192
192
|
"Cannot enable '{0}' extension because it depends on '{1}' extension that cannot be enabled",
|
|
193
193
|
extension.manifest.displayName || extension.identifier.id,
|
|
194
194
|
dependency.manifest.displayName || dependency.identifier.id
|
|
@@ -198,11 +198,11 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
198
198
|
}
|
|
199
199
|
throwErrorIfCannotChangeWorkspaceEnablement(extension) {
|
|
200
200
|
if (!this.hasWorkspace) {
|
|
201
|
-
throw ( new Error(( localize(
|
|
201
|
+
throw ( new Error(( localize(11442, "No workspace."))));
|
|
202
202
|
}
|
|
203
203
|
if (isAuthenticationProviderExtension(extension.manifest)) {
|
|
204
204
|
throw ( new Error(( localize(
|
|
205
|
-
|
|
205
|
+
11443,
|
|
206
206
|
"Cannot change enablement of {0} extension in workspace because it contributes authentication providers",
|
|
207
207
|
extension.manifest.displayName || extension.identifier.id
|
|
208
208
|
))));
|
package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js
CHANGED
|
@@ -605,7 +605,7 @@ let WebExtensionsScannerService = class WebExtensionsScannerService extends Disp
|
|
|
605
605
|
}
|
|
606
606
|
if (!this.extensionManifestPropertiesService.canExecuteOnWeb(manifest)) {
|
|
607
607
|
throw ( new Error(( localize(
|
|
608
|
-
|
|
608
|
+
11444,
|
|
609
609
|
"Cannot add '{0}' because this extension is not a web extension.",
|
|
610
610
|
manifest.displayName || manifest.name
|
|
611
611
|
))));
|
|
@@ -889,7 +889,7 @@ if (isWeb) {
|
|
|
889
889
|
constructor() {
|
|
890
890
|
super({
|
|
891
891
|
id: 'workbench.extensions.action.openInstalledWebExtensionsResource',
|
|
892
|
-
title: ( localize2(
|
|
892
|
+
title: ( localize2(11445, 'Open Installed Web Extensions Resource')),
|
|
893
893
|
category: Categories.Developer,
|
|
894
894
|
f1: true,
|
|
895
895
|
precondition: IsWebContext
|
|
@@ -87,17 +87,17 @@ let ExtensionFeaturesManagementService = class ExtensionFeaturesManagementServic
|
|
|
87
87
|
if (feature.access.requireUserConsent) {
|
|
88
88
|
const extensionDescription = this.extensionService.extensions.find(e => ExtensionIdentifier.equals(e.identifier, extension));
|
|
89
89
|
const confirmationResult = await this.dialogService.confirm({
|
|
90
|
-
title: ( localize(
|
|
90
|
+
title: ( localize(11446, "Access '{0}' Feature", feature.label)),
|
|
91
91
|
message: ( localize(
|
|
92
|
-
|
|
92
|
+
11447,
|
|
93
93
|
"'{0}' extension would like to access the '{1}' feature.",
|
|
94
94
|
extensionDescription?.displayName ?? extension._lower,
|
|
95
95
|
feature.label
|
|
96
96
|
)),
|
|
97
97
|
detail: justification ?? feature.description,
|
|
98
98
|
custom: true,
|
|
99
|
-
primaryButton: ( localize(
|
|
100
|
-
cancelButton: ( localize(
|
|
99
|
+
primaryButton: ( localize(11448, "Allow")),
|
|
100
|
+
cancelButton: ( localize(11449, "Don't Allow")),
|
|
101
101
|
});
|
|
102
102
|
enabled = confirmationResult.confirmed;
|
|
103
103
|
}
|
|
@@ -22,7 +22,7 @@ let ExtensionManagementServerService = class ExtensionManagementServerService {
|
|
|
22
22
|
this.remoteExtensionManagementServer = {
|
|
23
23
|
id: 'remote',
|
|
24
24
|
extensionManagementService,
|
|
25
|
-
get label() { return labelService.getHostLabel(Schemas.vscodeRemote, remoteAgentConnection.remoteAuthority) || ( localize(
|
|
25
|
+
get label() { return labelService.getHostLabel(Schemas.vscodeRemote, remoteAgentConnection.remoteAuthority) || ( localize(11450, "Remote")); },
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
if (isWeb) {
|
|
@@ -30,7 +30,7 @@ let ExtensionManagementServerService = class ExtensionManagementServerService {
|
|
|
30
30
|
this.webExtensionManagementServer = {
|
|
31
31
|
id: 'web',
|
|
32
32
|
extensionManagementService,
|
|
33
|
-
label: ( localize(
|
|
33
|
+
label: ( localize(11451, "Browser")),
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
}
|
package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementService.js
CHANGED
|
@@ -206,7 +206,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
206
206
|
getDependentsErrorMessage(extension, dependents) {
|
|
207
207
|
if (dependents.length === 1) {
|
|
208
208
|
return localize(
|
|
209
|
-
|
|
209
|
+
11452,
|
|
210
210
|
"Cannot uninstall extension '{0}'. Extension '{1}' depends on this.",
|
|
211
211
|
extension.manifest.displayName || extension.manifest.name,
|
|
212
212
|
dependents[0].manifest.displayName || dependents[0].manifest.name
|
|
@@ -214,7 +214,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
214
214
|
}
|
|
215
215
|
if (dependents.length === 2) {
|
|
216
216
|
return localize(
|
|
217
|
-
|
|
217
|
+
11453,
|
|
218
218
|
"Cannot uninstall extension '{0}'. Extensions '{1}' and '{2}' depend on this.",
|
|
219
219
|
extension.manifest.displayName || extension.manifest.name,
|
|
220
220
|
dependents[0].manifest.displayName || dependents[0].manifest.name,
|
|
@@ -222,7 +222,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
224
|
return localize(
|
|
225
|
-
|
|
225
|
+
11454,
|
|
226
226
|
"Cannot uninstall extension '{0}'. Extensions '{1}', '{2}' and others depend on this.",
|
|
227
227
|
extension.manifest.displayName || extension.manifest.name,
|
|
228
228
|
dependents[0].manifest.displayName || dependents[0].manifest.name,
|
|
@@ -340,7 +340,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
340
340
|
}
|
|
341
341
|
const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
|
|
342
342
|
if (!manifest) {
|
|
343
|
-
return ( new MarkdownString()).appendText(( localize(
|
|
343
|
+
return ( new MarkdownString()).appendText(( localize(11455, "Manifest is not found")));
|
|
344
344
|
}
|
|
345
345
|
if (this.extensionManagementServerService.remoteExtensionManagementServer
|
|
346
346
|
&& (await this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.canInstall(gallery)) === true
|
|
@@ -353,7 +353,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
353
353
|
return true;
|
|
354
354
|
}
|
|
355
355
|
return ( new MarkdownString()).appendText(( localize(
|
|
356
|
-
|
|
356
|
+
11456,
|
|
357
357
|
"Cannot install the '{0}' extension because it is not available in this setup.",
|
|
358
358
|
gallery.displayName || gallery.name
|
|
359
359
|
)));
|
|
@@ -369,7 +369,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
369
369
|
return true;
|
|
370
370
|
}
|
|
371
371
|
return ( new MarkdownString()).appendText(( localize(
|
|
372
|
-
|
|
372
|
+
11456,
|
|
373
373
|
"Cannot install the '{0}' extension because it is not available in this setup.",
|
|
374
374
|
extension.manifest.displayName ?? extension.identifier.id
|
|
375
375
|
)));
|
|
@@ -558,7 +558,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
558
558
|
const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
|
|
559
559
|
if (!manifest) {
|
|
560
560
|
return Promise.reject(( localize(
|
|
561
|
-
|
|
561
|
+
11457,
|
|
562
562
|
"Installing Extension {0} failed: Manifest is not found.",
|
|
563
563
|
gallery.displayName || gallery.name
|
|
564
564
|
)));
|
|
@@ -575,7 +575,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
575
575
|
}
|
|
576
576
|
if (!servers.length) {
|
|
577
577
|
const error = ( new Error(( localize(
|
|
578
|
-
|
|
578
|
+
11456,
|
|
579
579
|
"Cannot install the '{0}' extension because it is not available in this setup.",
|
|
580
580
|
gallery.displayName || gallery.name
|
|
581
581
|
))));
|
|
@@ -615,24 +615,24 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
615
615
|
if (this.isExtensionsSyncEnabled()) {
|
|
616
616
|
const { result } = await this.dialogService.prompt({
|
|
617
617
|
type: Severity.Info,
|
|
618
|
-
message: extensions.length === 1 ? ( localize(
|
|
618
|
+
message: extensions.length === 1 ? ( localize(11458, "Install Extension")) : ( localize(11459, "Install Extensions")),
|
|
619
619
|
detail: extensions.length === 1
|
|
620
620
|
? ( localize(
|
|
621
|
-
|
|
621
|
+
11460,
|
|
622
622
|
"Would you like to install and synchronize '{0}' extension across your devices?",
|
|
623
623
|
extensions[0].displayName
|
|
624
624
|
))
|
|
625
625
|
: ( localize(
|
|
626
|
-
|
|
626
|
+
11461,
|
|
627
627
|
"Would you like to install and synchronize extensions across your devices?"
|
|
628
628
|
)),
|
|
629
629
|
buttons: [
|
|
630
630
|
{
|
|
631
|
-
label: ( localize(
|
|
631
|
+
label: ( localize(11462, "&&Install")),
|
|
632
632
|
run: () => false
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
|
-
label: ( localize(
|
|
635
|
+
label: ( localize(11463, "Install (Do &¬ sync)")),
|
|
636
636
|
run: () => true
|
|
637
637
|
}
|
|
638
638
|
],
|
|
@@ -679,13 +679,13 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
679
679
|
async checkForWorkspaceTrust(manifest, requireTrust) {
|
|
680
680
|
if (requireTrust || this.extensionManifestPropertiesService.getExtensionUntrustedWorkspaceSupportType(manifest) === false) {
|
|
681
681
|
const buttons = [];
|
|
682
|
-
buttons.push({ label: ( localize(
|
|
682
|
+
buttons.push({ label: ( localize(11464, "Trust Workspace & Install")), type: 'ContinueWithTrust' });
|
|
683
683
|
if (!requireTrust) {
|
|
684
|
-
buttons.push({ label: ( localize(
|
|
684
|
+
buttons.push({ label: ( localize(11465, "Install")), type: 'ContinueWithoutTrust' });
|
|
685
685
|
}
|
|
686
|
-
buttons.push({ label: ( localize(
|
|
686
|
+
buttons.push({ label: ( localize(11466, "Learn More")), type: 'Manage' });
|
|
687
687
|
const trustState = await this.workspaceTrustRequestService.requestWorkspaceTrust({
|
|
688
|
-
message: ( localize(
|
|
688
|
+
message: ( localize(11467, "Enabling this extension requires a trusted workspace.")),
|
|
689
689
|
buttons
|
|
690
690
|
});
|
|
691
691
|
if (trustState === undefined) {
|
|
@@ -709,7 +709,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
709
709
|
throw ( new ExtensionManagementError('Not supported in Web', ExtensionManagementErrorCode.Unsupported));
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
const productName = ( localize(
|
|
712
|
+
const productName = ( localize(11468, "{0} for the Web", this.productService.nameLong));
|
|
713
713
|
const virtualWorkspaceSupport = this.extensionManifestPropertiesService.getExtensionVirtualWorkspaceSupportType(manifest);
|
|
714
714
|
const virtualWorkspaceSupportReason = getWorkspaceSupportTypeMessage(manifest.capabilities?.virtualWorkspaces);
|
|
715
715
|
const hasLimitedSupport = virtualWorkspaceSupport === 'limited' || !!virtualWorkspaceSupportReason;
|
|
@@ -717,7 +717,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
717
717
|
return;
|
|
718
718
|
}
|
|
719
719
|
const limitedSupportMessage = ( localize(
|
|
720
|
-
|
|
720
|
+
11469,
|
|
721
721
|
"'{0}' has limited functionality in {1}.",
|
|
722
722
|
extension.displayName || extension.identifier.id,
|
|
723
723
|
productName
|
|
@@ -726,16 +726,16 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
726
726
|
let buttons = [];
|
|
727
727
|
let detail;
|
|
728
728
|
const installAnywayButton = {
|
|
729
|
-
label: ( localize(
|
|
729
|
+
label: ( localize(11470, "&&Install Anyway")),
|
|
730
730
|
run: () => { }
|
|
731
731
|
};
|
|
732
732
|
const showExtensionsButton = {
|
|
733
|
-
label: ( localize(
|
|
733
|
+
label: ( localize(11471, "&&Show Extensions")),
|
|
734
734
|
run: () => this.instantiationService.invokeFunction(accessor => accessor.get(ICommandService).executeCommand('extension.open', extension.identifier.id, 'extensionPack'))
|
|
735
735
|
};
|
|
736
736
|
if (nonWebExtensions.length && hasLimitedSupport) {
|
|
737
737
|
message = limitedSupportMessage;
|
|
738
|
-
detail = `${virtualWorkspaceSupportReason ? `${virtualWorkspaceSupportReason}\n` : ''}${( localize(
|
|
738
|
+
detail = `${virtualWorkspaceSupportReason ? `${virtualWorkspaceSupportReason}\n` : ''}${( localize(11472, "Contains extensions which are not supported."))}`;
|
|
739
739
|
buttons = [
|
|
740
740
|
installAnywayButton,
|
|
741
741
|
showExtensionsButton
|
|
@@ -748,7 +748,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Dispos
|
|
|
748
748
|
}
|
|
749
749
|
else {
|
|
750
750
|
message = ( localize(
|
|
751
|
-
|
|
751
|
+
11473,
|
|
752
752
|
"'{0}' contains extensions which are not supported in {1}.",
|
|
753
753
|
extension.displayName || extension.identifier.id,
|
|
754
754
|
productName
|
|
@@ -990,7 +990,7 @@ let WorkspaceExtensionsManagementService = class WorkspaceExtensionsManagementSe
|
|
|
990
990
|
if (extension.manifest.main) {
|
|
991
991
|
if (!(await this.fileService.exists(this.uriIdentityService.extUri.joinPath(extension.location, extension.manifest.main)))) {
|
|
992
992
|
isValid = false;
|
|
993
|
-
validations.push([Severity.Error, ( localize(
|
|
993
|
+
validations.push([Severity.Error, ( localize(11474, "Cannot activate because {0} not found", extension.manifest.main))]);
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
return {
|
|
@@ -114,12 +114,12 @@ let ExtensionUrlHandler = class ExtensionUrlHandler {
|
|
|
114
114
|
uriString = `${uriString.substring(0, 30)}...${uriString.substring(uriString.length - 5)}`;
|
|
115
115
|
}
|
|
116
116
|
const result = await this.dialogService.confirm({
|
|
117
|
-
message: ( localize(
|
|
117
|
+
message: ( localize(11479, "Allow '{0}' extension to open this URI?", extensionDisplayName)),
|
|
118
118
|
checkbox: {
|
|
119
|
-
label: ( localize(
|
|
119
|
+
label: ( localize(11480, "Do not ask me again for this extension")),
|
|
120
120
|
},
|
|
121
121
|
detail: uriString,
|
|
122
|
-
primaryButton: ( localize(
|
|
122
|
+
primaryButton: ( localize(11481, "&&Open"))
|
|
123
123
|
});
|
|
124
124
|
if (!result.confirmed) {
|
|
125
125
|
this.telemetryService.publicLog2('uri_invoked/cancel', { extensionId });
|
|
@@ -166,8 +166,8 @@ let ExtensionUrlHandler = class ExtensionUrlHandler {
|
|
|
166
166
|
try {
|
|
167
167
|
await this.commandService.executeCommand('workbench.extensions.installExtension', extensionId, {
|
|
168
168
|
justification: {
|
|
169
|
-
reason: `${( localize(
|
|
170
|
-
action: ( localize(
|
|
169
|
+
reason: `${( localize(11482, "This extension wants to open a URI:"))}\n${( uri.toString())}`,
|
|
170
|
+
action: ( localize(11483, "Open URI"))
|
|
171
171
|
},
|
|
172
172
|
enable: true
|
|
173
173
|
});
|
|
@@ -191,11 +191,11 @@ let ExtensionUrlHandler = class ExtensionUrlHandler {
|
|
|
191
191
|
this.telemetryService.publicLog2('uri_invoked/install_extension/reload', { extensionId, isRemote: !!this.workbenchEnvironmentService.remoteAuthority });
|
|
192
192
|
const result = await this.dialogService.confirm({
|
|
193
193
|
message: ( localize(
|
|
194
|
-
|
|
194
|
+
11484,
|
|
195
195
|
"Extension '{0}' is not loaded. Would you like to reload the window to load the extension and open the URL?",
|
|
196
196
|
extensionId
|
|
197
197
|
)),
|
|
198
|
-
primaryButton: ( localize(
|
|
198
|
+
primaryButton: ( localize(11485, "&&Reload Window and Open"))
|
|
199
199
|
});
|
|
200
200
|
if (!result.confirmed) {
|
|
201
201
|
return;
|
|
@@ -276,8 +276,8 @@ class ManageAuthorizedExtensionURIsAction extends Action2 {
|
|
|
276
276
|
constructor() {
|
|
277
277
|
super({
|
|
278
278
|
id: 'workbench.extensions.action.manageAuthorizedExtensionURIs',
|
|
279
|
-
title: ( localize2(
|
|
280
|
-
category: ( localize2(
|
|
279
|
+
title: ( localize2(11486, 'Manage Authorized Extension URIs...')),
|
|
280
|
+
category: ( localize2(11487, 'Extensions')),
|
|
281
281
|
menu: {
|
|
282
282
|
id: MenuId.CommandPalette,
|
|
283
283
|
when: ( IsWebContext.toNegated())
|
|
@@ -290,7 +290,7 @@ class ManageAuthorizedExtensionURIsAction extends Action2 {
|
|
|
290
290
|
const storage = ( new UserTrustedExtensionIdStorage(storageService));
|
|
291
291
|
const items = ( storage.extensions.map((label) => ({ label, picked: true })));
|
|
292
292
|
if (items.length === 0) {
|
|
293
|
-
await quickInputService.pick([{ label: ( localize(
|
|
293
|
+
await quickInputService.pick([{ label: ( localize(11488, 'There are currently no authorized extension URIs.')) }]);
|
|
294
294
|
return;
|
|
295
295
|
}
|
|
296
296
|
const result = await quickInputService.pick(items, { canPickMany: true });
|