@codingame/monaco-vscode-extension-gallery-service-override 14.0.2 → 14.0.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 +21 -21
- 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 +156 -156
- 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 +69 -69
- 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": "14.0.
|
|
3
|
+
"version": "14.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - extension-gallery service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,26 +15,26 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-039b5553-0838-562a-97c2-30d6e54a7b42-common": "14.0.
|
|
19
|
-
"@codingame/monaco-vscode-0f5ced28-abde-558b-8652-db8e7d4d64aa-common": "14.0.
|
|
20
|
-
"@codingame/monaco-vscode-10418ae3-ee63-5700-a757-89cbe6564ee4-common": "14.0.
|
|
21
|
-
"@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common": "14.0.
|
|
22
|
-
"@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "14.0.
|
|
23
|
-
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "14.0.
|
|
24
|
-
"@codingame/monaco-vscode-4ee1e7cc-aa3e-55cb-9689-c49cb8629493-common": "14.0.
|
|
25
|
-
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "14.0.
|
|
26
|
-
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "14.0.
|
|
27
|
-
"@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common": "14.0.
|
|
28
|
-
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "14.0.
|
|
29
|
-
"@codingame/monaco-vscode-91789cdf-e3cb-5a04-aaeb-6f7df7d3d231-common": "14.0.
|
|
30
|
-
"@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common": "14.0.
|
|
31
|
-
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "14.0.
|
|
32
|
-
"@codingame/monaco-vscode-api": "14.0.
|
|
33
|
-
"@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common": "14.0.
|
|
34
|
-
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "14.0.
|
|
35
|
-
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": "14.0.
|
|
36
|
-
"@codingame/monaco-vscode-ecf3436d-6064-5fbd-a760-37a211ce79c7-common": "14.0.
|
|
37
|
-
"@codingame/monaco-vscode-eea37658-2307-56a5-8ed0-b2752c7b7a50-common": "14.0.
|
|
18
|
+
"@codingame/monaco-vscode-039b5553-0838-562a-97c2-30d6e54a7b42-common": "14.0.4",
|
|
19
|
+
"@codingame/monaco-vscode-0f5ced28-abde-558b-8652-db8e7d4d64aa-common": "14.0.4",
|
|
20
|
+
"@codingame/monaco-vscode-10418ae3-ee63-5700-a757-89cbe6564ee4-common": "14.0.4",
|
|
21
|
+
"@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common": "14.0.4",
|
|
22
|
+
"@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "14.0.4",
|
|
23
|
+
"@codingame/monaco-vscode-411e0589-fa79-504b-b32c-80a88847b23a-common": "14.0.4",
|
|
24
|
+
"@codingame/monaco-vscode-4ee1e7cc-aa3e-55cb-9689-c49cb8629493-common": "14.0.4",
|
|
25
|
+
"@codingame/monaco-vscode-5e324391-11e3-5ceb-93ee-938e4098e4ad-common": "14.0.4",
|
|
26
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "14.0.4",
|
|
27
|
+
"@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common": "14.0.4",
|
|
28
|
+
"@codingame/monaco-vscode-8c844347-a703-5de1-9eeb-5e0c7f503a58-common": "14.0.4",
|
|
29
|
+
"@codingame/monaco-vscode-91789cdf-e3cb-5a04-aaeb-6f7df7d3d231-common": "14.0.4",
|
|
30
|
+
"@codingame/monaco-vscode-a2719803-af40-5ae9-a29f-8a2231c33056-common": "14.0.4",
|
|
31
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "14.0.4",
|
|
32
|
+
"@codingame/monaco-vscode-api": "14.0.4",
|
|
33
|
+
"@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common": "14.0.4",
|
|
34
|
+
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "14.0.4",
|
|
35
|
+
"@codingame/monaco-vscode-d7f659f5-da33-5ea8-a3b8-9b94f2cf5f33-common": "14.0.4",
|
|
36
|
+
"@codingame/monaco-vscode-ecf3436d-6064-5fbd-a760-37a211ce79c7-common": "14.0.4",
|
|
37
|
+
"@codingame/monaco-vscode-eea37658-2307-56a5-8ed0-b2752c7b7a50-common": "14.0.4"
|
|
38
38
|
},
|
|
39
39
|
"main": "index.js",
|
|
40
40
|
"module": "index.js",
|
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(5882, "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
|
+
5883,
|
|
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
|
+
5884,
|
|
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
|
+
5885,
|
|
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(5886, "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
|
+
5887,
|
|
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(5888, "Activated by {1} on {0}", activationEvent, activationId));
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
else {
|
|
288
|
-
title = ( localize(
|
|
288
|
+
title = ( localize(5889, "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(5890, "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(5891, "{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
|
+
5892,
|
|
340
340
|
"{0} Usage: {1} Requests",
|
|
341
341
|
feature.label,
|
|
342
342
|
accessData.accessTimes.length
|
|
343
|
-
))}${accessData.current ? ( localize(
|
|
343
|
+
))}${accessData.current ? ( localize(5893, ", {0} Requests (Session)", accessData.current.accessTimes.length)) : ''}`);
|
|
344
344
|
if (accessData.current) {
|
|
345
345
|
const title = ( localize(
|
|
346
|
-
|
|
346
|
+
5894,
|
|
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(5895, "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(5896, "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(5897, "Disable (Workspace)")), undefined, true, () => this._extensionsWorkbenchService.setEnablement(e.element.marketplaceInfo, EnablementState.DisabledWorkspace))));
|
|
399
|
+
actions.push(( new Action('runtimeExtensionsEditor.action.disable', ( localize(5898, "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(5899, "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
|
+
5900,
|
|
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
|
+
5901,
|
|
50
50
|
"This extension is recommended because you have {0} installed.",
|
|
51
51
|
tip.exeFriendlyName
|
|
52
52
|
))
|
|
@@ -143,7 +143,7 @@ class VersionWidget extends ExtensionWithDifferentGalleryVersionWidget {
|
|
|
143
143
|
constructor(container, hoverService) {
|
|
144
144
|
super();
|
|
145
145
|
this.element = append(container, $('code.version', undefined, 'pre-release'));
|
|
146
|
-
this._register(hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), this.element, ( localize(
|
|
146
|
+
this._register(hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), this.element, ( localize(5902, "Extension Version"))));
|
|
147
147
|
this.render();
|
|
148
148
|
}
|
|
149
149
|
render() {
|
|
@@ -205,13 +205,13 @@ let ExtensionEditor = class ExtensionEditor extends EditorPane {
|
|
|
205
205
|
const details = append(header, $('.details'));
|
|
206
206
|
const title = append(details, $('.title'));
|
|
207
207
|
const name = append(title, $('span.name.clickable', { role: 'heading', tabIndex: 0 }));
|
|
208
|
-
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), name, ( localize(
|
|
208
|
+
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), name, ( localize(5903, "Extension name"))));
|
|
209
209
|
const versionWidget = ( new VersionWidget(title, this.hoverService));
|
|
210
210
|
const preview = append(title, $('span.preview'));
|
|
211
|
-
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), preview, ( localize(
|
|
212
|
-
preview.textContent = ( localize(
|
|
211
|
+
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), preview, ( localize(5904, "Preview"))));
|
|
212
|
+
preview.textContent = ( localize(5904, "Preview"));
|
|
213
213
|
const builtin = append(title, $('span.builtin'));
|
|
214
|
-
builtin.textContent = ( localize(
|
|
214
|
+
builtin.textContent = ( localize(5905, "Built-in"));
|
|
215
215
|
const subtitle = append(details, $('.subtitle'));
|
|
216
216
|
const publisher = append(append(subtitle, $('.subtitle-entry')), $('.publisher.clickable', { tabIndex: 0 }));
|
|
217
217
|
publisher.setAttribute('role', 'button');
|
|
@@ -220,10 +220,10 @@ let ExtensionEditor = class ExtensionEditor extends EditorPane {
|
|
|
220
220
|
const resource = append(append(subtitle, $('.subtitle-entry.resource')), $('', { tabIndex: 0 }));
|
|
221
221
|
resource.setAttribute('role', 'button');
|
|
222
222
|
const installCount = append(append(subtitle, $('.subtitle-entry')), $('span.install', { tabIndex: 0 }));
|
|
223
|
-
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), installCount, ( localize(
|
|
223
|
+
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), installCount, ( localize(5906, "Install count"))));
|
|
224
224
|
const installCountWidget = this.instantiationService.createInstance(InstallCountWidget, installCount, false);
|
|
225
225
|
const rating = append(append(subtitle, $('.subtitle-entry')), $('span.rating.clickable', { tabIndex: 0 }));
|
|
226
|
-
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), rating, ( localize(
|
|
226
|
+
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), rating, ( localize(5907, "Rating"))));
|
|
227
227
|
rating.setAttribute('role', 'link');
|
|
228
228
|
const ratingsWidget = this.instantiationService.createInstance(RatingsWidget, rating, false);
|
|
229
229
|
const sponsorWidget = this.instantiationService.createInstance(SponsorWidget, append(subtitle, $('.subtitle-entry')));
|
|
@@ -442,7 +442,7 @@ let ExtensionEditor = class ExtensionEditor extends EditorPane {
|
|
|
442
442
|
template.publisher.classList.toggle('clickable', !!extension.url);
|
|
443
443
|
template.publisherDisplayName.textContent = extension.publisherDisplayName;
|
|
444
444
|
template.publisher.parentElement?.classList.toggle('hide', !!extension.resourceExtension || extension.local?.source === 'resource');
|
|
445
|
-
this.transientDisposables.add(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), template.publisher, ( localize(
|
|
445
|
+
this.transientDisposables.add(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), template.publisher, ( localize(5908, "Publisher ({0})", extension.publisher))));
|
|
446
446
|
const location = extension.resourceExtension?.location ?? (extension.local?.source === 'resource' ? extension.local?.location : undefined);
|
|
447
447
|
template.resource.parentElement?.classList.toggle('hide', !location);
|
|
448
448
|
if (location) {
|
|
@@ -450,7 +450,7 @@ let ExtensionEditor = class ExtensionEditor extends EditorPane {
|
|
|
450
450
|
if (workspaceFolder && extension.isWorkspaceScoped) {
|
|
451
451
|
template.resource.parentElement?.classList.add('clickable');
|
|
452
452
|
this.transientDisposables.add(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), template.resource, this.uriIdentityService.extUri.relativePath(workspaceFolder.uri, location)));
|
|
453
|
-
template.resource.textContent = ( localize(
|
|
453
|
+
template.resource.textContent = ( localize(5909, "Workspace Extension"));
|
|
454
454
|
this.transientDisposables.add(onClick(template.resource, () => {
|
|
455
455
|
this.viewsService.openView(VIEW_ID, true).then(() => this.explorerService.select(location, true));
|
|
456
456
|
}));
|
|
@@ -458,7 +458,7 @@ let ExtensionEditor = class ExtensionEditor extends EditorPane {
|
|
|
458
458
|
else {
|
|
459
459
|
template.resource.parentElement?.classList.remove('clickable');
|
|
460
460
|
this.transientDisposables.add(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), template.resource, location.path));
|
|
461
|
-
template.resource.textContent = ( localize(
|
|
461
|
+
template.resource.textContent = ( localize(5910, "Local Extension"));
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
template.installCount.parentElement?.classList.toggle('hide', !extension.url);
|
|
@@ -491,22 +491,22 @@ let ExtensionEditor = class ExtensionEditor extends EditorPane {
|
|
|
491
491
|
this.initialScrollProgress.clear();
|
|
492
492
|
this.currentIdentifier = extension.identifier.id;
|
|
493
493
|
}
|
|
494
|
-
template.navbar.push(ExtensionEditorTab.Readme, ( localize(
|
|
494
|
+
template.navbar.push(ExtensionEditorTab.Readme, ( localize(5911, "Details")), ( localize(5912, "Extension details, rendered from the extension's 'README.md' file")));
|
|
495
495
|
if (manifest) {
|
|
496
|
-
template.navbar.push(ExtensionEditorTab.Features, ( localize(
|
|
496
|
+
template.navbar.push(ExtensionEditorTab.Features, ( localize(5913, "Features")), ( localize(5914, "Lists features contributed by this extension")));
|
|
497
497
|
}
|
|
498
498
|
if (extension.hasChangelog()) {
|
|
499
|
-
template.navbar.push(ExtensionEditorTab.Changelog, ( localize(
|
|
500
|
-
|
|
499
|
+
template.navbar.push(ExtensionEditorTab.Changelog, ( localize(5915, "Changelog")), ( localize(
|
|
500
|
+
5916,
|
|
501
501
|
"Extension update history, rendered from the extension's 'CHANGELOG.md' file"
|
|
502
502
|
)));
|
|
503
503
|
}
|
|
504
504
|
if (extension.dependencies.length) {
|
|
505
|
-
template.navbar.push(ExtensionEditorTab.Dependencies, ( localize(
|
|
505
|
+
template.navbar.push(ExtensionEditorTab.Dependencies, ( localize(5917, "Dependencies")), ( localize(5918, "Lists extensions this extension depends on")));
|
|
506
506
|
}
|
|
507
507
|
if (manifest && manifest.extensionPack?.length && !this.shallRenderAsExtensionPack(manifest)) {
|
|
508
|
-
template.navbar.push(ExtensionEditorTab.ExtensionPack, ( localize(
|
|
509
|
-
|
|
508
|
+
template.navbar.push(ExtensionEditorTab.ExtensionPack, ( localize(5919, "Extension Pack")), ( localize(
|
|
509
|
+
5920,
|
|
510
510
|
"Lists extensions those will be installed together with this extension"
|
|
511
511
|
)));
|
|
512
512
|
}
|
|
@@ -713,7 +713,7 @@ let ExtensionEditor = class ExtensionEditor extends EditorPane {
|
|
|
713
713
|
activeElement = await this.openExtensionPackReadme(extension, manifest, readmeContainer, token);
|
|
714
714
|
}
|
|
715
715
|
else {
|
|
716
|
-
activeElement = await this.openMarkdown(extension, this.extensionReadme.get(), ( localize(
|
|
716
|
+
activeElement = await this.openMarkdown(extension, this.extensionReadme.get(), ( localize(5921, "No README available.")), readmeContainer, WebviewIndex.Readme, ( localize(5922, "Readme")), token);
|
|
717
717
|
}
|
|
718
718
|
this.renderAdditionalDetails(additionalDetailsContainer, extension);
|
|
719
719
|
return activeElement;
|
|
@@ -742,14 +742,14 @@ let ExtensionEditor = class ExtensionEditor extends EditorPane {
|
|
|
742
742
|
extensionPackReadme.classList.add('more-rows');
|
|
743
743
|
}
|
|
744
744
|
const extensionPackHeader = append(extensionPack, $('div.header'));
|
|
745
|
-
extensionPackHeader.textContent = ( localize(
|
|
745
|
+
extensionPackHeader.textContent = ( localize(5923, "Extension Pack ({0})", manifest.extensionPack.length));
|
|
746
746
|
const extensionPackContent = append(extensionPack, $('div', { class: 'extension-pack-content' }));
|
|
747
747
|
extensionPackContent.setAttribute('tabindex', '0');
|
|
748
748
|
append(extensionPack, $('div.footer'));
|
|
749
749
|
const readmeContent = append(extensionPackReadme, $('div.readme-content'));
|
|
750
750
|
await Promise.all([
|
|
751
751
|
this.renderExtensionPack(manifest, extensionPackContent, token),
|
|
752
|
-
this.openMarkdown(extension, this.extensionReadme.get(), ( localize(
|
|
752
|
+
this.openMarkdown(extension, this.extensionReadme.get(), ( localize(5921, "No README available.")), readmeContent, WebviewIndex.Readme, ( localize(5922, "Readme")), token),
|
|
753
753
|
]);
|
|
754
754
|
return { focus: () => extensionPackContent.focus() };
|
|
755
755
|
}
|
|
@@ -765,7 +765,7 @@ let ExtensionEditor = class ExtensionEditor extends EditorPane {
|
|
|
765
765
|
scrollableContent.scanDomNode();
|
|
766
766
|
}
|
|
767
767
|
openChangelog(extension, template, token) {
|
|
768
|
-
return this.openMarkdown(extension, this.extensionChangelog.get(), ( localize(
|
|
768
|
+
return this.openMarkdown(extension, this.extensionChangelog.get(), ( localize(5924, "No Changelog available.")), template.content, WebviewIndex.Changelog, ( localize(5925, "Changelog")), token);
|
|
769
769
|
}
|
|
770
770
|
async openFeatures(template, token) {
|
|
771
771
|
const manifest = await this.loadContents(() => this.extensionManifest.get(), template.content);
|
|
@@ -788,7 +788,7 @@ let ExtensionEditor = class ExtensionEditor extends EditorPane {
|
|
|
788
788
|
return Promise.resolve(null);
|
|
789
789
|
}
|
|
790
790
|
if (isFalsyOrEmpty(extension.dependencies)) {
|
|
791
|
-
append(template.content, $('p.nocontent')).textContent = ( localize(
|
|
791
|
+
append(template.content, $('p.nocontent')).textContent = ( localize(5926, "No Dependencies"));
|
|
792
792
|
return Promise.resolve(template.content);
|
|
793
793
|
}
|
|
794
794
|
const content = $('div', { class: 'subcontent' });
|
|
@@ -916,7 +916,7 @@ let AdditionalDetailsWidget = class AdditionalDetailsWidget extends Disposable {
|
|
|
916
916
|
renderCategories(container, extension) {
|
|
917
917
|
if (extension.categories.length) {
|
|
918
918
|
const categoriesContainer = append(container, $('.categories-container.additional-details-element'));
|
|
919
|
-
append(categoriesContainer, $('.additional-details-title', undefined, ( localize(
|
|
919
|
+
append(categoriesContainer, $('.additional-details-title', undefined, ( localize(5927, "Categories"))));
|
|
920
920
|
const categoriesElement = append(categoriesContainer, $('.categories'));
|
|
921
921
|
for (const category of extension.categories) {
|
|
922
922
|
this.disposables.add(onClick(append(categoriesElement, $('span.category', { tabindex: '0' }, category)), () => this.extensionsWorkbenchService.openSearch(`@category:"${category}"`)));
|
|
@@ -926,23 +926,23 @@ let AdditionalDetailsWidget = class AdditionalDetailsWidget extends Disposable {
|
|
|
926
926
|
renderExtensionResources(container, extension) {
|
|
927
927
|
const resources = [];
|
|
928
928
|
if (extension.url) {
|
|
929
|
-
resources.push([( localize(
|
|
929
|
+
resources.push([( localize(5928, "Marketplace")), ( URI.parse(extension.url))]);
|
|
930
930
|
}
|
|
931
931
|
if (extension.url && extension.supportUrl) {
|
|
932
932
|
try {
|
|
933
|
-
resources.push([( localize(
|
|
933
|
+
resources.push([( localize(5929, "Issues")), ( URI.parse(extension.supportUrl))]);
|
|
934
934
|
}
|
|
935
935
|
catch (error) { }
|
|
936
936
|
}
|
|
937
937
|
if (extension.repository) {
|
|
938
938
|
try {
|
|
939
|
-
resources.push([( localize(
|
|
939
|
+
resources.push([( localize(5930, "Repository")), ( URI.parse(extension.repository))]);
|
|
940
940
|
}
|
|
941
941
|
catch (error) { }
|
|
942
942
|
}
|
|
943
943
|
if (extension.url && extension.licenseUrl) {
|
|
944
944
|
try {
|
|
945
|
-
resources.push([( localize(
|
|
945
|
+
resources.push([( localize(5931, "License")), ( URI.parse(extension.licenseUrl))]);
|
|
946
946
|
}
|
|
947
947
|
catch (error) { }
|
|
948
948
|
}
|
|
@@ -951,7 +951,7 @@ let AdditionalDetailsWidget = class AdditionalDetailsWidget extends Disposable {
|
|
|
951
951
|
}
|
|
952
952
|
if (resources.length || extension.publisherSponsorLink) {
|
|
953
953
|
const extensionResourcesContainer = append(container, $('.resources-container.additional-details-element'));
|
|
954
|
-
append(extensionResourcesContainer, $('.additional-details-title', undefined, ( localize(
|
|
954
|
+
append(extensionResourcesContainer, $('.additional-details-title', undefined, ( localize(5932, "Resources"))));
|
|
955
955
|
const resourcesElement = append(extensionResourcesContainer, $('.resources'));
|
|
956
956
|
for (const [label, uri] of resources) {
|
|
957
957
|
const resource = append(resourcesElement, $('a.resource', { tabindex: '0' }, label));
|
|
@@ -962,18 +962,18 @@ let AdditionalDetailsWidget = class AdditionalDetailsWidget extends Disposable {
|
|
|
962
962
|
}
|
|
963
963
|
renderInstallInfo(container, extension) {
|
|
964
964
|
const installInfoContainer = append(container, $('.more-info-container.additional-details-element'));
|
|
965
|
-
append(installInfoContainer, $('.additional-details-title', undefined, ( localize(
|
|
965
|
+
append(installInfoContainer, $('.additional-details-title', undefined, ( localize(5933, "Installation"))));
|
|
966
966
|
const installInfo = append(installInfoContainer, $('.more-info'));
|
|
967
|
-
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(
|
|
967
|
+
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(5934, "Identifier"))), $('code', undefined, extension.identifier.id)));
|
|
968
968
|
if (extension.type !== ExtensionType.System) {
|
|
969
|
-
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(
|
|
969
|
+
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(5935, "Version"))), $('code', undefined, extension.manifest.version)));
|
|
970
970
|
}
|
|
971
971
|
if (extension.installedTimestamp) {
|
|
972
|
-
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(
|
|
972
|
+
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(5936, "Last Updated"))), $('div', undefined, toDateString(( new Date(extension.installedTimestamp))))));
|
|
973
973
|
}
|
|
974
974
|
if (!extension.isBuiltin && extension.source !== 'gallery') {
|
|
975
|
-
const element = $('div', undefined, extension.source === 'vsix' ? ( localize(
|
|
976
|
-
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(
|
|
975
|
+
const element = $('div', undefined, extension.source === 'vsix' ? ( localize(5937, "VSIX")) : ( localize(5938, "Local")));
|
|
976
|
+
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(5939, "Source"))), element));
|
|
977
977
|
if (isNative && extension.source === 'resource' && extension.location.scheme === Schemas.file) {
|
|
978
978
|
element.classList.add('link');
|
|
979
979
|
element.title = extension.location.fsPath;
|
|
@@ -982,7 +982,7 @@ let AdditionalDetailsWidget = class AdditionalDetailsWidget extends Disposable {
|
|
|
982
982
|
}
|
|
983
983
|
if (extension.size) {
|
|
984
984
|
const element = $('div', undefined, ByteSize.formatSize(extension.size));
|
|
985
|
-
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', { title: ( localize(
|
|
985
|
+
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', { title: ( localize(5940, "Size when installed")) }, ( localize(5941, "Size"))), element));
|
|
986
986
|
if (isNative && extension.location.scheme === Schemas.file) {
|
|
987
987
|
element.classList.add('link');
|
|
988
988
|
element.title = extension.location.fsPath;
|
|
@@ -998,7 +998,7 @@ let AdditionalDetailsWidget = class AdditionalDetailsWidget extends Disposable {
|
|
|
998
998
|
return;
|
|
999
999
|
}
|
|
1000
1000
|
const element = $('div', undefined, ByteSize.formatSize(cacheSize));
|
|
1001
|
-
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', { title: ( localize(
|
|
1001
|
+
append(installInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', { title: ( localize(5942, "Cache size")) }, ( localize(5943, "Cache"))), element));
|
|
1002
1002
|
if (isNative && extension.location.scheme === Schemas.file) {
|
|
1003
1003
|
element.classList.add('link');
|
|
1004
1004
|
element.title = cacheLocation.fsPath;
|
|
@@ -1021,14 +1021,14 @@ let AdditionalDetailsWidget = class AdditionalDetailsWidget extends Disposable {
|
|
|
1021
1021
|
renderMarketplaceInfo(container, extension) {
|
|
1022
1022
|
const gallery = extension.gallery;
|
|
1023
1023
|
const moreInfoContainer = append(container, $('.more-info-container.additional-details-element'));
|
|
1024
|
-
append(moreInfoContainer, $('.additional-details-title', undefined, ( localize(
|
|
1024
|
+
append(moreInfoContainer, $('.additional-details-title', undefined, ( localize(5944, "Marketplace"))));
|
|
1025
1025
|
const moreInfo = append(moreInfoContainer, $('.more-info'));
|
|
1026
1026
|
if (gallery) {
|
|
1027
1027
|
if (!extension.local) {
|
|
1028
|
-
append(moreInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(
|
|
1029
|
-
append(moreInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(
|
|
1028
|
+
append(moreInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(5934, "Identifier"))), $('code', undefined, extension.identifier.id)));
|
|
1029
|
+
append(moreInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(5935, "Version"))), $('code', undefined, gallery.version)));
|
|
1030
1030
|
}
|
|
1031
|
-
append(moreInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(
|
|
1031
|
+
append(moreInfo, $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(5945, "Published"))), $('div', undefined, toDateString(( new Date(gallery.releaseDate))))), $('.more-info-entry', undefined, $('div.more-info-entry-name', undefined, ( localize(5946, "Last Released"))), $('div', undefined, toDateString(( new Date(gallery.lastUpdated))))));
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|
|
@@ -1046,7 +1046,7 @@ registerAction2(class ShowExtensionEditorFindAction extends Action2 {
|
|
|
1046
1046
|
constructor() {
|
|
1047
1047
|
super({
|
|
1048
1048
|
id: 'editor.action.extensioneditor.showfind',
|
|
1049
|
-
title: ( localize(
|
|
1049
|
+
title: ( localize(5947, "Find")),
|
|
1050
1050
|
keybinding: {
|
|
1051
1051
|
when: contextKeyExpr,
|
|
1052
1052
|
weight: KeybindingWeight.EditorContrib,
|
|
@@ -1063,7 +1063,7 @@ registerAction2(class StartExtensionEditorFindNextAction extends Action2 {
|
|
|
1063
1063
|
constructor() {
|
|
1064
1064
|
super({
|
|
1065
1065
|
id: 'editor.action.extensioneditor.findNext',
|
|
1066
|
-
title: ( localize(
|
|
1066
|
+
title: ( localize(5948, "Find Next")),
|
|
1067
1067
|
keybinding: {
|
|
1068
1068
|
when: ( ContextKeyExpr.and(contextKeyExpr, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED)),
|
|
1069
1069
|
primary: KeyCode.Enter,
|
|
@@ -1080,7 +1080,7 @@ registerAction2(class StartExtensionEditorFindPreviousAction extends Action2 {
|
|
|
1080
1080
|
constructor() {
|
|
1081
1081
|
super({
|
|
1082
1082
|
id: 'editor.action.extensioneditor.findPrevious',
|
|
1083
|
-
title: ( localize(
|
|
1083
|
+
title: ( localize(5949, "Find Previous")),
|
|
1084
1084
|
keybinding: {
|
|
1085
1085
|
when: ( ContextKeyExpr.and(contextKeyExpr, KEYBINDING_CONTEXT_WEBVIEW_FIND_WIDGET_FOCUSED)),
|
|
1086
1086
|
primary: KeyMod.Shift | KeyCode.Enter,
|
|
@@ -23,7 +23,7 @@ let ExtensionEnablementWorkspaceTrustTransitionParticipant = class ExtensionEnab
|
|
|
23
23
|
hostService.reload();
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
|
-
const stopped = await extensionService.stopExtensionHosts(( localize(
|
|
26
|
+
const stopped = await extensionService.stopExtensionHosts(( localize(5950, "Changing workspace trust")));
|
|
27
27
|
await extensionEnablementService.updateExtensionsEnablementsWhenWorkspaceTrustChanges();
|
|
28
28
|
if (stopped) {
|
|
29
29
|
extensionService.startExtensionHosts();
|
|
@@ -87,7 +87,7 @@ let RuntimeStatusMarkdownRenderer = class RuntimeStatusMarkdownRenderer extends
|
|
|
87
87
|
const status = this.extensionService.getExtensionsStatus()[extensionId.value];
|
|
88
88
|
if (( this.extensionService.extensions.some(extension => ExtensionIdentifier.equals(extension.identifier, extensionId)))) {
|
|
89
89
|
const data = ( new MarkdownString());
|
|
90
|
-
data.appendMarkdown(`### ${( localize(
|
|
90
|
+
data.appendMarkdown(`### ${( localize(5951, "Activation"))}\n\n`);
|
|
91
91
|
if (status.activationTimes) {
|
|
92
92
|
if (status.activationTimes.activationReason.startup) {
|
|
93
93
|
data.appendMarkdown(`Activated on Startup: \`${status.activationTimes.activateCallTime}ms\``);
|
|
@@ -105,10 +105,10 @@ let RuntimeStatusMarkdownRenderer = class RuntimeStatusMarkdownRenderer extends
|
|
|
105
105
|
for (const feature of features) {
|
|
106
106
|
const accessData = this.extensionFeaturesManagementService.getAccessData(extensionId, feature.id);
|
|
107
107
|
if (accessData) {
|
|
108
|
-
this.renderMarkdown(( new MarkdownString(`\n ### ${( localize(
|
|
108
|
+
this.renderMarkdown(( new MarkdownString(`\n ### ${( localize(5952, "{0} Usage", feature.label))}\n\n`)), container, disposables);
|
|
109
109
|
if (accessData.accessTimes.length) {
|
|
110
110
|
const description = append(container, $('.feature-chart-description', undefined, ( localize(
|
|
111
|
-
|
|
111
|
+
5953,
|
|
112
112
|
"There were {0} {1} requests from this extension in the last 30 days.",
|
|
113
113
|
accessData?.accessTimes.length,
|
|
114
114
|
feature.accessDataLabel ?? feature.label
|
|
@@ -134,13 +134,13 @@ let RuntimeStatusMarkdownRenderer = class RuntimeStatusMarkdownRenderer extends
|
|
|
134
134
|
if (status.runtimeErrors.length || status.messages.length) {
|
|
135
135
|
const data = ( new MarkdownString());
|
|
136
136
|
if (status.runtimeErrors.length) {
|
|
137
|
-
data.appendMarkdown(`\n ### ${( localize(
|
|
137
|
+
data.appendMarkdown(`\n ### ${( localize(5954, "Uncaught Errors ({0})", status.runtimeErrors.length))}\n`);
|
|
138
138
|
for (const error of status.runtimeErrors) {
|
|
139
139
|
data.appendMarkdown(`$(${Codicon.error.id}) ${getErrorMessage(error)}\n\n`);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
if (status.messages.length) {
|
|
143
|
-
data.appendMarkdown(`\n ### ${( localize(
|
|
143
|
+
data.appendMarkdown(`\n ### ${( localize(5955, "Messages ({0})", status.messages.length))}\n`);
|
|
144
144
|
for (const message of status.messages) {
|
|
145
145
|
data.appendMarkdown(`$(${(message.type === Severity.Error ? Codicon.error : message.type === Severity.Warning ? Codicon.warning : Codicon.info).id}) ${message.message}\n\n`);
|
|
146
146
|
}
|
|
@@ -301,7 +301,7 @@ RuntimeStatusMarkdownRenderer = ( __decorate([
|
|
|
301
301
|
], RuntimeStatusMarkdownRenderer));
|
|
302
302
|
const runtimeStatusFeature = {
|
|
303
303
|
id: RuntimeStatusMarkdownRenderer.ID,
|
|
304
|
-
label: ( localize(
|
|
304
|
+
label: ( localize(5956, "Runtime Status")),
|
|
305
305
|
access: {
|
|
306
306
|
canToggle: false
|
|
307
307
|
},
|
|
@@ -325,7 +325,7 @@ let ExtensionFeaturesTab = class ExtensionFeaturesTab extends Themable {
|
|
|
325
325
|
create() {
|
|
326
326
|
const features = this.getFeatures();
|
|
327
327
|
if (features.length === 0) {
|
|
328
|
-
append($('.no-features'), this.domNode).textContent = ( localize(
|
|
328
|
+
append($('.no-features'), this.domNode).textContent = ( localize(5957, "No features contributed."));
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
331
|
const splitView = this._register(( new SplitView(this.domNode, {
|
|
@@ -387,7 +387,7 @@ let ExtensionFeaturesTab = class ExtensionFeaturesTab extends Themable {
|
|
|
387
387
|
return extensionFeature?.label ?? '';
|
|
388
388
|
},
|
|
389
389
|
getWidgetAriaLabel() {
|
|
390
|
-
return localize(
|
|
390
|
+
return localize(5958, "Extension Features");
|
|
391
391
|
}
|
|
392
392
|
},
|
|
393
393
|
openOnSingleClick: true
|
|
@@ -443,7 +443,7 @@ let ExtensionFeatureItemRenderer = class ExtensionFeatureItemRenderer {
|
|
|
443
443
|
container.classList.add('extension-feature-list-item');
|
|
444
444
|
const label = append(container, $('.extension-feature-label'));
|
|
445
445
|
const disabledElement = append(container, $('.extension-feature-disabled-label'));
|
|
446
|
-
disabledElement.textContent = ( localize(
|
|
446
|
+
disabledElement.textContent = ( localize(5959, "No Access"));
|
|
447
447
|
const statusElement = append(container, $('.extension-feature-status'));
|
|
448
448
|
return { label, disabledElement, statusElement, disposables: ( new DisposableStore()) };
|
|
449
449
|
}
|
|
@@ -514,23 +514,23 @@ let ExtensionFeatureView = class ExtensionFeatureView extends Disposable {
|
|
|
514
514
|
this._register(button.onDidClick(async () => {
|
|
515
515
|
const enabled = this.extensionFeaturesManagementService.isEnabled(this.extensionId, this.feature.id);
|
|
516
516
|
const confirmationResult = await this.dialogService.confirm({
|
|
517
|
-
title: ( localize(
|
|
517
|
+
title: ( localize(5960, "Enable '{0}' Feature", this.feature.label)),
|
|
518
518
|
message: enabled
|
|
519
519
|
? ( localize(
|
|
520
|
-
|
|
520
|
+
5961,
|
|
521
521
|
"Would you like to revoke '{0}' extension to access '{1}' feature?",
|
|
522
522
|
this.manifest.displayName ?? this.extensionId.value,
|
|
523
523
|
this.feature.label
|
|
524
524
|
))
|
|
525
525
|
: ( localize(
|
|
526
|
-
|
|
526
|
+
5962,
|
|
527
527
|
"Would you like to allow '{0}' extension to access '{1}' feature?",
|
|
528
528
|
this.manifest.displayName ?? this.extensionId.value,
|
|
529
529
|
this.feature.label
|
|
530
530
|
)),
|
|
531
531
|
custom: true,
|
|
532
|
-
primaryButton: enabled ? ( localize(
|
|
533
|
-
cancelButton: ( localize(
|
|
532
|
+
primaryButton: enabled ? ( localize(5963, "Revoke Access")) : ( localize(5964, "Allow Access")),
|
|
533
|
+
cancelButton: ( localize(5965, "Cancel")),
|
|
534
534
|
});
|
|
535
535
|
if (confirmationResult.confirmed) {
|
|
536
536
|
this.extensionFeaturesManagementService.setEnablement(this.extensionId, this.feature.id, !enabled);
|
|
@@ -569,7 +569,7 @@ let ExtensionFeatureView = class ExtensionFeatureView extends Disposable {
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
updateButtonLabel(button) {
|
|
572
|
-
button.label = this.extensionFeaturesManagementService.isEnabled(this.extensionId, this.feature.id) ? ( localize(
|
|
572
|
+
button.label = this.extensionFeaturesManagementService.isEnabled(this.extensionId, this.feature.id) ? ( localize(5963, "Revoke Access")) : ( localize(5966, "Allow Access"));
|
|
573
573
|
}
|
|
574
574
|
renderTableData(container, renderer) {
|
|
575
575
|
const tableData = this._register(renderer.render(this.manifest));
|