@codingame/monaco-vscode-extension-gallery-service-override 10.1.2 → 10.1.3
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 +3 -3
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +53 -53
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +2 -2
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagementServerService.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extension-gallery-service-override",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git@github.com
|
|
12
|
+
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.3"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -340,7 +340,7 @@ let Extension = class Extension {
|
|
|
340
340
|
}));
|
|
341
341
|
}
|
|
342
342
|
else {
|
|
343
|
-
this.logService.error(( localize(
|
|
343
|
+
this.logService.error(( localize(3874, "Manifest is not found")), this.identifier.id);
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
return cache;
|
|
@@ -876,7 +876,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
876
876
|
[AutoRestartConfigurationKey]: {
|
|
877
877
|
type: 'boolean',
|
|
878
878
|
description: ( localize(
|
|
879
|
-
|
|
879
|
+
3875,
|
|
880
880
|
"If activated, extensions will automatically restart following an update if the window is not in focus. There can be a data loss if you have open Notebooks or Custom Editors."
|
|
881
881
|
)),
|
|
882
882
|
default: false,
|
|
@@ -964,12 +964,12 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
964
964
|
return;
|
|
965
965
|
}
|
|
966
966
|
const result = await this.dialogService.confirm({
|
|
967
|
-
title: ( localize(
|
|
967
|
+
title: ( localize(3876, "Auto Update Extensions")),
|
|
968
968
|
message: isAutoUpdateEnabled
|
|
969
|
-
? ( localize(
|
|
970
|
-
: ( localize(
|
|
969
|
+
? ( localize(3877, "Do you want to enable auto update for all extensions?"))
|
|
970
|
+
: ( localize(3878, "Do you want to disable auto update for all extensions?")),
|
|
971
971
|
detail: ( localize(
|
|
972
|
-
|
|
972
|
+
3879,
|
|
973
973
|
"This will reset any auto update settings you have set for individual extensions."
|
|
974
974
|
)),
|
|
975
975
|
});
|
|
@@ -1034,7 +1034,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1034
1034
|
updateExtensionsPinnedState(pinned) {
|
|
1035
1035
|
return this.progressService.withProgress({
|
|
1036
1036
|
location: 5 ,
|
|
1037
|
-
title: ( localize(
|
|
1037
|
+
title: ( localize(3880, "Updating Extensions Auto Update State")),
|
|
1038
1038
|
}, () => this.extensionManagementService.resetPinnedStateForAllUserExtensions(pinned));
|
|
1039
1039
|
}
|
|
1040
1040
|
reset() {
|
|
@@ -1205,7 +1205,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1205
1205
|
(!isEngineValid(e.local.manifest.engines.vscode, this.productService.version, this.productService.date) || areApiProposalsCompatible([...(e.local.manifest.enabledApiProposals ?? [])])))))) {
|
|
1206
1206
|
computedNotificiations.push({
|
|
1207
1207
|
message: ( localize(
|
|
1208
|
-
|
|
1208
|
+
3881,
|
|
1209
1209
|
"Some extensions are disabled due to version incompatibility. Review and update them."
|
|
1210
1210
|
)),
|
|
1211
1211
|
severity: Severity$1.Warning,
|
|
@@ -1215,7 +1215,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1215
1215
|
}
|
|
1216
1216
|
else {
|
|
1217
1217
|
computedNotificiations.push({
|
|
1218
|
-
message: ( localize(
|
|
1218
|
+
message: ( localize(3882, "Invalid extensions detected. Review them.")),
|
|
1219
1219
|
severity: Severity$1.Warning,
|
|
1220
1220
|
extensions: invalidExtensions,
|
|
1221
1221
|
key: 'invalidExtensions:' + ( (invalidExtensions.sort((a, b) => a.identifier.id.localeCompare(b.identifier.id)).map(e => `${e.identifier.id.toLowerCase()}@${e.local?.manifest.version}`))).join('-'),
|
|
@@ -1226,7 +1226,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1226
1226
|
if (deprecatedExtensions.length) {
|
|
1227
1227
|
computedNotificiations.push({
|
|
1228
1228
|
message: ( localize(
|
|
1229
|
-
|
|
1229
|
+
3883,
|
|
1230
1230
|
"Deprecated extensions detected. Review them and migrate to alternatives."
|
|
1231
1231
|
)),
|
|
1232
1232
|
severity: Severity$1.Warning,
|
|
@@ -1346,12 +1346,12 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1346
1346
|
toRemove.push(extension.identifier.value);
|
|
1347
1347
|
}
|
|
1348
1348
|
if (toAdd.length || toRemove.length) {
|
|
1349
|
-
if (await this.extensionService.stopExtensionHosts(( localize(
|
|
1349
|
+
if (await this.extensionService.stopExtensionHosts(( localize(3884, "Enable or Disable extensions")), auto)) {
|
|
1350
1350
|
await this.extensionService.startExtensionHosts({ toAdd, toRemove });
|
|
1351
1351
|
if (auto) {
|
|
1352
1352
|
this.notificationService.notify({
|
|
1353
1353
|
severity: Severity$1.Info,
|
|
1354
|
-
message: ( localize(
|
|
1354
|
+
message: ( localize(3885, "Extensions were auto restarted to enable updates.")),
|
|
1355
1355
|
priority: NotificationPriority.SILENT
|
|
1356
1356
|
});
|
|
1357
1357
|
}
|
|
@@ -1363,7 +1363,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1363
1363
|
const isUninstalled = extension.state === 3 ;
|
|
1364
1364
|
const runningExtension = this.extensionService.extensions.find(e => areSameExtensions({ id: e.identifier.value }, extension.identifier));
|
|
1365
1365
|
const reloadAction = this.extensionManagementServerService.remoteExtensionManagementServer ? "reloadWindow" : "restartExtensions" ;
|
|
1366
|
-
const reloadActionLabel = reloadAction === "reloadWindow" ? ( localize(
|
|
1366
|
+
const reloadActionLabel = reloadAction === "reloadWindow" ? ( localize(3886, "reload window")) : ( localize(3887, "restart extensions"));
|
|
1367
1367
|
if (isUninstalled) {
|
|
1368
1368
|
const canRemoveRunningExtension = runningExtension && this.extensionService.canRemoveExtension(runningExtension);
|
|
1369
1369
|
const isSameExtensionRunning = runningExtension
|
|
@@ -1371,7 +1371,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1371
1371
|
&& (!extension.resourceExtension || this.uriIdentityService.extUri.isEqual(extension.resourceExtension.location, runningExtension.extensionLocation));
|
|
1372
1372
|
if (!canRemoveRunningExtension && isSameExtensionRunning && !runningExtension.isUnderDevelopment) {
|
|
1373
1373
|
return { action: reloadAction, reason: ( localize(
|
|
1374
|
-
|
|
1374
|
+
3888,
|
|
1375
1375
|
"Please {0} to complete the uninstallation of this extension.",
|
|
1376
1376
|
reloadActionLabel
|
|
1377
1377
|
)) };
|
|
@@ -1397,38 +1397,38 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1397
1397
|
const state = this.updateService.state;
|
|
1398
1398
|
if (state.type === "available for download" ) {
|
|
1399
1399
|
return { action: "downloadUpdate" , reason: ( localize(
|
|
1400
|
-
|
|
1400
|
+
3889,
|
|
1401
1401
|
"Please update {0} to enable the updated extension.",
|
|
1402
1402
|
this.productService.nameLong
|
|
1403
1403
|
)) };
|
|
1404
1404
|
}
|
|
1405
1405
|
if (state.type === "downloaded" ) {
|
|
1406
1406
|
return { action: "applyUpdate" , reason: ( localize(
|
|
1407
|
-
|
|
1407
|
+
3890,
|
|
1408
1408
|
"Please update {0} to enable the updated extension.",
|
|
1409
1409
|
this.productService.nameLong
|
|
1410
1410
|
)) };
|
|
1411
1411
|
}
|
|
1412
1412
|
if (state.type === "ready" ) {
|
|
1413
1413
|
return { action: "quitAndInstall" , reason: ( localize(
|
|
1414
|
-
|
|
1414
|
+
3891,
|
|
1415
1415
|
"Please restart {0} to enable the updated extension.",
|
|
1416
1416
|
this.productService.nameLong
|
|
1417
1417
|
)) };
|
|
1418
1418
|
}
|
|
1419
1419
|
return undefined;
|
|
1420
1420
|
}
|
|
1421
|
-
return { action: reloadAction, reason: ( localize(
|
|
1421
|
+
return { action: reloadAction, reason: ( localize(3892, "Please {0} to enable the updated extension.", reloadActionLabel)) };
|
|
1422
1422
|
}
|
|
1423
1423
|
if (this.extensionsServers.length > 1) {
|
|
1424
1424
|
const extensionInOtherServer = this.installed.filter(e => areSameExtensions(e.identifier, extension.identifier) && e.server !== extension.server)[0];
|
|
1425
1425
|
if (extensionInOtherServer) {
|
|
1426
1426
|
if (runningExtensionServer === this.extensionManagementServerService.remoteExtensionManagementServer && this.extensionManifestPropertiesService.prefersExecuteOnUI(extension.local.manifest) && extensionInOtherServer.server === this.extensionManagementServerService.localExtensionManagementServer) {
|
|
1427
|
-
return { action: reloadAction, reason: ( localize(
|
|
1427
|
+
return { action: reloadAction, reason: ( localize(3893, "Please {0} to enable this extension locally.", reloadActionLabel)) };
|
|
1428
1428
|
}
|
|
1429
1429
|
if (runningExtensionServer === this.extensionManagementServerService.localExtensionManagementServer && this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(extension.local.manifest) && extensionInOtherServer.server === this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
1430
1430
|
return { action: reloadAction, reason: ( localize(
|
|
1431
|
-
|
|
1431
|
+
3894,
|
|
1432
1432
|
"Please {0} to enable this extension in {1}.",
|
|
1433
1433
|
reloadActionLabel,
|
|
1434
1434
|
this.extensionManagementServerService.remoteExtensionManagementServer?.label
|
|
@@ -1440,12 +1440,12 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1440
1440
|
else {
|
|
1441
1441
|
if (extension.server === this.extensionManagementServerService.localExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
1442
1442
|
if (this.extensionManifestPropertiesService.prefersExecuteOnUI(extension.local.manifest)) {
|
|
1443
|
-
return { action: reloadAction, reason: ( localize(
|
|
1443
|
+
return { action: reloadAction, reason: ( localize(3895, "Please {0} to enable this extension.", reloadActionLabel)) };
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
if (extension.server === this.extensionManagementServerService.remoteExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.localExtensionManagementServer) {
|
|
1447
1447
|
if (this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(extension.local.manifest)) {
|
|
1448
|
-
return { action: reloadAction, reason: ( localize(
|
|
1448
|
+
return { action: reloadAction, reason: ( localize(3895, "Please {0} to enable this extension.", reloadActionLabel)) };
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
@@ -1453,20 +1453,20 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1453
1453
|
}
|
|
1454
1454
|
else {
|
|
1455
1455
|
if (isSameExtensionRunning) {
|
|
1456
|
-
return { action: reloadAction, reason: ( localize(
|
|
1456
|
+
return { action: reloadAction, reason: ( localize(3896, "Please {0} to disable this extension.", reloadActionLabel)) };
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
1459
|
return undefined;
|
|
1460
1460
|
}
|
|
1461
1461
|
else {
|
|
1462
1462
|
if (isEnabled && !this.extensionService.canAddExtension(toExtensionDescription(extension.local))) {
|
|
1463
|
-
return { action: reloadAction, reason: ( localize(
|
|
1463
|
+
return { action: reloadAction, reason: ( localize(3895, "Please {0} to enable this extension.", reloadActionLabel)) };
|
|
1464
1464
|
}
|
|
1465
1465
|
const otherServer = extension.server ? extension.server === this.extensionManagementServerService.localExtensionManagementServer ? this.extensionManagementServerService.remoteExtensionManagementServer : this.extensionManagementServerService.localExtensionManagementServer : null;
|
|
1466
1466
|
if (otherServer && extension.enablementState === 1 ) {
|
|
1467
1467
|
const extensionInOtherServer = this.local.filter(e => areSameExtensions(e.identifier, extension.identifier) && e.server === otherServer)[0];
|
|
1468
1468
|
if (extensionInOtherServer && extensionInOtherServer.local && this.extensionEnablementService.isEnabled(extensionInOtherServer.local)) {
|
|
1469
|
-
return { action: reloadAction, reason: ( localize(
|
|
1469
|
+
return { action: reloadAction, reason: ( localize(3895, "Please {0} to enable this extension.", reloadActionLabel)) };
|
|
1470
1470
|
}
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
@@ -1797,7 +1797,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
1799
|
return ( localize(
|
|
1800
|
-
|
|
1800
|
+
3897,
|
|
1801
1801
|
"The update for {0} extension introduces executable code, which is not present in the currently installed version.",
|
|
1802
1802
|
extension.displayName
|
|
1803
1803
|
));
|
|
@@ -2007,7 +2007,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2007
2007
|
extension.setExtensionsControlManifest(await this.extensionManagementService.getExtensionsControlManifest());
|
|
2008
2008
|
}
|
|
2009
2009
|
if (extension?.isMalicious) {
|
|
2010
|
-
throw ( (new Error(localize(
|
|
2010
|
+
throw ( (new Error(localize(3898, "This extension is reported to be problematic."))));
|
|
2011
2011
|
}
|
|
2012
2012
|
if (!(installOptions.enable && extension?.local)) {
|
|
2013
2013
|
if (!installable) {
|
|
@@ -2015,7 +2015,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2015
2015
|
const id = isString(arg) ? arg : arg.identifier.id;
|
|
2016
2016
|
if (installOptions.version) {
|
|
2017
2017
|
throw ( (new Error(localize(
|
|
2018
|
-
|
|
2018
|
+
3899,
|
|
2019
2019
|
"Unable to install extension '{0}' because the requested version '{1}' is not found.",
|
|
2020
2020
|
id,
|
|
2021
2021
|
installOptions.version
|
|
@@ -2023,7 +2023,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2023
2023
|
}
|
|
2024
2024
|
else {
|
|
2025
2025
|
throw ( (new Error(
|
|
2026
|
-
localize(
|
|
2026
|
+
localize(3900, "Unable to install extension '{0}' because it is not found.", id)
|
|
2027
2027
|
)));
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
@@ -2043,25 +2043,25 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2043
2043
|
const buttons = [];
|
|
2044
2044
|
buttons.push({
|
|
2045
2045
|
label: isString(installOptions.justification) || !installOptions.justification.action
|
|
2046
|
-
? ( localize(
|
|
2047
|
-
: ( localize(
|
|
2046
|
+
? ( localize(3901, "&&Install Extension"))
|
|
2047
|
+
: ( localize(3902, "&&Install Extension and {0}", installOptions.justification.action)), run: () => true
|
|
2048
2048
|
});
|
|
2049
2049
|
if (!extension) {
|
|
2050
|
-
buttons.push({ label: ( localize(
|
|
2050
|
+
buttons.push({ label: ( localize(3903, "Open Extension")), run: () => { this.open(extension); return false; } });
|
|
2051
2051
|
}
|
|
2052
2052
|
const result = await this.dialogService.prompt({
|
|
2053
|
-
title: ( localize(
|
|
2053
|
+
title: ( localize(3904, "Install Extension")),
|
|
2054
2054
|
message: extension ? ( localize(
|
|
2055
|
-
|
|
2055
|
+
3905,
|
|
2056
2056
|
"Would you like to install '{0}' extension from '{1}'?",
|
|
2057
2057
|
extension.displayName,
|
|
2058
2058
|
extension.publisherDisplayName
|
|
2059
|
-
)) : ( localize(
|
|
2059
|
+
)) : ( localize(3906, "Would you like to install the extension?")),
|
|
2060
2060
|
detail: isString(installOptions.justification) ? installOptions.justification : installOptions.justification.reason,
|
|
2061
2061
|
cancelButton: true,
|
|
2062
2062
|
buttons,
|
|
2063
2063
|
checkbox: syncCheck ? {
|
|
2064
|
-
label: ( localize(
|
|
2064
|
+
label: ( localize(3907, "Sync this extension")),
|
|
2065
2065
|
checked: true,
|
|
2066
2066
|
} : undefined,
|
|
2067
2067
|
});
|
|
@@ -2085,16 +2085,16 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2085
2085
|
}
|
|
2086
2086
|
}
|
|
2087
2087
|
if (!extension) {
|
|
2088
|
-
throw ( (new Error(localize(
|
|
2088
|
+
throw ( (new Error(localize(3908, "Unable to install extension"))));
|
|
2089
2089
|
}
|
|
2090
2090
|
if (installOptions.enable) {
|
|
2091
2091
|
if (extension.enablementState === 8 || extension.enablementState === 7 ) {
|
|
2092
2092
|
if (installOptions.justification) {
|
|
2093
2093
|
const result = await this.dialogService.confirm({
|
|
2094
|
-
title: ( localize(
|
|
2095
|
-
message: ( localize(
|
|
2094
|
+
title: ( localize(3909, "Enable Extension")),
|
|
2095
|
+
message: ( localize(3910, "Would you like to enable '{0}' extension?", extension.displayName)),
|
|
2096
2096
|
detail: isString(installOptions.justification) ? installOptions.justification : installOptions.justification.reason,
|
|
2097
|
-
primaryButton: isString(installOptions.justification) ? ( localize(
|
|
2097
|
+
primaryButton: isString(installOptions.justification) ? ( localize(3911, "&&Enable Extension")) : ( localize(3912, "&&Enable Extension and {0}", installOptions.justification.action)),
|
|
2098
2098
|
});
|
|
2099
2099
|
if (!result.confirmed) {
|
|
2100
2100
|
throw ( (new CancellationError()));
|
|
@@ -2121,7 +2121,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2121
2121
|
const targetPlatform = await server.extensionManagementService.getTargetPlatform();
|
|
2122
2122
|
if (!isTargetPlatformCompatible(local.targetPlatform, [local.targetPlatform], targetPlatform)) {
|
|
2123
2123
|
throw ( (new Error(localize(
|
|
2124
|
-
|
|
2124
|
+
3913,
|
|
2125
2125
|
"Can't install '{0}' extension because it is not compatible.",
|
|
2126
2126
|
extension.identifier.id
|
|
2127
2127
|
))));
|
|
@@ -2207,11 +2207,11 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2207
2207
|
}
|
|
2208
2208
|
if (dependents.length) {
|
|
2209
2209
|
const { result } = await this.dialogService.prompt({
|
|
2210
|
-
title: ( localize(
|
|
2210
|
+
title: ( localize(3914, "Uninstall Extension with Dependents")),
|
|
2211
2211
|
type: Severity$1.Warning,
|
|
2212
2212
|
message: this.getErrorMessageForUninstallingAnExtensionWithDependents(extension, dependents),
|
|
2213
2213
|
buttons: [{
|
|
2214
|
-
label: ( localize(
|
|
2214
|
+
label: ( localize(3915, "Uninstall All")),
|
|
2215
2215
|
run: () => true
|
|
2216
2216
|
}],
|
|
2217
2217
|
cancelButton: {
|
|
@@ -2224,7 +2224,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2224
2224
|
}
|
|
2225
2225
|
return this.withProgress({
|
|
2226
2226
|
location: 5 ,
|
|
2227
|
-
title: ( localize(
|
|
2227
|
+
title: ( localize(3916, 'Uninstalling extension....')),
|
|
2228
2228
|
source: `${extension.identifier.id}`
|
|
2229
2229
|
}, () => this.extensionManagementService.uninstallExtensions(extensionsToUninstall).then(() => undefined));
|
|
2230
2230
|
}
|
|
@@ -2252,7 +2252,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2252
2252
|
getErrorMessageForUninstallingAnExtensionWithDependents(extension, dependents) {
|
|
2253
2253
|
if (dependents.length === 1) {
|
|
2254
2254
|
return ( localize(
|
|
2255
|
-
|
|
2255
|
+
3917,
|
|
2256
2256
|
"Cannot uninstall '{0}' extension alone. '{1}' extension depends on this. Do you want to uninstall all these extensions?",
|
|
2257
2257
|
extension.displayName,
|
|
2258
2258
|
dependents[0].displayName
|
|
@@ -2260,7 +2260,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2260
2260
|
}
|
|
2261
2261
|
if (dependents.length === 2) {
|
|
2262
2262
|
return ( localize(
|
|
2263
|
-
|
|
2263
|
+
3918,
|
|
2264
2264
|
"Cannot uninstall '{0}' extension alone. '{1}' and '{2}' extensions depend on this. Do you want to uninstall all these extensions?",
|
|
2265
2265
|
extension.displayName,
|
|
2266
2266
|
dependents[0].displayName,
|
|
@@ -2268,7 +2268,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2268
2268
|
));
|
|
2269
2269
|
}
|
|
2270
2270
|
return ( localize(
|
|
2271
|
-
|
|
2271
|
+
3919,
|
|
2272
2272
|
"Cannot uninstall '{0}' extension alone. '{1}', '{2}' and other extensions depend on this. Do you want to uninstall all these extensions?",
|
|
2273
2273
|
extension.displayName,
|
|
2274
2274
|
dependents[0].displayName,
|
|
@@ -2355,7 +2355,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2355
2355
|
return extension;
|
|
2356
2356
|
}
|
|
2357
2357
|
doInstall(extension, installTask, progressLocation) {
|
|
2358
|
-
const title = extension ? ( localize(
|
|
2358
|
+
const title = extension ? ( localize(3920, "Installing '{0}' extension....", extension.displayName)) : ( localize(3921, 'Installing extension....'));
|
|
2359
2359
|
return this.withProgress({
|
|
2360
2360
|
location: progressLocation ?? 5 ,
|
|
2361
2361
|
title
|
|
@@ -2456,11 +2456,11 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2456
2456
|
const dependents = this.getDependentsAfterDisablement(extension, allExtensions, this.local);
|
|
2457
2457
|
if (dependents.length) {
|
|
2458
2458
|
const { result } = await this.dialogService.prompt({
|
|
2459
|
-
title: ( localize(
|
|
2459
|
+
title: ( localize(3922, "Disable Extension with Dependents")),
|
|
2460
2460
|
type: Severity$1.Warning,
|
|
2461
2461
|
message: this.getDependentsErrorMessageForDisablement(extension, allExtensions, dependents),
|
|
2462
2462
|
buttons: [{
|
|
2463
|
-
label: ( localize(
|
|
2463
|
+
label: ( localize(3923, 'Disable All')),
|
|
2464
2464
|
run: () => true
|
|
2465
2465
|
}],
|
|
2466
2466
|
cancelButton: {
|
|
@@ -2538,7 +2538,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2538
2538
|
getErrorMessageForDisablingAnExtensionWithDependents(extension, dependents) {
|
|
2539
2539
|
if (dependents.length === 1) {
|
|
2540
2540
|
return ( localize(
|
|
2541
|
-
|
|
2541
|
+
3924,
|
|
2542
2542
|
"Cannot disable '{0}' extension alone. '{1}' extension depends on this. Do you want to disable all these extensions?",
|
|
2543
2543
|
extension.displayName,
|
|
2544
2544
|
dependents[0].displayName
|
|
@@ -2546,7 +2546,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2546
2546
|
}
|
|
2547
2547
|
if (dependents.length === 2) {
|
|
2548
2548
|
return ( localize(
|
|
2549
|
-
|
|
2549
|
+
3925,
|
|
2550
2550
|
"Cannot disable '{0}' extension alone. '{1}' and '{2}' extensions depend on this. Do you want to disable all these extensions?",
|
|
2551
2551
|
extension.displayName,
|
|
2552
2552
|
dependents[0].displayName,
|
|
@@ -2554,7 +2554,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2554
2554
|
));
|
|
2555
2555
|
}
|
|
2556
2556
|
return ( localize(
|
|
2557
|
-
|
|
2557
|
+
3926,
|
|
2558
2558
|
"Cannot disable '{0}' extension alone. '{1}', '{2}' and other extensions depend on this. Do you want to disable all these extensions?",
|
|
2559
2559
|
extension.displayName,
|
|
2560
2560
|
dependents[0].displayName,
|
package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js
CHANGED
|
@@ -602,7 +602,7 @@ let WebExtensionsScannerService = class WebExtensionsScannerService extends Disp
|
|
|
602
602
|
}
|
|
603
603
|
if (!this.extensionManifestPropertiesService.canExecuteOnWeb(manifest)) {
|
|
604
604
|
throw ( (new Error(localize(
|
|
605
|
-
|
|
605
|
+
3927,
|
|
606
606
|
"Cannot add '{0}' because this extension is not a web extension.",
|
|
607
607
|
manifest.displayName || manifest.name
|
|
608
608
|
))));
|
|
@@ -885,7 +885,7 @@ if (isWeb) {
|
|
|
885
885
|
constructor() {
|
|
886
886
|
super({
|
|
887
887
|
id: 'workbench.extensions.action.openInstalledWebExtensionsResource',
|
|
888
|
-
title: ( localize2(
|
|
888
|
+
title: ( localize2(3928, 'Open Installed Web Extensions Resource')),
|
|
889
889
|
category: Categories.Developer,
|
|
890
890
|
f1: true,
|
|
891
891
|
precondition: IsWebContext
|
|
@@ -19,7 +19,7 @@ let ExtensionManagementServerService = class ExtensionManagementServerService {
|
|
|
19
19
|
this.remoteExtensionManagementServer = {
|
|
20
20
|
id: 'remote',
|
|
21
21
|
extensionManagementService,
|
|
22
|
-
get label() { return labelService.getHostLabel(Schemas.vscodeRemote, remoteAgentConnection.remoteAuthority) || ( localize(
|
|
22
|
+
get label() { return labelService.getHostLabel(Schemas.vscodeRemote, remoteAgentConnection.remoteAuthority) || ( localize(3872, "Remote")); },
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
if (isWeb) {
|
|
@@ -27,7 +27,7 @@ let ExtensionManagementServerService = class ExtensionManagementServerService {
|
|
|
27
27
|
this.webExtensionManagementServer = {
|
|
28
28
|
id: 'web',
|
|
29
29
|
extensionManagementService,
|
|
30
|
-
label: ( localize(
|
|
30
|
+
label: ( localize(3873, "Browser")),
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
}
|