@codingame/monaco-vscode-extension-gallery-service-override 8.0.2 → 8.0.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 +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +49 -49
- 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": "8.0.
|
|
3
|
+
"version": "8.0.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@8.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@8.0.3"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -11,7 +11,7 @@ let ExtensionActivationProgress = class ExtensionActivationProgress {
|
|
|
11
11
|
constructor(extensionService, progressService, logService) {
|
|
12
12
|
const options = {
|
|
13
13
|
location: ProgressLocation.Window,
|
|
14
|
-
title: ( localize(
|
|
14
|
+
title: ( localize(9450, "Activating Extensions..."))
|
|
15
15
|
};
|
|
16
16
|
let deferred;
|
|
17
17
|
let count = 0;
|
|
@@ -329,7 +329,7 @@ let Extension = class Extension {
|
|
|
329
329
|
}));
|
|
330
330
|
}
|
|
331
331
|
else {
|
|
332
|
-
this.logService.error(( localize(
|
|
332
|
+
this.logService.error(( localize(3798, "Manifest is not found")), this.identifier.id);
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
return cache;
|
|
@@ -861,7 +861,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
861
861
|
[AutoRestartConfigurationKey]: {
|
|
862
862
|
type: 'boolean',
|
|
863
863
|
description: ( localize(
|
|
864
|
-
|
|
864
|
+
3799,
|
|
865
865
|
"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."
|
|
866
866
|
)),
|
|
867
867
|
default: false,
|
|
@@ -950,12 +950,12 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
950
950
|
const isEnabled = value !== false;
|
|
951
951
|
if (wasEnabled !== isEnabled) {
|
|
952
952
|
const result = await this.dialogService.confirm({
|
|
953
|
-
title: ( localize(
|
|
953
|
+
title: ( localize(3800, "Auto Update Extensions")),
|
|
954
954
|
message: isEnabled
|
|
955
|
-
? ( localize(
|
|
956
|
-
: ( localize(
|
|
955
|
+
? ( localize(3801, "Do you want to enable auto update for all extensions?"))
|
|
956
|
+
: ( localize(3802, "Do you want to disable auto update for all extensions?")),
|
|
957
957
|
detail: ( localize(
|
|
958
|
-
|
|
958
|
+
3803,
|
|
959
959
|
"This will reset any auto update settings you have set for individual extensions."
|
|
960
960
|
)),
|
|
961
961
|
});
|
|
@@ -1241,12 +1241,12 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1241
1241
|
toRemove.push(extension.identifier.value);
|
|
1242
1242
|
}
|
|
1243
1243
|
if (toAdd.length || toRemove.length) {
|
|
1244
|
-
if (await this.extensionService.stopExtensionHosts(( localize(
|
|
1244
|
+
if (await this.extensionService.stopExtensionHosts(( localize(3804, "Enable or Disable extensions")), auto)) {
|
|
1245
1245
|
await this.extensionService.startExtensionHosts({ toAdd, toRemove });
|
|
1246
1246
|
if (auto) {
|
|
1247
1247
|
this.notificationService.notify({
|
|
1248
1248
|
severity: Severity$1.Info,
|
|
1249
|
-
message: ( localize(
|
|
1249
|
+
message: ( localize(3805, "Extensions were auto restarted to enable updates.")),
|
|
1250
1250
|
priority: NotificationPriority.SILENT
|
|
1251
1251
|
});
|
|
1252
1252
|
}
|
|
@@ -1258,7 +1258,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1258
1258
|
const isUninstalled = extension.state === ExtensionState.Uninstalled;
|
|
1259
1259
|
const runningExtension = this.extensionService.extensions.find(e => areSameExtensions({ id: e.identifier.value }, extension.identifier));
|
|
1260
1260
|
const reloadAction = this.extensionManagementServerService.remoteExtensionManagementServer ? ExtensionRuntimeActionType.ReloadWindow : ExtensionRuntimeActionType.RestartExtensions;
|
|
1261
|
-
const reloadActionLabel = reloadAction === ExtensionRuntimeActionType.ReloadWindow ? ( localize(
|
|
1261
|
+
const reloadActionLabel = reloadAction === ExtensionRuntimeActionType.ReloadWindow ? ( localize(3806, "reload window")) : ( localize(3807, "restart extensions"));
|
|
1262
1262
|
if (isUninstalled) {
|
|
1263
1263
|
const canRemoveRunningExtension = runningExtension && this.extensionService.canRemoveExtension(runningExtension);
|
|
1264
1264
|
const isSameExtensionRunning = runningExtension
|
|
@@ -1266,7 +1266,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1266
1266
|
&& (!extension.resourceExtension || this.uriIdentityService.extUri.isEqual(extension.resourceExtension.location, runningExtension.extensionLocation));
|
|
1267
1267
|
if (!canRemoveRunningExtension && isSameExtensionRunning && !runningExtension.isUnderDevelopment) {
|
|
1268
1268
|
return { action: reloadAction, reason: ( localize(
|
|
1269
|
-
|
|
1269
|
+
3808,
|
|
1270
1270
|
"Please {0} to complete the uninstallation of this extension.",
|
|
1271
1271
|
reloadActionLabel
|
|
1272
1272
|
)) };
|
|
@@ -1292,38 +1292,38 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1292
1292
|
const state = this.updateService.state;
|
|
1293
1293
|
if (state.type === StateType.AvailableForDownload) {
|
|
1294
1294
|
return { action: ExtensionRuntimeActionType.DownloadUpdate, reason: ( localize(
|
|
1295
|
-
|
|
1295
|
+
3809,
|
|
1296
1296
|
"Please update {0} to enable the updated extension.",
|
|
1297
1297
|
this.productService.nameLong
|
|
1298
1298
|
)) };
|
|
1299
1299
|
}
|
|
1300
1300
|
if (state.type === StateType.Downloaded) {
|
|
1301
1301
|
return { action: ExtensionRuntimeActionType.ApplyUpdate, reason: ( localize(
|
|
1302
|
-
|
|
1302
|
+
3810,
|
|
1303
1303
|
"Please update {0} to enable the updated extension.",
|
|
1304
1304
|
this.productService.nameLong
|
|
1305
1305
|
)) };
|
|
1306
1306
|
}
|
|
1307
1307
|
if (state.type === StateType.Ready) {
|
|
1308
1308
|
return { action: ExtensionRuntimeActionType.QuitAndInstall, reason: ( localize(
|
|
1309
|
-
|
|
1309
|
+
3811,
|
|
1310
1310
|
"Please restart {0} to enable the updated extension.",
|
|
1311
1311
|
this.productService.nameLong
|
|
1312
1312
|
)) };
|
|
1313
1313
|
}
|
|
1314
1314
|
return undefined;
|
|
1315
1315
|
}
|
|
1316
|
-
return { action: reloadAction, reason: ( localize(
|
|
1316
|
+
return { action: reloadAction, reason: ( localize(3812, "Please {0} to enable the updated extension.", reloadActionLabel)) };
|
|
1317
1317
|
}
|
|
1318
1318
|
if (this.extensionsServers.length > 1) {
|
|
1319
1319
|
const extensionInOtherServer = this.installed.filter(e => areSameExtensions(e.identifier, extension.identifier) && e.server !== extension.server)[0];
|
|
1320
1320
|
if (extensionInOtherServer) {
|
|
1321
1321
|
if (runningExtensionServer === this.extensionManagementServerService.remoteExtensionManagementServer && this.extensionManifestPropertiesService.prefersExecuteOnUI(extension.local.manifest) && extensionInOtherServer.server === this.extensionManagementServerService.localExtensionManagementServer) {
|
|
1322
|
-
return { action: reloadAction, reason: ( localize(
|
|
1322
|
+
return { action: reloadAction, reason: ( localize(3813, "Please {0} to enable this extension locally.", reloadActionLabel)) };
|
|
1323
1323
|
}
|
|
1324
1324
|
if (runningExtensionServer === this.extensionManagementServerService.localExtensionManagementServer && this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(extension.local.manifest) && extensionInOtherServer.server === this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
1325
1325
|
return { action: reloadAction, reason: ( localize(
|
|
1326
|
-
|
|
1326
|
+
3814,
|
|
1327
1327
|
"Please {0} to enable this extension in {1}.",
|
|
1328
1328
|
reloadActionLabel,
|
|
1329
1329
|
this.extensionManagementServerService.remoteExtensionManagementServer?.label
|
|
@@ -1335,12 +1335,12 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1335
1335
|
else {
|
|
1336
1336
|
if (extension.server === this.extensionManagementServerService.localExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
1337
1337
|
if (this.extensionManifestPropertiesService.prefersExecuteOnUI(extension.local.manifest)) {
|
|
1338
|
-
return { action: reloadAction, reason: ( localize(
|
|
1338
|
+
return { action: reloadAction, reason: ( localize(3815, "Please {0} to enable this extension.", reloadActionLabel)) };
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
if (extension.server === this.extensionManagementServerService.remoteExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.localExtensionManagementServer) {
|
|
1342
1342
|
if (this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(extension.local.manifest)) {
|
|
1343
|
-
return { action: reloadAction, reason: ( localize(
|
|
1343
|
+
return { action: reloadAction, reason: ( localize(3815, "Please {0} to enable this extension.", reloadActionLabel)) };
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
@@ -1348,20 +1348,20 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1348
1348
|
}
|
|
1349
1349
|
else {
|
|
1350
1350
|
if (isSameExtensionRunning) {
|
|
1351
|
-
return { action: reloadAction, reason: ( localize(
|
|
1351
|
+
return { action: reloadAction, reason: ( localize(3816, "Please {0} to disable this extension.", reloadActionLabel)) };
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
return undefined;
|
|
1355
1355
|
}
|
|
1356
1356
|
else {
|
|
1357
1357
|
if (isEnabled && !this.extensionService.canAddExtension(toExtensionDescription(extension.local))) {
|
|
1358
|
-
return { action: reloadAction, reason: ( localize(
|
|
1358
|
+
return { action: reloadAction, reason: ( localize(3815, "Please {0} to enable this extension.", reloadActionLabel)) };
|
|
1359
1359
|
}
|
|
1360
1360
|
const otherServer = extension.server ? extension.server === this.extensionManagementServerService.localExtensionManagementServer ? this.extensionManagementServerService.remoteExtensionManagementServer : this.extensionManagementServerService.localExtensionManagementServer : null;
|
|
1361
1361
|
if (otherServer && extension.enablementState === EnablementState.DisabledByExtensionKind) {
|
|
1362
1362
|
const extensionInOtherServer = this.local.filter(e => areSameExtensions(e.identifier, extension.identifier) && e.server === otherServer)[0];
|
|
1363
1363
|
if (extensionInOtherServer && extensionInOtherServer.local && this.extensionEnablementService.isEnabled(extensionInOtherServer.local)) {
|
|
1364
|
-
return { action: reloadAction, reason: ( localize(
|
|
1364
|
+
return { action: reloadAction, reason: ( localize(3815, "Please {0} to enable this extension.", reloadActionLabel)) };
|
|
1365
1365
|
}
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
@@ -1692,7 +1692,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
|
1694
1694
|
return ( localize(
|
|
1695
|
-
|
|
1695
|
+
3817,
|
|
1696
1696
|
"The update for {0} extension introduces executable code, which is not present in the currently installed version.",
|
|
1697
1697
|
extension.displayName
|
|
1698
1698
|
));
|
|
@@ -1899,7 +1899,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1899
1899
|
extension.setExtensionsControlManifest(await this.extensionManagementService.getExtensionsControlManifest());
|
|
1900
1900
|
}
|
|
1901
1901
|
if (extension?.isMalicious) {
|
|
1902
|
-
throw ( (new Error(localize(
|
|
1902
|
+
throw ( (new Error(localize(3818, "This extension is reported to be problematic."))));
|
|
1903
1903
|
}
|
|
1904
1904
|
if (!(installOptions.enable && extension?.local)) {
|
|
1905
1905
|
if (!installable) {
|
|
@@ -1907,7 +1907,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1907
1907
|
const id = isString(arg) ? arg : arg.identifier.id;
|
|
1908
1908
|
if (installOptions.version) {
|
|
1909
1909
|
throw ( (new Error(localize(
|
|
1910
|
-
|
|
1910
|
+
3819,
|
|
1911
1911
|
"Unable to install extension '{0}' because the requested version '{1}' is not found.",
|
|
1912
1912
|
id,
|
|
1913
1913
|
installOptions.version
|
|
@@ -1915,7 +1915,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1915
1915
|
}
|
|
1916
1916
|
else {
|
|
1917
1917
|
throw ( (new Error(
|
|
1918
|
-
localize(
|
|
1918
|
+
localize(3820, "Unable to install extension '{0}' because it is not found.", id)
|
|
1919
1919
|
)));
|
|
1920
1920
|
}
|
|
1921
1921
|
}
|
|
@@ -1935,25 +1935,25 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1935
1935
|
const buttons = [];
|
|
1936
1936
|
buttons.push({
|
|
1937
1937
|
label: isString(installOptions.justification) || !installOptions.justification.action
|
|
1938
|
-
? ( localize(
|
|
1939
|
-
: ( localize(
|
|
1938
|
+
? ( localize(3821, "&&Install Extension"))
|
|
1939
|
+
: ( localize(3822, "&&Install Extension and {0}", installOptions.justification.action)), run: () => true
|
|
1940
1940
|
});
|
|
1941
1941
|
if (!extension) {
|
|
1942
|
-
buttons.push({ label: ( localize(
|
|
1942
|
+
buttons.push({ label: ( localize(3823, "Open Extension")), run: () => { this.open(extension); return false; } });
|
|
1943
1943
|
}
|
|
1944
1944
|
const result = await this.dialogService.prompt({
|
|
1945
|
-
title: ( localize(
|
|
1945
|
+
title: ( localize(3824, "Install Extension")),
|
|
1946
1946
|
message: extension ? ( localize(
|
|
1947
|
-
|
|
1947
|
+
3825,
|
|
1948
1948
|
"Would you like to install '{0}' extension from '{1}'?",
|
|
1949
1949
|
extension.displayName,
|
|
1950
1950
|
extension.publisherDisplayName
|
|
1951
|
-
)) : ( localize(
|
|
1951
|
+
)) : ( localize(3826, "Would you like to install the extension?")),
|
|
1952
1952
|
detail: isString(installOptions.justification) ? installOptions.justification : installOptions.justification.reason,
|
|
1953
1953
|
cancelButton: true,
|
|
1954
1954
|
buttons,
|
|
1955
1955
|
checkbox: syncCheck ? {
|
|
1956
|
-
label: ( localize(
|
|
1956
|
+
label: ( localize(3827, "Sync this extension")),
|
|
1957
1957
|
checked: true,
|
|
1958
1958
|
} : undefined,
|
|
1959
1959
|
});
|
|
@@ -1977,16 +1977,16 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
1979
|
if (!extension) {
|
|
1980
|
-
throw ( (new Error(localize(
|
|
1980
|
+
throw ( (new Error(localize(3828, "Unable to install extension"))));
|
|
1981
1981
|
}
|
|
1982
1982
|
if (installOptions.enable) {
|
|
1983
1983
|
if (extension.enablementState === EnablementState.DisabledWorkspace || extension.enablementState === EnablementState.DisabledGlobally) {
|
|
1984
1984
|
if (installOptions.justification) {
|
|
1985
1985
|
const result = await this.dialogService.confirm({
|
|
1986
|
-
title: ( localize(
|
|
1987
|
-
message: ( localize(
|
|
1986
|
+
title: ( localize(3829, "Enable Extension")),
|
|
1987
|
+
message: ( localize(3830, "Would you like to enable '{0}' extension?", extension.displayName)),
|
|
1988
1988
|
detail: isString(installOptions.justification) ? installOptions.justification : installOptions.justification.reason,
|
|
1989
|
-
primaryButton: isString(installOptions.justification) ? ( localize(
|
|
1989
|
+
primaryButton: isString(installOptions.justification) ? ( localize(3831, "&&Enable Extension")) : ( localize(3832, "&&Enable Extension and {0}", installOptions.justification.action)),
|
|
1990
1990
|
});
|
|
1991
1991
|
if (!result.confirmed) {
|
|
1992
1992
|
throw ( (new CancellationError()));
|
|
@@ -2013,7 +2013,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2013
2013
|
const targetPlatform = await server.extensionManagementService.getTargetPlatform();
|
|
2014
2014
|
if (!isTargetPlatformCompatible(local.targetPlatform, [local.targetPlatform], targetPlatform)) {
|
|
2015
2015
|
throw ( (new Error(localize(
|
|
2016
|
-
|
|
2016
|
+
3833,
|
|
2017
2017
|
"Can't install '{0}' extension because it is not compatible.",
|
|
2018
2018
|
extension.identifier.id
|
|
2019
2019
|
))));
|
|
@@ -2092,11 +2092,11 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2092
2092
|
}
|
|
2093
2093
|
if (dependents.length) {
|
|
2094
2094
|
const { result } = await this.dialogService.prompt({
|
|
2095
|
-
title: ( localize(
|
|
2095
|
+
title: ( localize(3834, "Uninstall Extension with Dependents")),
|
|
2096
2096
|
type: Severity$1.Warning,
|
|
2097
2097
|
message: this.getErrorMessageForUninstallingAnExtensionWithDependents(extension, dependents),
|
|
2098
2098
|
buttons: [{
|
|
2099
|
-
label: ( localize(
|
|
2099
|
+
label: ( localize(3835, "Uninstall All")),
|
|
2100
2100
|
run: () => true
|
|
2101
2101
|
}],
|
|
2102
2102
|
cancelButton: {
|
|
@@ -2109,14 +2109,14 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2109
2109
|
}
|
|
2110
2110
|
return this.withProgress({
|
|
2111
2111
|
location: ProgressLocation.Extensions,
|
|
2112
|
-
title: ( localize(
|
|
2112
|
+
title: ( localize(3836, 'Uninstalling extension....')),
|
|
2113
2113
|
source: `${extension.identifier.id}`
|
|
2114
2114
|
}, () => this.extensionManagementService.uninstallExtensions(extensionsToUninstall).then(() => undefined));
|
|
2115
2115
|
}
|
|
2116
2116
|
getErrorMessageForUninstallingAnExtensionWithDependents(extension, dependents) {
|
|
2117
2117
|
if (dependents.length === 1) {
|
|
2118
2118
|
return ( localize(
|
|
2119
|
-
|
|
2119
|
+
3837,
|
|
2120
2120
|
"Cannot uninstall '{0}' extension alone. '{1}' extension depends on this. Do you want to uninstall all these extensions?",
|
|
2121
2121
|
extension.displayName,
|
|
2122
2122
|
dependents[0].displayName
|
|
@@ -2124,7 +2124,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2124
2124
|
}
|
|
2125
2125
|
if (dependents.length === 2) {
|
|
2126
2126
|
return ( localize(
|
|
2127
|
-
|
|
2127
|
+
3838,
|
|
2128
2128
|
"Cannot uninstall '{0}' extension alone. '{1}' and '{2}' extensions depend on this. Do you want to uninstall all these extensions?",
|
|
2129
2129
|
extension.displayName,
|
|
2130
2130
|
dependents[0].displayName,
|
|
@@ -2132,7 +2132,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2132
2132
|
));
|
|
2133
2133
|
}
|
|
2134
2134
|
return ( localize(
|
|
2135
|
-
|
|
2135
|
+
3839,
|
|
2136
2136
|
"Cannot uninstall '{0}' extension alone. '{1}', '{2}' and other extensions depend on this. Do you want to uninstall all these extensions?",
|
|
2137
2137
|
extension.displayName,
|
|
2138
2138
|
dependents[0].displayName,
|
|
@@ -2219,7 +2219,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2219
2219
|
return extension;
|
|
2220
2220
|
}
|
|
2221
2221
|
doInstall(extension, installTask, progressLocation) {
|
|
2222
|
-
const title = extension ? ( localize(
|
|
2222
|
+
const title = extension ? ( localize(3840, "Installing '{0}' extension....", extension.displayName)) : ( localize(3841, 'Installing extension....'));
|
|
2223
2223
|
return this.withProgress({
|
|
2224
2224
|
location: progressLocation ?? ProgressLocation.Extensions,
|
|
2225
2225
|
title
|
|
@@ -2319,11 +2319,11 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2319
2319
|
const dependents = this.getDependentsAfterDisablement(extension, allExtensions, this.local);
|
|
2320
2320
|
if (dependents.length) {
|
|
2321
2321
|
const { result } = await this.dialogService.prompt({
|
|
2322
|
-
title: ( localize(
|
|
2322
|
+
title: ( localize(3842, "Disable Extension with Dependents")),
|
|
2323
2323
|
type: Severity$1.Warning,
|
|
2324
2324
|
message: this.getDependentsErrorMessageForDisablement(extension, allExtensions, dependents),
|
|
2325
2325
|
buttons: [{
|
|
2326
|
-
label: ( localize(
|
|
2326
|
+
label: ( localize(3843, 'Disable All')),
|
|
2327
2327
|
run: () => true
|
|
2328
2328
|
}],
|
|
2329
2329
|
cancelButton: {
|
|
@@ -2401,7 +2401,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2401
2401
|
getErrorMessageForDisablingAnExtensionWithDependents(extension, dependents) {
|
|
2402
2402
|
if (dependents.length === 1) {
|
|
2403
2403
|
return ( localize(
|
|
2404
|
-
|
|
2404
|
+
3844,
|
|
2405
2405
|
"Cannot disable '{0}' extension alone. '{1}' extension depends on this. Do you want to disable all these extensions?",
|
|
2406
2406
|
extension.displayName,
|
|
2407
2407
|
dependents[0].displayName
|
|
@@ -2409,7 +2409,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2409
2409
|
}
|
|
2410
2410
|
if (dependents.length === 2) {
|
|
2411
2411
|
return ( localize(
|
|
2412
|
-
|
|
2412
|
+
3845,
|
|
2413
2413
|
"Cannot disable '{0}' extension alone. '{1}' and '{2}' extensions depend on this. Do you want to disable all these extensions?",
|
|
2414
2414
|
extension.displayName,
|
|
2415
2415
|
dependents[0].displayName,
|
|
@@ -2417,7 +2417,7 @@ let ExtensionsWorkbenchService = class ExtensionsWorkbenchService extends Dispos
|
|
|
2417
2417
|
));
|
|
2418
2418
|
}
|
|
2419
2419
|
return ( localize(
|
|
2420
|
-
|
|
2420
|
+
3846,
|
|
2421
2421
|
"Cannot disable '{0}' extension alone. '{1}', '{2}' and other extensions depend on this. Do you want to disable all these extensions?",
|
|
2422
2422
|
extension.displayName,
|
|
2423
2423
|
dependents[0].displayName,
|
package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js
CHANGED
|
@@ -606,7 +606,7 @@ let WebExtensionsScannerService = class WebExtensionsScannerService extends Disp
|
|
|
606
606
|
}
|
|
607
607
|
if (!this.extensionManifestPropertiesService.canExecuteOnWeb(manifest)) {
|
|
608
608
|
throw ( (new Error(localize(
|
|
609
|
-
|
|
609
|
+
3796,
|
|
610
610
|
"Cannot add '{0}' because this extension is not a web extension.",
|
|
611
611
|
manifest.displayName || manifest.name
|
|
612
612
|
))));
|
|
@@ -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(3797, 'Open Installed Web Extensions Resource')),
|
|
893
893
|
category: Categories.Developer,
|
|
894
894
|
f1: true,
|
|
895
895
|
precondition: IsWebContext
|
|
@@ -21,7 +21,7 @@ let ExtensionManagementServerService = class ExtensionManagementServerService {
|
|
|
21
21
|
this.remoteExtensionManagementServer = {
|
|
22
22
|
id: 'remote',
|
|
23
23
|
extensionManagementService,
|
|
24
|
-
get label() { return labelService.getHostLabel(Schemas.vscodeRemote, remoteAgentConnection.remoteAuthority) || ( localize(
|
|
24
|
+
get label() { return labelService.getHostLabel(Schemas.vscodeRemote, remoteAgentConnection.remoteAuthority) || ( localize(3794, "Remote")); },
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
if (isWeb) {
|
|
@@ -29,7 +29,7 @@ let ExtensionManagementServerService = class ExtensionManagementServerService {
|
|
|
29
29
|
this.webExtensionManagementServer = {
|
|
30
30
|
id: 'web',
|
|
31
31
|
extensionManagementService,
|
|
32
|
-
label: ( localize(
|
|
32
|
+
label: ( localize(3795, "Browser")),
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
}
|