@codingame/monaco-vscode-extension-gallery-service-override 15.0.0 → 15.0.2
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 +20 -20
- package/vscode/src/vs/platform/extensionManagement/common/abstractExtensionManagementService.js +16 -16
- package/vscode/src/vs/platform/extensionManagement/common/allowedExtensionsService.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +18 -18
- package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +43 -43
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +15 -15
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +157 -157
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.web.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +3 -3
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +41 -41
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +11 -11
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +21 -21
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +67 -67
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/reportExtensionIssueAction.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +2 -2
- 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 +46 -46
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extension-gallery-service-override",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
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": "15.0.
|
|
19
|
-
"@codingame/monaco-vscode-0f5ced28-abde-558b-8652-db8e7d4d64aa-common": "15.0.
|
|
20
|
-
"@codingame/monaco-vscode-10418ae3-ee63-5700-a757-89cbe6564ee4-common": "15.0.
|
|
21
|
-
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.
|
|
22
|
-
"@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common": "15.0.
|
|
23
|
-
"@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "15.0.
|
|
24
|
-
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "15.0.
|
|
25
|
-
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "15.0.
|
|
26
|
-
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "15.0.
|
|
27
|
-
"@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common": "15.0.
|
|
28
|
-
"@codingame/monaco-vscode-7ba0af96-90c2-5e11-ad7f-befdbbf246c8-common": "15.0.
|
|
29
|
-
"@codingame/monaco-vscode-805e9c2f-56b6-5a43-8b5b-d2dc2d3805fc-common": "15.0.
|
|
30
|
-
"@codingame/monaco-vscode-81f603ca-d6ea-5402-90dd-3014dffc63b4-common": "15.0.
|
|
31
|
-
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "15.0.
|
|
32
|
-
"@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common": "15.0.
|
|
33
|
-
"@codingame/monaco-vscode-a4c2011e-8775-52bd-abf0-4a3c07a9696b-common": "15.0.
|
|
34
|
-
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "15.0.
|
|
35
|
-
"@codingame/monaco-vscode-api": "15.0.
|
|
36
|
-
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": "15.0.
|
|
18
|
+
"@codingame/monaco-vscode-039b5553-0838-562a-97c2-30d6e54a7b42-common": "15.0.2",
|
|
19
|
+
"@codingame/monaco-vscode-0f5ced28-abde-558b-8652-db8e7d4d64aa-common": "15.0.2",
|
|
20
|
+
"@codingame/monaco-vscode-10418ae3-ee63-5700-a757-89cbe6564ee4-common": "15.0.2",
|
|
21
|
+
"@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.2",
|
|
22
|
+
"@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common": "15.0.2",
|
|
23
|
+
"@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "15.0.2",
|
|
24
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "15.0.2",
|
|
25
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "15.0.2",
|
|
26
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "15.0.2",
|
|
27
|
+
"@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common": "15.0.2",
|
|
28
|
+
"@codingame/monaco-vscode-7ba0af96-90c2-5e11-ad7f-befdbbf246c8-common": "15.0.2",
|
|
29
|
+
"@codingame/monaco-vscode-805e9c2f-56b6-5a43-8b5b-d2dc2d3805fc-common": "15.0.2",
|
|
30
|
+
"@codingame/monaco-vscode-81f603ca-d6ea-5402-90dd-3014dffc63b4-common": "15.0.2",
|
|
31
|
+
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "15.0.2",
|
|
32
|
+
"@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common": "15.0.2",
|
|
33
|
+
"@codingame/monaco-vscode-a4c2011e-8775-52bd-abf0-4a3c07a9696b-common": "15.0.2",
|
|
34
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "15.0.2",
|
|
35
|
+
"@codingame/monaco-vscode-api": "15.0.2",
|
|
36
|
+
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": "15.0.2"
|
|
37
37
|
},
|
|
38
38
|
"main": "index.js",
|
|
39
39
|
"module": "index.js",
|
package/vscode/src/vs/platform/extensionManagement/common/abstractExtensionManagementService.js
CHANGED
|
@@ -32,7 +32,7 @@ let CommontExtensionManagementService = class CommontExtensionManagementService
|
|
|
32
32
|
const allowedToInstall = this.allowedExtensionsService.isAllowed({ id: extension.identifier.id, publisherDisplayName: extension.publisherDisplayName });
|
|
33
33
|
if (allowedToInstall !== true) {
|
|
34
34
|
return (new MarkdownString(localize(
|
|
35
|
-
|
|
35
|
+
1714,
|
|
36
36
|
"This extension cannot be installed because {0}",
|
|
37
37
|
allowedToInstall.value
|
|
38
38
|
)));
|
|
@@ -40,12 +40,12 @@ let CommontExtensionManagementService = class CommontExtensionManagementService
|
|
|
40
40
|
if (!(await this.isExtensionPlatformCompatible(extension))) {
|
|
41
41
|
const learnLink = isWeb ? 'https://aka.ms/vscode-web-extensions-guide' : 'https://aka.ms/vscode-platform-specific-extensions';
|
|
42
42
|
return (new MarkdownString(`${( localize(
|
|
43
|
-
|
|
43
|
+
1715,
|
|
44
44
|
"The '{0}' extension is not available in {1} for the {2}.",
|
|
45
45
|
extension.displayName ?? extension.identifier.id,
|
|
46
46
|
this.productService.nameLong,
|
|
47
47
|
TargetPlatformToString(await this.getTargetPlatform())
|
|
48
|
-
))} [${( localize(
|
|
48
|
+
))} [${( localize(1716, "Learn Why"))}](${learnLink})`));
|
|
49
49
|
}
|
|
50
50
|
return true;
|
|
51
51
|
}
|
|
@@ -110,7 +110,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
110
110
|
}
|
|
111
111
|
async installGalleryExtensions(extensions) {
|
|
112
112
|
if (!this.galleryService.isEnabled()) {
|
|
113
|
-
throw ( new ExtensionManagementError(( localize(
|
|
113
|
+
throw ( new ExtensionManagementError(( localize(1717, "Marketplace is not enabled")), ExtensionManagementErrorCode.NotAllowed));
|
|
114
114
|
}
|
|
115
115
|
const results = [];
|
|
116
116
|
const installableExtensions = [];
|
|
@@ -524,7 +524,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
524
524
|
const extensionsControlManifest = await this.getExtensionsControlManifest();
|
|
525
525
|
if (isMalicious(extension.identifier, extensionsControlManifest)) {
|
|
526
526
|
throw ( new ExtensionManagementError(( localize(
|
|
527
|
-
|
|
527
|
+
1718,
|
|
528
528
|
"Can't install '{0}' extension since it was reported to be problematic.",
|
|
529
529
|
extension.identifier.id
|
|
530
530
|
)), ExtensionManagementErrorCode.Malicious));
|
|
@@ -535,7 +535,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
535
535
|
compatibleExtension = (await this.galleryService.getExtensions([{ id: deprecationInfo.extension.id, preRelease: deprecationInfo.extension.preRelease }], { targetPlatform: await this.getTargetPlatform(), compatible: true, productVersion }, CancellationToken.None))[0];
|
|
536
536
|
if (!compatibleExtension) {
|
|
537
537
|
throw ( new ExtensionManagementError(( localize(
|
|
538
|
-
|
|
538
|
+
1719,
|
|
539
539
|
"Can't install '{0}' extension since it was deprecated and the replacement extension '{1}' can't be found.",
|
|
540
540
|
extension.identifier.id,
|
|
541
541
|
deprecationInfo.extension.id
|
|
@@ -546,7 +546,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
546
546
|
if ((await this.canInstall(extension)) !== true) {
|
|
547
547
|
const targetPlatform = await this.getTargetPlatform();
|
|
548
548
|
throw ( new ExtensionManagementError(( localize(
|
|
549
|
-
|
|
549
|
+
1715,
|
|
550
550
|
"The '{0}' extension is not available in {1} for the {2}.",
|
|
551
551
|
extension.identifier.id,
|
|
552
552
|
this.productService.nameLong,
|
|
@@ -558,7 +558,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
558
558
|
const incompatibleApiProposalsMessages = [];
|
|
559
559
|
if (!areApiProposalsCompatible(extension.properties.enabledApiProposals ?? [], incompatibleApiProposalsMessages)) {
|
|
560
560
|
throw ( new ExtensionManagementError(( localize(
|
|
561
|
-
|
|
561
|
+
1720,
|
|
562
562
|
"Can't install '{0}' extension. {1}",
|
|
563
563
|
extension.displayName ?? extension.identifier.id,
|
|
564
564
|
incompatibleApiProposalsMessages[0]
|
|
@@ -566,13 +566,13 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
566
566
|
}
|
|
567
567
|
if (!installPreRelease && extension.properties.isPreReleaseVersion && (await this.galleryService.getExtensions([extension.identifier], CancellationToken.None))[0]) {
|
|
568
568
|
throw ( new ExtensionManagementError(( localize(
|
|
569
|
-
|
|
569
|
+
1721,
|
|
570
570
|
"Can't install release version of '{0}' extension because it has no release version.",
|
|
571
571
|
extension.displayName ?? extension.identifier.id
|
|
572
572
|
)), ExtensionManagementErrorCode.ReleaseVersionNotFound));
|
|
573
573
|
}
|
|
574
574
|
throw ( new ExtensionManagementError(( localize(
|
|
575
|
-
|
|
575
|
+
1722,
|
|
576
576
|
"Can't install '{0}' extension because it is not compatible with the current version of {1} (version {2}).",
|
|
577
577
|
extension.identifier.id,
|
|
578
578
|
this.productService.nameLong,
|
|
@@ -746,7 +746,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
746
746
|
if (extensionToUninstall === dependingExtension) {
|
|
747
747
|
if (dependents.length === 1) {
|
|
748
748
|
return localize(
|
|
749
|
-
|
|
749
|
+
1723,
|
|
750
750
|
"Cannot uninstall '{0}' extension. '{1}' extension depends on this.",
|
|
751
751
|
extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
|
|
752
752
|
dependents[0].manifest.displayName || dependents[0].manifest.name
|
|
@@ -754,7 +754,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
754
754
|
}
|
|
755
755
|
if (dependents.length === 2) {
|
|
756
756
|
return localize(
|
|
757
|
-
|
|
757
|
+
1724,
|
|
758
758
|
"Cannot uninstall '{0}' extension. '{1}' and '{2}' extensions depend on this.",
|
|
759
759
|
extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
|
|
760
760
|
dependents[0].manifest.displayName || dependents[0].manifest.name,
|
|
@@ -762,7 +762,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
762
762
|
);
|
|
763
763
|
}
|
|
764
764
|
return localize(
|
|
765
|
-
|
|
765
|
+
1725,
|
|
766
766
|
"Cannot uninstall '{0}' extension. '{1}', '{2}' and other extension depend on this.",
|
|
767
767
|
extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
|
|
768
768
|
dependents[0].manifest.displayName || dependents[0].manifest.name,
|
|
@@ -771,7 +771,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
771
771
|
}
|
|
772
772
|
if (dependents.length === 1) {
|
|
773
773
|
return localize(
|
|
774
|
-
|
|
774
|
+
1726,
|
|
775
775
|
"Cannot uninstall '{0}' extension . It includes uninstalling '{1}' extension and '{2}' extension depends on this.",
|
|
776
776
|
extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
|
|
777
777
|
dependingExtension.manifest.displayName
|
|
@@ -781,7 +781,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
781
781
|
}
|
|
782
782
|
if (dependents.length === 2) {
|
|
783
783
|
return localize(
|
|
784
|
-
|
|
784
|
+
1727,
|
|
785
785
|
"Cannot uninstall '{0}' extension. It includes uninstalling '{1}' extension and '{2}' and '{3}' extensions depend on this.",
|
|
786
786
|
extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
|
|
787
787
|
dependingExtension.manifest.displayName
|
|
@@ -791,7 +791,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
|
|
|
791
791
|
);
|
|
792
792
|
}
|
|
793
793
|
return localize(
|
|
794
|
-
|
|
794
|
+
1728,
|
|
795
795
|
"Cannot uninstall '{0}' extension. It includes uninstalling '{1}' extension and '{2}', '{3}' and other extensions depend on this.",
|
|
796
796
|
extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
|
|
797
797
|
dependingExtension.manifest.displayName
|
|
@@ -80,14 +80,14 @@ let AllowedExtensionsService = class AllowedExtensionsService extends Disposable
|
|
|
80
80
|
`command:workbench.action.openSettings?${encodeURIComponent(JSON.stringify({ query: `@id:${AllowedExtensionsConfigKey}` }))}`
|
|
81
81
|
)).toString());
|
|
82
82
|
const extensionValue = this._allowedExtensionsConfigValue[id];
|
|
83
|
-
const extensionReason = ( new MarkdownString(( localize(
|
|
83
|
+
const extensionReason = ( new MarkdownString(( localize(1729, "it is not in the [allowed list]({0})", settingsCommandLink))));
|
|
84
84
|
if (!isUndefined(extensionValue)) {
|
|
85
85
|
if (isBoolean(extensionValue)) {
|
|
86
86
|
return extensionValue ? true : extensionReason;
|
|
87
87
|
}
|
|
88
88
|
if (extensionValue === 'stable' && prerelease) {
|
|
89
89
|
return (new MarkdownString(localize(
|
|
90
|
-
|
|
90
|
+
1730,
|
|
91
91
|
"the pre-release versions of this extension are not in the [allowed list]({0})",
|
|
92
92
|
settingsCommandLink
|
|
93
93
|
)));
|
|
@@ -107,7 +107,7 @@ let AllowedExtensionsService = class AllowedExtensionsService extends Disposable
|
|
|
107
107
|
return false;
|
|
108
108
|
}))) {
|
|
109
109
|
return (new MarkdownString(localize(
|
|
110
|
-
|
|
110
|
+
1731,
|
|
111
111
|
"the version {0} of this extension is not in the [allowed list]({1})",
|
|
112
112
|
version,
|
|
113
113
|
settingsCommandLink
|
|
@@ -120,7 +120,7 @@ let AllowedExtensionsService = class AllowedExtensionsService extends Disposable
|
|
|
120
120
|
if (!isUndefined(publisherValue)) {
|
|
121
121
|
if (isBoolean(publisherValue)) {
|
|
122
122
|
return publisherValue ? true : ( new MarkdownString(( localize(
|
|
123
|
-
|
|
123
|
+
1732,
|
|
124
124
|
"the extensions from this publisher are not in the [allowed list]({1})",
|
|
125
125
|
publisherKey,
|
|
126
126
|
settingsCommandLink
|
|
@@ -128,7 +128,7 @@ let AllowedExtensionsService = class AllowedExtensionsService extends Disposable
|
|
|
128
128
|
}
|
|
129
129
|
if (publisherValue === 'stable' && prerelease) {
|
|
130
130
|
return (new MarkdownString(localize(
|
|
131
|
-
|
|
131
|
+
1733,
|
|
132
132
|
"the pre-release versions from this publisher are not in the [allowed list]({1})",
|
|
133
133
|
publisherKey,
|
|
134
134
|
settingsCommandLink
|
package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js
CHANGED
|
@@ -238,13 +238,13 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
|
|
|
238
238
|
const activationId = activationTimes.activationReason.extensionId.value;
|
|
239
239
|
const activationEvent = activationTimes.activationReason.activationEvent;
|
|
240
240
|
if (activationEvent === '*') {
|
|
241
|
-
title = ( localize(
|
|
241
|
+
title = ( localize(5984, "Activated by {0} on start-up", activationId));
|
|
242
242
|
}
|
|
243
243
|
else if (/^workspaceContains:/.test(activationEvent)) {
|
|
244
244
|
const fileNameOrGlob = activationEvent.substr('workspaceContains:'.length);
|
|
245
245
|
if (fileNameOrGlob.indexOf('*') >= 0 || fileNameOrGlob.indexOf('?') >= 0) {
|
|
246
246
|
title = ( localize(
|
|
247
|
-
|
|
247
|
+
5985,
|
|
248
248
|
"Activated by {1} because a file matching {0} exists in your workspace",
|
|
249
249
|
fileNameOrGlob,
|
|
250
250
|
activationId
|
|
@@ -252,7 +252,7 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
|
|
|
252
252
|
}
|
|
253
253
|
else {
|
|
254
254
|
title = ( localize(
|
|
255
|
-
|
|
255
|
+
5986,
|
|
256
256
|
"Activated by {1} because file {0} exists in your workspace",
|
|
257
257
|
fileNameOrGlob,
|
|
258
258
|
activationId
|
|
@@ -262,41 +262,41 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
|
|
|
262
262
|
else if (/^workspaceContainsTimeout:/.test(activationEvent)) {
|
|
263
263
|
const glob = activationEvent.substr('workspaceContainsTimeout:'.length);
|
|
264
264
|
title = ( localize(
|
|
265
|
-
|
|
265
|
+
5987,
|
|
266
266
|
"Activated by {1} because searching for {0} took too long",
|
|
267
267
|
glob,
|
|
268
268
|
activationId
|
|
269
269
|
));
|
|
270
270
|
}
|
|
271
271
|
else if (activationEvent === 'onStartupFinished') {
|
|
272
|
-
title = ( localize(
|
|
272
|
+
title = ( localize(5988, "Activated by {0} after start-up finished", activationId));
|
|
273
273
|
}
|
|
274
274
|
else if (/^onLanguage:/.test(activationEvent)) {
|
|
275
275
|
const language = activationEvent.substr('onLanguage:'.length);
|
|
276
276
|
title = ( localize(
|
|
277
|
-
|
|
277
|
+
5989,
|
|
278
278
|
"Activated by {1} because you opened a {0} file",
|
|
279
279
|
language,
|
|
280
280
|
activationId
|
|
281
281
|
));
|
|
282
282
|
}
|
|
283
283
|
else {
|
|
284
|
-
title = ( localize(
|
|
284
|
+
title = ( localize(5990, "Activated by {1} on {0}", activationEvent, activationId));
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
else {
|
|
288
|
-
title = ( localize(
|
|
288
|
+
title = ( localize(5991, "Extension is activating..."));
|
|
289
289
|
}
|
|
290
290
|
data.elementDisposables.push(this._hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), data.activationTime, title));
|
|
291
291
|
clearNode(data.msgContainer);
|
|
292
292
|
if (this._getUnresponsiveProfile(element.description.identifier)) {
|
|
293
293
|
const el = $('span', undefined, ...renderLabelWithIcons(` $(alert) Unresponsive`));
|
|
294
|
-
const extensionHostFreezTitle = ( localize(
|
|
294
|
+
const extensionHostFreezTitle = ( localize(5992, "Extension has caused the extension host to freeze."));
|
|
295
295
|
data.elementDisposables.push(this._hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), el, extensionHostFreezTitle));
|
|
296
296
|
data.msgContainer.appendChild(el);
|
|
297
297
|
}
|
|
298
298
|
if (isNonEmptyArray(element.status.runtimeErrors)) {
|
|
299
|
-
const el = $('span', undefined, ...renderLabelWithIcons(`$(bug) ${( localize(
|
|
299
|
+
const el = $('span', undefined, ...renderLabelWithIcons(`$(bug) ${( localize(5993, "{0} uncaught errors", element.status.runtimeErrors.length))}`));
|
|
300
300
|
data.msgContainer.appendChild(el);
|
|
301
301
|
}
|
|
302
302
|
if (element.status.messages && element.status.messages.length > 0) {
|
|
@@ -336,14 +336,14 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
|
|
|
336
336
|
}
|
|
337
337
|
if (accessData?.accessTimes.length > 0) {
|
|
338
338
|
const element = $('span', undefined, `${( localize(
|
|
339
|
-
|
|
339
|
+
5994,
|
|
340
340
|
"{0} Usage: {1} Requests",
|
|
341
341
|
feature.label,
|
|
342
342
|
accessData.accessTimes.length
|
|
343
|
-
))}${accessData.current ? ( localize(
|
|
343
|
+
))}${accessData.current ? ( localize(5995, ", {0} Requests (Session)", accessData.current.accessTimes.length)) : ''}`);
|
|
344
344
|
if (accessData.current) {
|
|
345
345
|
const title = ( localize(
|
|
346
|
-
|
|
346
|
+
5996,
|
|
347
347
|
"Last request was {0}.",
|
|
348
348
|
fromNow(accessData.current.lastAccessed, true, true)
|
|
349
349
|
));
|
|
@@ -373,7 +373,7 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
|
|
|
373
373
|
},
|
|
374
374
|
accessibilityProvider: new (class {
|
|
375
375
|
getWidgetAriaLabel() {
|
|
376
|
-
return localize(
|
|
376
|
+
return localize(5997, "Runtime Extensions");
|
|
377
377
|
}
|
|
378
378
|
getAriaLabel(element) {
|
|
379
379
|
return element.description.name;
|
|
@@ -386,7 +386,7 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
|
|
|
386
386
|
return;
|
|
387
387
|
}
|
|
388
388
|
const actions = [];
|
|
389
|
-
actions.push(( new Action('runtimeExtensionsEditor.action.copyId', ( localize(
|
|
389
|
+
actions.push(( new Action('runtimeExtensionsEditor.action.copyId', ( localize(5998, "Copy id ({0})", e.element.description.identifier.value)), undefined, true, () => {
|
|
390
390
|
this._clipboardService.writeText(e.element.description.identifier.value);
|
|
391
391
|
})));
|
|
392
392
|
const reportExtensionIssueAction = this._createReportExtensionIssueAction(e.element);
|
|
@@ -395,8 +395,8 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
|
|
|
395
395
|
}
|
|
396
396
|
actions.push(( new Separator()));
|
|
397
397
|
if (e.element.marketplaceInfo) {
|
|
398
|
-
actions.push(( new Action('runtimeExtensionsEditor.action.disableWorkspace', ( localize(
|
|
399
|
-
actions.push(( new Action('runtimeExtensionsEditor.action.disable', ( localize(
|
|
398
|
+
actions.push(( new Action('runtimeExtensionsEditor.action.disableWorkspace', ( localize(5999, "Disable (Workspace)")), undefined, true, () => this._extensionsWorkbenchService.setEnablement(e.element.marketplaceInfo, EnablementState.DisabledWorkspace))));
|
|
399
|
+
actions.push(( new Action('runtimeExtensionsEditor.action.disable', ( localize(6000, "Disable")), undefined, true, () => this._extensionsWorkbenchService.setEnablement(e.element.marketplaceInfo, EnablementState.DisabledGlobally))));
|
|
400
400
|
}
|
|
401
401
|
actions.push(( new Separator()));
|
|
402
402
|
const menuActions = this._menuService.getMenuActions(MenuId.ExtensionEditorContextMenu, this.contextKeyService);
|
|
@@ -432,7 +432,7 @@ class ShowRuntimeExtensionsAction extends Action2 {
|
|
|
432
432
|
constructor() {
|
|
433
433
|
super({
|
|
434
434
|
id: 'workbench.action.showRuntimeExtensions',
|
|
435
|
-
title: ( localize2(
|
|
435
|
+
title: ( localize2(6001, "Show Running Extensions")),
|
|
436
436
|
category: Categories.Developer,
|
|
437
437
|
f1: true,
|
|
438
438
|
menu: {
|
|
@@ -63,7 +63,7 @@ let ConfigBasedRecommendations = class ConfigBasedRecommendations extends Extens
|
|
|
63
63
|
reason: {
|
|
64
64
|
reasonId: ExtensionRecommendationReason.WorkspaceConfig,
|
|
65
65
|
reasonText: ( localize(
|
|
66
|
-
|
|
66
|
+
6002,
|
|
67
67
|
"This extension is recommended because of the current workspace configuration"
|
|
68
68
|
))
|
|
69
69
|
},
|
|
@@ -46,7 +46,7 @@ let ExeBasedRecommendations = class ExeBasedRecommendations extends ExtensionRec
|
|
|
46
46
|
reason: {
|
|
47
47
|
reasonId: ExtensionRecommendationReason.Executable,
|
|
48
48
|
reasonText: ( localize(
|
|
49
|
-
|
|
49
|
+
6003,
|
|
50
50
|
"This extension is recommended because you have {0} installed.",
|
|
51
51
|
tip.exeFriendlyName
|
|
52
52
|
))
|