@codingame/monaco-vscode-extension-gallery-service-override 21.3.2 → 21.3.4
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/package.json +10 -10
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.web.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/reportExtensionIssueAction.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.js +14 -14
- 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 +46 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extension-gallery-service-override",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - extension-gallery service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-23aade48-f094-5c08-9555-97fc9cca96c9-common": "21.3.
|
|
19
|
-
"@codingame/monaco-vscode-249dc928-1da3-51c1-82d0-45e0ba9d08a1-common": "21.3.
|
|
20
|
-
"@codingame/monaco-vscode-2673c6e2-17c1-5710-b169-46f3d4a28696-common": "21.3.
|
|
21
|
-
"@codingame/monaco-vscode-571c8352-7953-5038-9f09-e03bb6219a0e-common": "21.3.
|
|
22
|
-
"@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common": "21.3.
|
|
23
|
-
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "21.3.
|
|
24
|
-
"@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common": "21.3.
|
|
25
|
-
"@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "21.3.
|
|
26
|
-
"@codingame/monaco-vscode-api": "21.3.
|
|
18
|
+
"@codingame/monaco-vscode-23aade48-f094-5c08-9555-97fc9cca96c9-common": "21.3.4",
|
|
19
|
+
"@codingame/monaco-vscode-249dc928-1da3-51c1-82d0-45e0ba9d08a1-common": "21.3.4",
|
|
20
|
+
"@codingame/monaco-vscode-2673c6e2-17c1-5710-b169-46f3d4a28696-common": "21.3.4",
|
|
21
|
+
"@codingame/monaco-vscode-571c8352-7953-5038-9f09-e03bb6219a0e-common": "21.3.4",
|
|
22
|
+
"@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common": "21.3.4",
|
|
23
|
+
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "21.3.4",
|
|
24
|
+
"@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common": "21.3.4",
|
|
25
|
+
"@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "21.3.4",
|
|
26
|
+
"@codingame/monaco-vscode-api": "21.3.4"
|
|
27
27
|
},
|
|
28
28
|
"main": "index.js",
|
|
29
29
|
"module": "index.js",
|
|
@@ -7,4 +7,4 @@ import { RuntimeExtensionsEditor } from './browserRuntimeExtensionsEditor.js';
|
|
|
7
7
|
import { RuntimeExtensionsInput } from '@codingame/monaco-vscode-2673c6e2-17c1-5710-b169-46f3d4a28696-common/vscode/vs/workbench/contrib/extensions/common/runtimeExtensionsInput';
|
|
8
8
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
9
9
|
|
|
10
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(RuntimeExtensionsEditor, RuntimeExtensionsEditor.ID, ( localize(
|
|
10
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(RuntimeExtensionsEditor, RuntimeExtensionsEditor.ID, ( localize(7006, "Running Extensions"))), [( new SyncDescriptor(RuntimeExtensionsInput))]);
|
|
@@ -8,7 +8,7 @@ var ReportExtensionIssueAction_1;
|
|
|
8
8
|
let ReportExtensionIssueAction = class ReportExtensionIssueAction extends Action {
|
|
9
9
|
static { ReportExtensionIssueAction_1 = this; }
|
|
10
10
|
static { this._id = 'workbench.extensions.action.reportExtensionIssue'; }
|
|
11
|
-
static { this._label = ( localize(
|
|
11
|
+
static { this._label = ( localize(7372, "Report Issue")); }
|
|
12
12
|
constructor(extension, issueService) {
|
|
13
13
|
super(ReportExtensionIssueAction_1._id, ReportExtensionIssueAction_1._label, 'extension-action report-issue');
|
|
14
14
|
this.extension = extension;
|
package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionEnablementService.js
CHANGED
|
@@ -78,8 +78,8 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
78
78
|
this._register(allowedExtensionsService.onDidChangeAllowedExtensionsConfigValue(() => this._onDidChangeExtensions([], [], false)));
|
|
79
79
|
if (this.allUserExtensionsDisabled) {
|
|
80
80
|
this.lifecycleService.when(LifecyclePhase.Eventually).then(() => {
|
|
81
|
-
this.notificationService.prompt(Severity.Info, ( localize(
|
|
82
|
-
label: ( localize(
|
|
81
|
+
this.notificationService.prompt(Severity.Info, ( localize(13248, "All installed extensions are temporarily disabled.")), [{
|
|
82
|
+
label: ( localize(13249, "Reload and Enable Extensions")),
|
|
83
83
|
run: () => hostService.reload({ disableExtensions: false })
|
|
84
84
|
}], {
|
|
85
85
|
sticky: true,
|
|
@@ -131,7 +131,7 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
131
131
|
throwErrorIfCannotChangeEnablement(extension, donotCheckDependencies) {
|
|
132
132
|
if (isLanguagePackExtension(extension.manifest)) {
|
|
133
133
|
throw ( new Error(( localize(
|
|
134
|
-
|
|
134
|
+
13250,
|
|
135
135
|
"Cannot change enablement of {0} extension because it contributes language packs.",
|
|
136
136
|
extension.manifest.displayName || extension.identifier.id
|
|
137
137
|
))));
|
|
@@ -141,14 +141,14 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
141
141
|
a => a.id === this.userDataSyncAccountService.account.authenticationProviderId
|
|
142
142
|
))) {
|
|
143
143
|
throw ( new Error(( localize(
|
|
144
|
-
|
|
144
|
+
13251,
|
|
145
145
|
"Cannot change enablement {0} extension because Settings Sync depends on it.",
|
|
146
146
|
extension.manifest.displayName || extension.identifier.id
|
|
147
147
|
))));
|
|
148
148
|
}
|
|
149
149
|
if (this._isEnabledInEnv(extension)) {
|
|
150
150
|
throw ( new Error(( localize(
|
|
151
|
-
|
|
151
|
+
13252,
|
|
152
152
|
"Cannot change enablement of {0} extension because it is enabled in environment",
|
|
153
153
|
extension.manifest.displayName || extension.identifier.id
|
|
154
154
|
))));
|
|
@@ -159,37 +159,37 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
159
159
|
switch (enablementStateOfExtension) {
|
|
160
160
|
case EnablementState.DisabledByEnvironment:
|
|
161
161
|
throw ( new Error(( localize(
|
|
162
|
-
|
|
162
|
+
13253,
|
|
163
163
|
"Cannot change enablement of {0} extension because it is disabled in environment",
|
|
164
164
|
extension.manifest.displayName || extension.identifier.id
|
|
165
165
|
))));
|
|
166
166
|
case EnablementState.DisabledByMalicious:
|
|
167
167
|
throw ( new Error(( localize(
|
|
168
|
-
|
|
168
|
+
13254,
|
|
169
169
|
"Cannot change enablement of {0} extension because it is malicious",
|
|
170
170
|
extension.manifest.displayName || extension.identifier.id
|
|
171
171
|
))));
|
|
172
172
|
case EnablementState.DisabledByVirtualWorkspace:
|
|
173
173
|
throw ( new Error(( localize(
|
|
174
|
-
|
|
174
|
+
13255,
|
|
175
175
|
"Cannot change enablement of {0} extension because it does not support virtual workspaces",
|
|
176
176
|
extension.manifest.displayName || extension.identifier.id
|
|
177
177
|
))));
|
|
178
178
|
case EnablementState.DisabledByExtensionKind:
|
|
179
179
|
throw ( new Error(( localize(
|
|
180
|
-
|
|
180
|
+
13256,
|
|
181
181
|
"Cannot change enablement of {0} extension because of its extension kind",
|
|
182
182
|
extension.manifest.displayName || extension.identifier.id
|
|
183
183
|
))));
|
|
184
184
|
case EnablementState.DisabledByAllowlist:
|
|
185
185
|
throw ( new Error(( localize(
|
|
186
|
-
|
|
186
|
+
13257,
|
|
187
187
|
"Cannot change enablement of {0} extension because it is disallowed",
|
|
188
188
|
extension.manifest.displayName || extension.identifier.id
|
|
189
189
|
))));
|
|
190
190
|
case EnablementState.DisabledByInvalidExtension:
|
|
191
191
|
throw ( new Error(( localize(
|
|
192
|
-
|
|
192
|
+
13258,
|
|
193
193
|
"Cannot change enablement of {0} extension because of it is invalid",
|
|
194
194
|
extension.manifest.displayName || extension.identifier.id
|
|
195
195
|
))));
|
|
@@ -202,7 +202,7 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
202
202
|
continue;
|
|
203
203
|
}
|
|
204
204
|
throw ( new Error(( localize(
|
|
205
|
-
|
|
205
|
+
13259,
|
|
206
206
|
"Cannot enable '{0}' extension because it depends on '{1}' extension that cannot be enabled",
|
|
207
207
|
extension.manifest.displayName || extension.identifier.id,
|
|
208
208
|
dependency.manifest.displayName || dependency.identifier.id
|
|
@@ -212,11 +212,11 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
|
|
|
212
212
|
}
|
|
213
213
|
throwErrorIfCannotChangeWorkspaceEnablement(extension) {
|
|
214
214
|
if (!this.hasWorkspace) {
|
|
215
|
-
throw ( new Error(( localize(
|
|
215
|
+
throw ( new Error(( localize(13260, "No workspace."))));
|
|
216
216
|
}
|
|
217
217
|
if (isAuthenticationProviderExtension(extension.manifest)) {
|
|
218
218
|
throw ( new Error(( localize(
|
|
219
|
-
|
|
219
|
+
13261,
|
|
220
220
|
"Cannot change enablement of {0} extension in workspace because it contributes authentication providers",
|
|
221
221
|
extension.manifest.displayName || extension.identifier.id
|
|
222
222
|
))));
|
|
@@ -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(13264, "Access '{0}' Feature", feature.label)),
|
|
91
91
|
message: ( localize(
|
|
92
|
-
|
|
92
|
+
13265,
|
|
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(13266, "Allow")),
|
|
100
|
+
cancelButton: ( localize(13267, "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(13268, "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(13269, "Browser")),
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
}
|
package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementService.js
CHANGED
|
@@ -222,7 +222,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
222
222
|
getDependentsErrorMessage(extension, dependents) {
|
|
223
223
|
if (dependents.length === 1) {
|
|
224
224
|
return localize(
|
|
225
|
-
|
|
225
|
+
13270,
|
|
226
226
|
"Cannot uninstall extension '{0}'. Extension '{1}' depends on this.",
|
|
227
227
|
extension.manifest.displayName || extension.manifest.name,
|
|
228
228
|
dependents[0].manifest.displayName || dependents[0].manifest.name
|
|
@@ -230,7 +230,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
230
230
|
}
|
|
231
231
|
if (dependents.length === 2) {
|
|
232
232
|
return localize(
|
|
233
|
-
|
|
233
|
+
13271,
|
|
234
234
|
"Cannot uninstall extension '{0}'. Extensions '{1}' and '{2}' depend on this.",
|
|
235
235
|
extension.manifest.displayName || extension.manifest.name,
|
|
236
236
|
dependents[0].manifest.displayName || dependents[0].manifest.name,
|
|
@@ -238,7 +238,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
return localize(
|
|
241
|
-
|
|
241
|
+
13272,
|
|
242
242
|
"Cannot uninstall extension '{0}'. Extensions '{1}', '{2}' and others depend on this.",
|
|
243
243
|
extension.manifest.displayName || extension.manifest.name,
|
|
244
244
|
dependents[0].manifest.displayName || dependents[0].manifest.name,
|
|
@@ -348,7 +348,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
348
348
|
}
|
|
349
349
|
const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
|
|
350
350
|
if (!manifest) {
|
|
351
|
-
return ( new MarkdownString()).appendText(( localize(
|
|
351
|
+
return ( new MarkdownString()).appendText(( localize(13273, "Manifest is not found")));
|
|
352
352
|
}
|
|
353
353
|
if (this.extensionManagementServerService.remoteExtensionManagementServer
|
|
354
354
|
&& (await this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.canInstall(gallery)) === true
|
|
@@ -361,7 +361,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
361
361
|
return true;
|
|
362
362
|
}
|
|
363
363
|
return ( new MarkdownString()).appendText(( localize(
|
|
364
|
-
|
|
364
|
+
13274,
|
|
365
365
|
"Cannot install the '{0}' extension because it is not available in this setup.",
|
|
366
366
|
gallery.displayName || gallery.name
|
|
367
367
|
)));
|
|
@@ -377,7 +377,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
377
377
|
return true;
|
|
378
378
|
}
|
|
379
379
|
return ( new MarkdownString()).appendText(( localize(
|
|
380
|
-
|
|
380
|
+
13274,
|
|
381
381
|
"Cannot install the '{0}' extension because it is not available in this setup.",
|
|
382
382
|
extension.manifest.displayName ?? extension.identifier.id
|
|
383
383
|
)));
|
|
@@ -406,7 +406,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
406
406
|
const manifest = await this.extensionGalleryService.getManifest(extension, CancellationToken.None);
|
|
407
407
|
if (!manifest) {
|
|
408
408
|
throw ( new Error(( localize(
|
|
409
|
-
|
|
409
|
+
13275,
|
|
410
410
|
"Installing Extension {0} failed: Manifest is not found.",
|
|
411
411
|
extension.displayName || extension.name
|
|
412
412
|
))));
|
|
@@ -425,7 +425,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
425
425
|
const manifest = await this.extensionGalleryService.getManifest(extension, CancellationToken.None);
|
|
426
426
|
if (!manifest) {
|
|
427
427
|
throw ( new Error(( localize(
|
|
428
|
-
|
|
428
|
+
13275,
|
|
429
429
|
"Installing Extension {0} failed: Manifest is not found.",
|
|
430
430
|
extension.displayName || extension.name
|
|
431
431
|
))));
|
|
@@ -473,7 +473,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
473
473
|
const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
|
|
474
474
|
if (!manifest) {
|
|
475
475
|
throw ( new Error(( localize(
|
|
476
|
-
|
|
476
|
+
13275,
|
|
477
477
|
"Installing Extension {0} failed: Manifest is not found.",
|
|
478
478
|
gallery.displayName || gallery.name
|
|
479
479
|
))));
|
|
@@ -577,7 +577,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
577
577
|
const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
|
|
578
578
|
if (!manifest) {
|
|
579
579
|
return Promise.reject(( localize(
|
|
580
|
-
|
|
580
|
+
13275,
|
|
581
581
|
"Installing Extension {0} failed: Manifest is not found.",
|
|
582
582
|
gallery.displayName || gallery.name
|
|
583
583
|
)));
|
|
@@ -627,7 +627,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
627
627
|
for (const server of servers) {
|
|
628
628
|
if (!installableServers.includes(server)) {
|
|
629
629
|
const error = ( new Error(( localize(
|
|
630
|
-
|
|
630
|
+
13276,
|
|
631
631
|
"Cannot install the '{0}' extension because it is not available in the '{1}' setup.",
|
|
632
632
|
gallery.displayName || gallery.name,
|
|
633
633
|
server.label
|
|
@@ -651,7 +651,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
651
651
|
}
|
|
652
652
|
if (!servers.length) {
|
|
653
653
|
const error = ( new Error(( localize(
|
|
654
|
-
|
|
654
|
+
13274,
|
|
655
655
|
"Cannot install the '{0}' extension because it is not available in this setup.",
|
|
656
656
|
gallery.displayName || gallery.name
|
|
657
657
|
))));
|
|
@@ -689,24 +689,24 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
689
689
|
if (this.isExtensionsSyncEnabled()) {
|
|
690
690
|
const { result } = await this.dialogService.prompt({
|
|
691
691
|
type: Severity.Info,
|
|
692
|
-
message: extensions.length === 1 ? ( localize(
|
|
692
|
+
message: extensions.length === 1 ? ( localize(13277, "Install Extension")) : ( localize(13278, "Install Extensions")),
|
|
693
693
|
detail: extensions.length === 1
|
|
694
694
|
? ( localize(
|
|
695
|
-
|
|
695
|
+
13279,
|
|
696
696
|
"Would you like to install and synchronize '{0}' extension across your devices?",
|
|
697
697
|
extensions[0].displayName
|
|
698
698
|
))
|
|
699
699
|
: ( localize(
|
|
700
|
-
|
|
700
|
+
13280,
|
|
701
701
|
"Would you like to install and synchronize extensions across your devices?"
|
|
702
702
|
)),
|
|
703
703
|
buttons: [
|
|
704
704
|
{
|
|
705
|
-
label: ( localize(
|
|
705
|
+
label: ( localize(13281, "&&Install")),
|
|
706
706
|
run: () => false
|
|
707
707
|
},
|
|
708
708
|
{
|
|
709
|
-
label: ( localize(
|
|
709
|
+
label: ( localize(13282, "Install (Do &¬ sync)")),
|
|
710
710
|
run: () => true
|
|
711
711
|
}
|
|
712
712
|
],
|
|
@@ -755,7 +755,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
755
755
|
const manifest = await this.extensionGalleryService.getManifest(extension, CancellationToken.None);
|
|
756
756
|
if (!manifest) {
|
|
757
757
|
throw ( new Error(( localize(
|
|
758
|
-
|
|
758
|
+
13275,
|
|
759
759
|
"Installing Extension {0} failed: Manifest is not found.",
|
|
760
760
|
extension.displayName || extension.name
|
|
761
761
|
))));
|
|
@@ -787,7 +787,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
787
787
|
const unverfiiedPublishers = allPublishers.filter(p => !p.publisherDomain?.verified);
|
|
788
788
|
const verifiedPublishers = allPublishers.filter(p => p.publisherDomain?.verified);
|
|
789
789
|
const installButton = {
|
|
790
|
-
label: allPublishers.length > 1 ? ( localize(
|
|
790
|
+
label: allPublishers.length > 1 ? ( localize(13283, "Trust Publishers & &&Install")) : ( localize(13284, "Trust Publisher & &&Install")),
|
|
791
791
|
run: () => {
|
|
792
792
|
this.telemetryService.publicLog2('extensions:trustPublisher', { action: 'trust', extensionId: ( untrustedExtensions.map(e => e.identifier.id)).join(',') });
|
|
793
793
|
this.trustPublishers(...( allPublishers.map(
|
|
@@ -796,7 +796,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
796
796
|
}
|
|
797
797
|
};
|
|
798
798
|
const learnMoreButton = {
|
|
799
|
-
label: ( localize(
|
|
799
|
+
label: ( localize(13285, "&&Learn More")),
|
|
800
800
|
run: () => {
|
|
801
801
|
this.telemetryService.publicLog2('extensions:trustPublisher', { action: 'learn', extensionId: ( untrustedExtensions.map(e => e.identifier.id)).join(',') });
|
|
802
802
|
this.instantiationService.invokeFunction(accessor => accessor.get(ICommandService).executeCommand('vscode.open', ( URI.parse('https://aka.ms/vscode-extension-security'))));
|
|
@@ -809,19 +809,19 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
809
809
|
const unverifiedLink = 'https://aka.ms/vscode-verify-publisher';
|
|
810
810
|
const title = allPublishers.length === 1
|
|
811
811
|
? ( localize(
|
|
812
|
-
|
|
812
|
+
13286,
|
|
813
813
|
"Do you trust the publisher \"{0}\"?",
|
|
814
814
|
allPublishers[0].publisherDisplayName
|
|
815
815
|
))
|
|
816
816
|
: allPublishers.length === 2
|
|
817
817
|
? ( localize(
|
|
818
|
-
|
|
818
|
+
13287,
|
|
819
819
|
"Do you trust publishers \"{0}\" and \"{1}\"?",
|
|
820
820
|
allPublishers[0].publisherDisplayName,
|
|
821
821
|
allPublishers[1].publisherDisplayName
|
|
822
822
|
))
|
|
823
823
|
: ( localize(
|
|
824
|
-
|
|
824
|
+
13288,
|
|
825
825
|
"Do you trust the publisher \"{0}\" and {1} others?",
|
|
826
826
|
allPublishers[0].publisherDisplayName,
|
|
827
827
|
allPublishers.length - 1
|
|
@@ -832,7 +832,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
832
832
|
const manifest = untrustedExtensionManifests[0];
|
|
833
833
|
if (otherUntrustedPublishers.length) {
|
|
834
834
|
customMessage.appendMarkdown(( localize(
|
|
835
|
-
|
|
835
|
+
13289,
|
|
836
836
|
"The extension {0} is published by {1}.",
|
|
837
837
|
`[${extension.displayName}](${extension.detailsLink})`,
|
|
838
838
|
getPublisherLink(extension)
|
|
@@ -843,7 +843,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
843
843
|
)).toString());
|
|
844
844
|
if (otherUntrustedPublishers.length === 1) {
|
|
845
845
|
customMessage.appendMarkdown(( localize(
|
|
846
|
-
|
|
846
|
+
13290,
|
|
847
847
|
"Installing this extension will also install [extensions]({0}) published by {1}.",
|
|
848
848
|
commandUri,
|
|
849
849
|
getPublisherLink(otherUntrustedPublishers[0])
|
|
@@ -851,7 +851,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
851
851
|
}
|
|
852
852
|
else {
|
|
853
853
|
customMessage.appendMarkdown(( localize(
|
|
854
|
-
|
|
854
|
+
13291,
|
|
855
855
|
"Installing this extension will also install [extensions]({0}) published by {1} and {2}.",
|
|
856
856
|
commandUri,
|
|
857
857
|
( otherUntrustedPublishers.slice(0, otherUntrustedPublishers.length - 1).map(p => getPublisherLink(p))).join(', '),
|
|
@@ -860,13 +860,13 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
860
860
|
}
|
|
861
861
|
customMessage.appendMarkdown(' ');
|
|
862
862
|
customMessage.appendMarkdown(( localize(
|
|
863
|
-
|
|
863
|
+
13292,
|
|
864
864
|
"This is the first time you're installing extensions from these publishers."
|
|
865
865
|
)));
|
|
866
866
|
}
|
|
867
867
|
else {
|
|
868
868
|
customMessage.appendMarkdown(( localize(
|
|
869
|
-
|
|
869
|
+
13293,
|
|
870
870
|
"The extension {0} is published by {1}. This is the first extension you're installing from this publisher.",
|
|
871
871
|
`[${extension.displayName}](${extension.detailsLink})`,
|
|
872
872
|
getPublisherLink(extension)
|
|
@@ -875,7 +875,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
875
875
|
}
|
|
876
876
|
else {
|
|
877
877
|
customMessage.appendMarkdown(( localize(
|
|
878
|
-
|
|
878
|
+
13294,
|
|
879
879
|
"This is the first time you're installing extensions from publishers {0} and {1}.",
|
|
880
880
|
getPublisherLink(allPublishers[0]),
|
|
881
881
|
getPublisherLink(allPublishers[allPublishers.length - 1])
|
|
@@ -885,7 +885,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
885
885
|
for (const publisher of verifiedPublishers) {
|
|
886
886
|
customMessage.appendText('\n');
|
|
887
887
|
const publisherVerifiedMessage = ( localize(
|
|
888
|
-
|
|
888
|
+
13295,
|
|
889
889
|
"{0} has verified ownership of {1}.",
|
|
890
890
|
getPublisherLink(publisher),
|
|
891
891
|
`[$(link-external) ${( URI.parse(publisher.publisherDomain.link)).authority}](${publisher.publisherDomain.link})`
|
|
@@ -896,7 +896,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
896
896
|
customMessage.appendText('\n');
|
|
897
897
|
if (unverfiiedPublishers.length === 1) {
|
|
898
898
|
customMessage.appendMarkdown(`$(${Codicon.unverified.id}) ${( localize(
|
|
899
|
-
|
|
899
|
+
13296,
|
|
900
900
|
"{0} is [**not** verified]({1}).",
|
|
901
901
|
getPublisherLink(unverfiiedPublishers[0]),
|
|
902
902
|
unverifiedLink
|
|
@@ -904,7 +904,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
904
904
|
}
|
|
905
905
|
else {
|
|
906
906
|
customMessage.appendMarkdown(`$(${Codicon.unverified.id}) ${( localize(
|
|
907
|
-
|
|
907
|
+
13297,
|
|
908
908
|
"{0} and {1} are [**not** verified]({2}).",
|
|
909
909
|
( unverfiiedPublishers.slice(0, unverfiiedPublishers.length - 1).map(p => getPublisherLink(p))).join(', '),
|
|
910
910
|
getPublisherLink(unverfiiedPublishers[unverfiiedPublishers.length - 1]),
|
|
@@ -915,19 +915,19 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
915
915
|
}
|
|
916
916
|
else {
|
|
917
917
|
customMessage.appendText('\n');
|
|
918
|
-
customMessage.appendMarkdown(`$(${Codicon.unverified.id}) ${( localize(
|
|
918
|
+
customMessage.appendMarkdown(`$(${Codicon.unverified.id}) ${( localize(13298, "All publishers are [**not** verified]({0}).", unverifiedLink))}`);
|
|
919
919
|
}
|
|
920
920
|
customMessage.appendText('\n');
|
|
921
921
|
if (allPublishers.length > 1) {
|
|
922
922
|
customMessage.appendMarkdown(( localize(
|
|
923
|
-
|
|
923
|
+
13299,
|
|
924
924
|
"{0} has no control over the behavior of third-party extensions, including how they manage your personal data. Proceed only if you trust the publishers.",
|
|
925
925
|
this.productService.nameLong
|
|
926
926
|
)));
|
|
927
927
|
}
|
|
928
928
|
else {
|
|
929
929
|
customMessage.appendMarkdown(( localize(
|
|
930
|
-
|
|
930
|
+
13300,
|
|
931
931
|
"{0} has no control over the behavior of third-party extensions, including how they manage your personal data. Proceed only if you trust the publisher.",
|
|
932
932
|
this.productService.nameLong
|
|
933
933
|
)));
|
|
@@ -1006,13 +1006,13 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
1006
1006
|
async checkForWorkspaceTrust(manifest, requireTrust) {
|
|
1007
1007
|
if (requireTrust || this.extensionManifestPropertiesService.getExtensionUntrustedWorkspaceSupportType(manifest) === false) {
|
|
1008
1008
|
const buttons = [];
|
|
1009
|
-
buttons.push({ label: ( localize(
|
|
1009
|
+
buttons.push({ label: ( localize(13301, "Trust Workspace & Install")), type: 'ContinueWithTrust' });
|
|
1010
1010
|
if (!requireTrust) {
|
|
1011
|
-
buttons.push({ label: ( localize(
|
|
1011
|
+
buttons.push({ label: ( localize(13302, "Install")), type: 'ContinueWithoutTrust' });
|
|
1012
1012
|
}
|
|
1013
|
-
buttons.push({ label: ( localize(
|
|
1013
|
+
buttons.push({ label: ( localize(13303, "Learn More")), type: 'Manage' });
|
|
1014
1014
|
const trustState = await this.workspaceTrustRequestService.requestWorkspaceTrust({
|
|
1015
|
-
message: ( localize(
|
|
1015
|
+
message: ( localize(13304, "Enabling this extension requires a trusted workspace.")),
|
|
1016
1016
|
buttons
|
|
1017
1017
|
});
|
|
1018
1018
|
if (trustState === undefined) {
|
|
@@ -1036,7 +1036,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
1036
1036
|
throw ( new ExtensionManagementError('Not supported in Web', ExtensionManagementErrorCode.Unsupported));
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
const productName = ( localize(
|
|
1039
|
+
const productName = ( localize(13305, "{0} for the Web", this.productService.nameLong));
|
|
1040
1040
|
const virtualWorkspaceSupport = this.extensionManifestPropertiesService.getExtensionVirtualWorkspaceSupportType(manifest);
|
|
1041
1041
|
const virtualWorkspaceSupportReason = getWorkspaceSupportTypeMessage(manifest.capabilities?.virtualWorkspaces);
|
|
1042
1042
|
const hasLimitedSupport = virtualWorkspaceSupport === 'limited' || !!virtualWorkspaceSupportReason;
|
|
@@ -1044,7 +1044,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
1044
1044
|
return;
|
|
1045
1045
|
}
|
|
1046
1046
|
const limitedSupportMessage = ( localize(
|
|
1047
|
-
|
|
1047
|
+
13306,
|
|
1048
1048
|
"'{0}' has limited functionality in {1}.",
|
|
1049
1049
|
extension.displayName || extension.identifier.id,
|
|
1050
1050
|
productName
|
|
@@ -1053,16 +1053,16 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
1053
1053
|
let buttons = [];
|
|
1054
1054
|
let detail;
|
|
1055
1055
|
const installAnywayButton = {
|
|
1056
|
-
label: ( localize(
|
|
1056
|
+
label: ( localize(13307, "&&Install Anyway")),
|
|
1057
1057
|
run: () => { }
|
|
1058
1058
|
};
|
|
1059
1059
|
const showExtensionsButton = {
|
|
1060
|
-
label: ( localize(
|
|
1060
|
+
label: ( localize(13308, "&&Show Extensions")),
|
|
1061
1061
|
run: () => this.instantiationService.invokeFunction(accessor => accessor.get(ICommandService).executeCommand('extension.open', extension.identifier.id, 'extensionPack'))
|
|
1062
1062
|
};
|
|
1063
1063
|
if (nonWebExtensions.length && hasLimitedSupport) {
|
|
1064
1064
|
message = limitedSupportMessage;
|
|
1065
|
-
detail = `${virtualWorkspaceSupportReason ? `${virtualWorkspaceSupportReason}\n` : ''}${( localize(
|
|
1065
|
+
detail = `${virtualWorkspaceSupportReason ? `${virtualWorkspaceSupportReason}\n` : ''}${( localize(13309, "Contains extensions which are not supported."))}`;
|
|
1066
1066
|
buttons = [
|
|
1067
1067
|
installAnywayButton,
|
|
1068
1068
|
showExtensionsButton
|
|
@@ -1075,7 +1075,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
|
|
|
1075
1075
|
}
|
|
1076
1076
|
else {
|
|
1077
1077
|
message = ( localize(
|
|
1078
|
-
|
|
1078
|
+
13310,
|
|
1079
1079
|
"'{0}' contains extensions which are not supported in {1}.",
|
|
1080
1080
|
extension.displayName || extension.identifier.id,
|
|
1081
1081
|
productName
|
|
@@ -1362,7 +1362,7 @@ let WorkspaceExtensionsManagementService = class WorkspaceExtensionsManagementSe
|
|
|
1362
1362
|
if (extension.manifest.main) {
|
|
1363
1363
|
if (!(await this.fileService.exists(this.uriIdentityService.extUri.joinPath(extension.location, extension.manifest.main)))) {
|
|
1364
1364
|
isValid = false;
|
|
1365
|
-
validations.push([Severity.Error, ( localize(
|
|
1365
|
+
validations.push([Severity.Error, ( localize(13311, "Cannot activate because {0} not found", extension.manifest.main))]);
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
return {
|