@codingame/monaco-vscode-extension-gallery-service-override 37.6.1 → 38.0.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-extension-gallery-service-override",
3
- "version": "37.6.1",
3
+ "version": "38.0.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - extension-gallery service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "37.6.1"
18
+ "@codingame/monaco-vscode-api": "38.0.1"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -35,7 +35,7 @@ let CommontExtensionManagementService = class CommontExtensionManagementService
35
35
  });
36
36
  if (allowedToInstall !== true) {
37
37
  return (new MarkdownString(localize(
38
- 2224,
38
+ 2598,
39
39
  "This extension cannot be installed because {0}",
40
40
  allowedToInstall.value
41
41
  )));
@@ -43,12 +43,12 @@ let CommontExtensionManagementService = class CommontExtensionManagementService
43
43
  if (!(await this.isExtensionPlatformCompatible(extension))) {
44
44
  const learnLink = isWeb ? "https://aka.ms/vscode-web-extensions-guide" : "https://aka.ms/vscode-platform-specific-extensions";
45
45
  return (new MarkdownString(`${( localize(
46
- 2225,
46
+ 2599,
47
47
  "The '{0}' extension is not available in {1} for the {2} platform.",
48
48
  extension.displayName ?? extension.identifier.id,
49
49
  this.productService.nameLong,
50
50
  TargetPlatformToString(await this.getTargetPlatform())
51
- ))} [${( localize(2226, "Learn Why"))}](${learnLink})`));
51
+ ))} [${( localize(2600, "Learn Why"))}](${learnLink})`));
52
52
  }
53
53
  return true;
54
54
  }
@@ -145,7 +145,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
145
145
  }
146
146
  async installGalleryExtensions(extensions) {
147
147
  if (!this.galleryService.isEnabled()) {
148
- throw ( new ExtensionManagementError(( localize(2227, "Marketplace is not enabled")), ExtensionManagementErrorCode.NotAllowed));
148
+ throw ( new ExtensionManagementError(( localize(2601, "Marketplace is not enabled")), ExtensionManagementErrorCode.NotAllowed));
149
149
  }
150
150
  const results = [];
151
151
  const installableExtensions = [];
@@ -832,7 +832,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
832
832
  const extensionsControlManifest = await this.getExtensionsControlManifest();
833
833
  if (isMalicious(extension.identifier, extensionsControlManifest.malicious)) {
834
834
  throw ( new ExtensionManagementError(( localize(
835
- 2228,
835
+ 2602,
836
836
  "Can't install '{0}' extension since it was reported to be problematic.",
837
837
  extension.identifier.id
838
838
  )), ExtensionManagementErrorCode.Malicious));
@@ -852,7 +852,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
852
852
  }, CancellationToken.None))[0];
853
853
  if (!compatibleExtension) {
854
854
  throw ( new ExtensionManagementError(( localize(
855
- 2229,
855
+ 2603,
856
856
  "Can't install '{0}' extension since it was deprecated and the replacement extension '{1}' can't be found.",
857
857
  extension.identifier.id,
858
858
  deprecationInfo.extension.id
@@ -862,7 +862,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
862
862
  if ((await this.canInstall(extension)) !== true) {
863
863
  const targetPlatform = await this.getTargetPlatform();
864
864
  throw ( new ExtensionManagementError(( localize(
865
- 2225,
865
+ 2599,
866
866
  "The '{0}' extension is not available in {1} for the {2} platform.",
867
867
  extension.identifier.id,
868
868
  this.productService.nameLong,
@@ -873,13 +873,13 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
873
873
  if (!compatibleExtension) {
874
874
  if (!installPreRelease && extension.hasPreReleaseVersion && extension.properties.isPreReleaseVersion && (await this.galleryService.getExtensions([extension.identifier], CancellationToken.None))[0]) {
875
875
  throw ( new ExtensionManagementError(( localize(
876
- 2230,
876
+ 2604,
877
877
  "Can't install release version of '{0}' extension because it has no release version.",
878
878
  extension.displayName ?? extension.identifier.id
879
879
  )), ExtensionManagementErrorCode.ReleaseVersionNotFound));
880
880
  }
881
881
  throw ( new ExtensionManagementError(( localize(
882
- 2231,
882
+ 2605,
883
883
  "Can't install '{0}' extension because it is not compatible with the current version of {1} (version {2}).",
884
884
  extension.identifier.id,
885
885
  this.productService.nameLong,
@@ -1199,7 +1199,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1199
1199
  if (extensionToUninstall === dependingExtension) {
1200
1200
  if (dependents.length === 1) {
1201
1201
  return localize(
1202
- 2232,
1202
+ 2606,
1203
1203
  "Cannot uninstall '{0}' extension. '{1}' extension depends on this.",
1204
1204
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1205
1205
  dependents[0].manifest.displayName || dependents[0].manifest.name
@@ -1207,7 +1207,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1207
1207
  }
1208
1208
  if (dependents.length === 2) {
1209
1209
  return localize(
1210
- 2233,
1210
+ 2607,
1211
1211
  "Cannot uninstall '{0}' extension. '{1}' and '{2}' extensions depend on this.",
1212
1212
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1213
1213
  dependents[0].manifest.displayName || dependents[0].manifest.name,
@@ -1215,7 +1215,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1215
1215
  );
1216
1216
  }
1217
1217
  return localize(
1218
- 2234,
1218
+ 2608,
1219
1219
  "Cannot uninstall '{0}' extension. '{1}', '{2}' and other extension depend on this.",
1220
1220
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1221
1221
  dependents[0].manifest.displayName || dependents[0].manifest.name,
@@ -1224,7 +1224,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1224
1224
  }
1225
1225
  if (dependents.length === 1) {
1226
1226
  return localize(
1227
- 2235,
1227
+ 2609,
1228
1228
  "Cannot uninstall '{0}' extension . It includes uninstalling '{1}' extension and '{2}' extension depends on this.",
1229
1229
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1230
1230
  dependingExtension.manifest.displayName || dependingExtension.manifest.name,
@@ -1233,7 +1233,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1233
1233
  }
1234
1234
  if (dependents.length === 2) {
1235
1235
  return localize(
1236
- 2236,
1236
+ 2610,
1237
1237
  "Cannot uninstall '{0}' extension. It includes uninstalling '{1}' extension and '{2}' and '{3}' extensions depend on this.",
1238
1238
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1239
1239
  dependingExtension.manifest.displayName || dependingExtension.manifest.name,
@@ -1242,7 +1242,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1242
1242
  );
1243
1243
  }
1244
1244
  return localize(
1245
- 2237,
1245
+ 2611,
1246
1246
  "Cannot uninstall '{0}' extension. It includes uninstalling '{1}' extension and '{2}', '{3}' and other extensions depend on this.",
1247
1247
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1248
1248
  dependingExtension.manifest.displayName || dependingExtension.manifest.name,
@@ -77,14 +77,14 @@ let AllowedExtensionsService = class AllowedExtensionsService extends Disposable
77
77
  query: `@id:${AllowedExtensionsConfigKey}`
78
78
  }).toString());
79
79
  const extensionValue = this._allowedExtensionsConfigValue[id];
80
- const extensionReason = ( new MarkdownString(( localize(2238, "it is not in the [allowed list]({0})", settingsCommandLink))));
80
+ const extensionReason = ( new MarkdownString(( localize(2612, "it is not in the [allowed list]({0})", settingsCommandLink))));
81
81
  if (!isUndefined(extensionValue)) {
82
82
  if (isBoolean(extensionValue)) {
83
83
  return extensionValue ? true : extensionReason;
84
84
  }
85
85
  if (extensionValue === "stable" && prerelease) {
86
86
  return (new MarkdownString(localize(
87
- 2239,
87
+ 2613,
88
88
  "the pre-release versions of this extension are not in the [allowed list]({0})",
89
89
  settingsCommandLink
90
90
  )));
@@ -107,7 +107,7 @@ let AllowedExtensionsService = class AllowedExtensionsService extends Disposable
107
107
  return false;
108
108
  }))) {
109
109
  return (new MarkdownString(localize(
110
- 2240,
110
+ 2614,
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
- 2241,
123
+ 2615,
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
- 2242,
131
+ 2616,
132
132
  "the pre-release versions from this publisher are not in the [allowed list]({1})",
133
133
  publisherKey,
134
134
  settingsCommandLink
@@ -11,16 +11,16 @@ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/regist
11
11
  type: "boolean",
12
12
  scope: ConfigurationScope.APPLICATION,
13
13
  description: ( localize(
14
- 4075,
15
- "When enabled, extensions can declare whether they support running in the Agents window."
14
+ 4717,
15
+ "When enabled, non-built-in extensions can declare whether they support running in the Agents window. Built-in extensions can declare support without enabling this setting."
16
16
  )),
17
- default: false,
17
+ default: true,
18
18
  tags: ["experimental"],
19
19
  experiment: {
20
20
  mode: "startup"
21
21
  },
22
22
  agentsWindow: {
23
- default: false
23
+ default: true
24
24
  }
25
25
  }
26
26
  }
@@ -63,6 +63,7 @@ export declare abstract class AbstractRuntimeExtensionsEditor extends EditorPane
63
63
  protected _updateExtensions(): Promise<void>;
64
64
  private _resolveExtensions;
65
65
  protected createEditor(parent: HTMLElement): void;
66
+ focus(): void;
66
67
  layout(dimension: Dimension): void;
67
68
  protected abstract _getProfileInfo(): IExtensionHostProfile | null;
68
69
  protected abstract _getUnresponsiveProfile(extensionId: ExtensionIdentifier): IExtensionHostProfile | undefined;
@@ -272,19 +272,19 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
272
272
  const activationId = activationTimes.activationReason.extensionId.value;
273
273
  const activationEvent = activationTimes.activationReason.activationEvent;
274
274
  if (activationEvent === "*") {
275
- title = ( localize(14415, "Activated by {0} on start-up", activationId));
275
+ title = ( localize(16797, "Activated by {0} on start-up", activationId));
276
276
  } else if (/^workspaceContains:/.test(activationEvent)) {
277
277
  const fileNameOrGlob = activationEvent.substr("workspaceContains:".length);
278
278
  if (fileNameOrGlob.indexOf("*") >= 0 || fileNameOrGlob.indexOf("?") >= 0) {
279
279
  title = ( localize(
280
- 14416,
280
+ 16798,
281
281
  "Activated by {1} because a file matching {0} exists in your workspace",
282
282
  fileNameOrGlob,
283
283
  activationId
284
284
  ));
285
285
  } else {
286
286
  title = ( localize(
287
- 14417,
287
+ 16799,
288
288
  "Activated by {1} because file {0} exists in your workspace",
289
289
  fileNameOrGlob,
290
290
  activationId
@@ -293,26 +293,26 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
293
293
  } else if (/^workspaceContainsTimeout:/.test(activationEvent)) {
294
294
  const glob = activationEvent.substr("workspaceContainsTimeout:".length);
295
295
  title = ( localize(
296
- 14418,
296
+ 16800,
297
297
  "Activated by {1} because searching for {0} took too long",
298
298
  glob,
299
299
  activationId
300
300
  ));
301
301
  } else if (activationEvent === "onStartupFinished") {
302
- title = ( localize(14419, "Activated by {0} after start-up finished", activationId));
302
+ title = ( localize(16801, "Activated by {0} after start-up finished", activationId));
303
303
  } else if (/^onLanguage:/.test(activationEvent)) {
304
304
  const language = activationEvent.substr("onLanguage:".length);
305
305
  title = ( localize(
306
- 14420,
306
+ 16802,
307
307
  "Activated by {1} because you opened a {0} file",
308
308
  language,
309
309
  activationId
310
310
  ));
311
311
  } else {
312
- title = ( localize(14421, "Activated by {1} on {0}", activationEvent, activationId));
312
+ title = ( localize(16803, "Activated by {1} on {0}", activationEvent, activationId));
313
313
  }
314
314
  } else {
315
- title = ( localize(14422, "Extension is activating..."));
315
+ title = ( localize(16804, "Extension is activating..."));
316
316
  }
317
317
  data.elementDisposables.push(
318
318
  this._hoverService.setupManagedHover(getDefaultHoverDelegate("mouse"), data.activationTime, title)
@@ -320,14 +320,14 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
320
320
  clearNode(data.msgContainer);
321
321
  if (this._getUnresponsiveProfile(element.description.identifier)) {
322
322
  const el = $("span", undefined, ...renderLabelWithIcons(` $(alert) Unresponsive`));
323
- const extensionHostFreezTitle = ( localize(14423, "Extension has caused the extension host to freeze."));
323
+ const extensionHostFreezTitle = ( localize(16805, "Extension has caused the extension host to freeze."));
324
324
  data.elementDisposables.push(
325
325
  this._hoverService.setupManagedHover(getDefaultHoverDelegate("mouse"), el, extensionHostFreezTitle)
326
326
  );
327
327
  data.msgContainer.appendChild(el);
328
328
  }
329
329
  if (isNonEmptyArray(element.status.runtimeErrors)) {
330
- const el = $("span", undefined, ...renderLabelWithIcons(`$(bug) ${( localize(14424, "{0} uncaught errors", element.status.runtimeErrors.length))}`));
330
+ const el = $("span", undefined, ...renderLabelWithIcons(`$(bug) ${( localize(16806, "{0} uncaught errors", element.status.runtimeErrors.length))}`));
331
331
  data.msgContainer.appendChild(el);
332
332
  }
333
333
  if (element.status.messages && element.status.messages.length > 0) {
@@ -368,14 +368,14 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
368
368
  }
369
369
  if (accessData?.accessTimes.length > 0) {
370
370
  const element = $("span", undefined, `${( localize(
371
- 14425,
371
+ 16807,
372
372
  "{0} Usage: {1} Requests",
373
373
  feature.label,
374
374
  accessData.accessTimes.length
375
- ))}${accessData.current ? ( localize(14426, ", {0} Requests (Session)", accessData.current.accessTimes.length)) : ""}`);
375
+ ))}${accessData.current ? ( localize(16808, ", {0} Requests (Session)", accessData.current.accessTimes.length)) : ""}`);
376
376
  if (accessData.current) {
377
377
  const title = ( localize(
378
- 14427,
378
+ 16809,
379
379
  "Last request was {0}.",
380
380
  fromNow(accessData.current.lastAccessed, true, true)
381
381
  ));
@@ -408,7 +408,7 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
408
408
  },
409
409
  accessibilityProvider: new (class {
410
410
  getWidgetAriaLabel() {
411
- return localize(14428, "Runtime Extensions");
411
+ return localize(16810, "Runtime Extensions");
412
412
  }
413
413
  getAriaLabel(element) {
414
414
  return element.description.name;
@@ -422,7 +422,7 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
422
422
  return;
423
423
  }
424
424
  const actions = [];
425
- actions.push(( new Action("runtimeExtensionsEditor.action.copyId", ( localize(14429, "Copy id ({0})", e.element.description.identifier.value)), undefined, true, () => {
425
+ actions.push(( new Action("runtimeExtensionsEditor.action.copyId", ( localize(16811, "Copy id ({0})", e.element.description.identifier.value)), undefined, true, () => {
426
426
  this._clipboardService.writeText(e.element.description.identifier.value);
427
427
  })));
428
428
  const reportExtensionIssueAction = this._createReportExtensionIssueAction(e.element);
@@ -431,8 +431,8 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
431
431
  }
432
432
  actions.push(( new Separator()));
433
433
  if (e.element.marketplaceInfo) {
434
- actions.push(( new Action("runtimeExtensionsEditor.action.disableWorkspace", ( localize(14430, "Disable (Workspace)")), undefined, true, () => this._extensionsWorkbenchService.setEnablement(e.element.marketplaceInfo, EnablementState.DisabledWorkspace))));
435
- actions.push(( new Action("runtimeExtensionsEditor.action.disable", ( localize(14431, "Disable")), undefined, true, () => this._extensionsWorkbenchService.setEnablement(e.element.marketplaceInfo, EnablementState.DisabledGlobally))));
434
+ actions.push(( new Action("runtimeExtensionsEditor.action.disableWorkspace", ( localize(16812, "Disable (Workspace)")), undefined, true, () => this._extensionsWorkbenchService.setEnablement(e.element.marketplaceInfo, EnablementState.DisabledWorkspace))));
435
+ actions.push(( new Action("runtimeExtensionsEditor.action.disable", ( localize(16813, "Disable")), undefined, true, () => this._extensionsWorkbenchService.setEnablement(e.element.marketplaceInfo, EnablementState.DisabledGlobally))));
436
436
  }
437
437
  actions.push(( new Separator()));
438
438
  const menuActions = this._menuService.getMenuActions(MenuId.ExtensionEditorContextMenu, this.contextKeyService);
@@ -443,6 +443,10 @@ let AbstractRuntimeExtensionsEditor = class AbstractRuntimeExtensionsEditor exte
443
443
  });
444
444
  }));
445
445
  }
446
+ focus() {
447
+ super.focus();
448
+ this._list?.domFocus();
449
+ }
446
450
  layout(dimension) {
447
451
  this._list?.layout(dimension.height);
448
452
  }
@@ -452,7 +456,7 @@ class ShowRuntimeExtensionsAction extends Action2 {
452
456
  constructor() {
453
457
  super({
454
458
  id: "workbench.action.showRuntimeExtensions",
455
- title: ( localize2(14432, "Show Running Extensions")),
459
+ title: ( localize2(16814, "Show Running Extensions")),
456
460
  category: Categories.Developer,
457
461
  f1: true,
458
462
  menu: {
@@ -10,7 +10,7 @@ import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workben
10
10
  import { ShowRuntimeExtensionsAction } from './abstractRuntimeExtensionsEditor.js';
11
11
 
12
12
  ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
13
- EditorPaneDescriptor.create(RuntimeExtensionsEditor, RuntimeExtensionsEditor.ID, ( localize(14666, "Running Extensions"))),
13
+ EditorPaneDescriptor.create(RuntimeExtensionsEditor, RuntimeExtensionsEditor.ID, ( localize(17048, "Running Extensions"))),
14
14
  [( new SyncDescriptor(RuntimeExtensionsInput))]
15
15
  );
16
16
  registerAction2(ShowRuntimeExtensionsAction);
@@ -13,7 +13,7 @@ let ReportExtensionIssueAction = class ReportExtensionIssueAction extends Action
13
13
  this._id = "workbench.extensions.action.reportExtensionIssue";
14
14
  }
15
15
  static {
16
- this._label = ( localize(15051, "Report Issue"));
16
+ this._label = ( localize(17434, "Report Issue"));
17
17
  }
18
18
  constructor(extension, issueService) {
19
19
  super(
@@ -6,7 +6,7 @@ import { EditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/co
6
6
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
7
7
  import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
8
8
 
9
- const RuntimeExtensionsEditorIcon = registerIcon("runtime-extensions-editor-label-icon", Codicon.extensions, ( localize(15052, "Icon of the runtime extensions editor label.")));
9
+ const RuntimeExtensionsEditorIcon = registerIcon("runtime-extensions-editor-label-icon", Codicon.extensions, ( localize(17435, "Icon of the runtime extensions editor label.")));
10
10
  class RuntimeExtensionsInput extends EditorInput {
11
11
  constructor() {
12
12
  super(...arguments);
@@ -22,7 +22,7 @@ class RuntimeExtensionsInput extends EditorInput {
22
22
  return RuntimeExtensionsInput.ID;
23
23
  }
24
24
  get capabilities() {
25
- return EditorInputCapabilities.Readonly | EditorInputCapabilities.Singleton;
25
+ return EditorInputCapabilities.Readonly | EditorInputCapabilities.Singleton | EditorInputCapabilities.RequiresModal;
26
26
  }
27
27
  static get instance() {
28
28
  if (!RuntimeExtensionsInput._instance || RuntimeExtensionsInput._instance.isDisposed()) {
@@ -31,7 +31,7 @@ class RuntimeExtensionsInput extends EditorInput {
31
31
  return RuntimeExtensionsInput._instance;
32
32
  }
33
33
  getName() {
34
- return localize(15053, "Running Extensions");
34
+ return localize(17436, "Running Extensions");
35
35
  }
36
36
  getIcon() {
37
37
  return RuntimeExtensionsEditorIcon;
@@ -25,6 +25,7 @@ import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench
25
25
  import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
26
26
  import { NotificationPriority } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
27
27
  import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
28
+ import { NotificationActionTelemetryId, NotificationTelemetryId } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notificationTelemetry';
28
29
  import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
29
30
  import { IExtensionBisectService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/browser/extensionBisect.service';
30
31
  import { IWorkspaceTrustManagementService, IWorkspaceTrustRequestService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
@@ -154,12 +155,14 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
154
155
  }));
155
156
  if (this.allUserExtensionsDisabled) {
156
157
  this.lifecycleService.when(LifecyclePhase.Eventually).then(() => {
157
- this.notificationService.prompt(Severity.Info, ( localize(21902, "All installed extensions are temporarily disabled.")), [{
158
- label: ( localize(21903, "Reload and Enable Extensions")),
158
+ this.notificationService.prompt(Severity.Info, ( localize(24477, "All installed extensions are temporarily disabled.")), [{
159
+ telemetryId: NotificationActionTelemetryId.Reload,
160
+ label: ( localize(24478, "Reload and Enable Extensions")),
159
161
  run: () => hostService.reload({
160
162
  disableExtensions: false
161
163
  })
162
164
  }], {
165
+ telemetry: NotificationTelemetryId.ExtensionsDisabled,
163
166
  sticky: true,
164
167
  priority: NotificationPriority.URGENT
165
168
  });
@@ -271,21 +274,21 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
271
274
  throwErrorIfCannotChangeEnablement(extension, donotCheckDependencies) {
272
275
  if (isLanguagePackExtension(extension.manifest)) {
273
276
  throw ( new Error(( localize(
274
- 21904,
277
+ 24479,
275
278
  "Cannot change enablement of {0} extension because it contributes language packs.",
276
279
  extension.manifest.displayName || extension.identifier.id
277
280
  ))));
278
281
  }
279
282
  if (this.isDefaultOrSettingsSyncAuthProviderExtension(extension.manifest)) {
280
283
  throw ( new Error(( localize(
281
- 21905,
284
+ 24480,
282
285
  "Cannot change enablement of {0} extension because Settings Sync depends on it.",
283
286
  extension.manifest.displayName || extension.identifier.id
284
287
  ))));
285
288
  }
286
289
  if (this._isEnabledInEnv(extension)) {
287
290
  throw ( new Error(( localize(
288
- 21906,
291
+ 24481,
289
292
  "Cannot change enablement of {0} extension because it is enabled in environment",
290
293
  extension.manifest.displayName || extension.identifier.id
291
294
  ))));
@@ -296,37 +299,37 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
296
299
  switch (enablementStateOfExtension) {
297
300
  case EnablementState.DisabledByEnvironment:
298
301
  throw ( new Error(( localize(
299
- 21907,
302
+ 24482,
300
303
  "Cannot change enablement of {0} extension because it is disabled in environment",
301
304
  extension.manifest.displayName || extension.identifier.id
302
305
  ))));
303
306
  case EnablementState.DisabledByMalicious:
304
307
  throw ( new Error(( localize(
305
- 21908,
308
+ 24483,
306
309
  "Cannot change enablement of {0} extension because it is malicious",
307
310
  extension.manifest.displayName || extension.identifier.id
308
311
  ))));
309
312
  case EnablementState.DisabledByVirtualWorkspace:
310
313
  throw ( new Error(( localize(
311
- 21909,
314
+ 24484,
312
315
  "Cannot change enablement of {0} extension because it does not support virtual workspaces",
313
316
  extension.manifest.displayName || extension.identifier.id
314
317
  ))));
315
318
  case EnablementState.DisabledByExtensionKind:
316
319
  throw ( new Error(( localize(
317
- 21910,
320
+ 24485,
318
321
  "Cannot change enablement of {0} extension because of its extension kind",
319
322
  extension.manifest.displayName || extension.identifier.id
320
323
  ))));
321
324
  case EnablementState.DisabledByAllowlist:
322
325
  throw ( new Error(( localize(
323
- 21911,
326
+ 24486,
324
327
  "Cannot change enablement of {0} extension because it is disallowed",
325
328
  extension.manifest.displayName || extension.identifier.id
326
329
  ))));
327
330
  case EnablementState.DisabledByInvalidExtension:
328
331
  throw ( new Error(( localize(
329
- 21912,
332
+ 24487,
330
333
  "Cannot change enablement of {0} extension because of it is invalid",
331
334
  extension.manifest.displayName || extension.identifier.id
332
335
  ))));
@@ -339,7 +342,7 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
339
342
  continue;
340
343
  }
341
344
  throw ( new Error(( localize(
342
- 21913,
345
+ 24488,
343
346
  "Cannot enable '{0}' extension because it depends on '{1}' extension that cannot be enabled",
344
347
  extension.manifest.displayName || extension.identifier.id,
345
348
  dependency.manifest.displayName || dependency.identifier.id
@@ -349,11 +352,11 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
349
352
  }
350
353
  throwErrorIfCannotChangeWorkspaceEnablement(extension) {
351
354
  if (!this.hasWorkspace) {
352
- throw ( new Error(( localize(21914, "No workspace."))));
355
+ throw ( new Error(( localize(24489, "No workspace."))));
353
356
  }
354
357
  if (this.isDefaultOrSettingsSyncAuthProviderExtension(extension.manifest)) {
355
358
  throw ( new Error(( localize(
356
- 21915,
359
+ 24490,
357
360
  "Cannot change enablement of {0} extension in workspace because Settings Sync depends on it.",
358
361
  extension.manifest.displayName || extension.identifier.id
359
362
  ))));
@@ -650,17 +653,10 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
650
653
  if (( this._sessionsWindowAllowedExtensions.has(extension.identifier.id.toLowerCase()))) {
651
654
  return false;
652
655
  }
653
- if (extension.isBuiltin) {
654
- if (extension.identifier.id.toLowerCase() === this._chatExtensionId) {
655
- return false;
656
- }
657
- const contributes = extension.manifest.contributes;
658
- if (contributes?.debuggers || contributes?.views || contributes?.viewsContainers || contributes?.walkthroughs) {
659
- return true;
660
- }
656
+ if (extension.isBuiltin && extension.identifier.id.toLowerCase() === this._chatExtensionId) {
661
657
  return false;
662
658
  }
663
- return !this.extensionManifestPropertiesService.canExecuteOnSessionsWindow(extension.manifest);
659
+ return !this.extensionManifestPropertiesService.canExecuteOnSessionsWindow(extension.manifest, extension.isBuiltin);
664
660
  }
665
661
  _enableExtension(identifier) {
666
662
  this._removeFromWorkspaceDisabledExtensions(identifier);
@@ -96,17 +96,17 @@ let ExtensionFeaturesManagementService = class ExtensionFeaturesManagementServic
96
96
  if (feature.access.requireUserConsent) {
97
97
  const extensionDescription = this.extensionService.extensions.find(e => ExtensionIdentifier.equals(e.identifier, extension));
98
98
  const confirmationResult = await this.dialogService.confirm({
99
- title: ( localize(21918, "Access '{0}' Feature", feature.label)),
99
+ title: ( localize(24493, "Access '{0}' Feature", feature.label)),
100
100
  message: ( localize(
101
- 21919,
101
+ 24494,
102
102
  "'{0}' extension would like to access the '{1}' feature.",
103
103
  extensionDescription?.displayName ?? extension._lower,
104
104
  feature.label
105
105
  )),
106
106
  detail: justification ?? feature.description,
107
107
  custom: true,
108
- primaryButton: ( localize(21920, "Allow")),
109
- cancelButton: ( localize(21921, "Don't Allow"))
108
+ primaryButton: ( localize(24495, "Allow")),
109
+ cancelButton: ( localize(24496, "Don't Allow"))
110
110
  });
111
111
  enabled = confirmationResult.confirmed;
112
112
  }
@@ -26,7 +26,7 @@ let ExtensionManagementServerService = class ExtensionManagementServerService {
26
26
  id: "remote",
27
27
  extensionManagementService,
28
28
  get label() {
29
- return labelService.getHostLabel(Schemas.vscodeRemote, remoteAgentConnection.remoteAuthority) || ( localize(21922, "Remote"));
29
+ return labelService.getHostLabel(Schemas.vscodeRemote, remoteAgentConnection.remoteAuthority) || ( localize(24497, "Remote"));
30
30
  }
31
31
  };
32
32
  }
@@ -35,7 +35,7 @@ let ExtensionManagementServerService = class ExtensionManagementServerService {
35
35
  this.webExtensionManagementServer = {
36
36
  id: "web",
37
37
  extensionManagementService,
38
- label: ( localize(21923, "Browser"))
38
+ label: ( localize(24498, "Browser"))
39
39
  };
40
40
  }
41
41
  }
@@ -287,7 +287,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
287
287
  getDependentsErrorMessage(extension, dependents) {
288
288
  if (dependents.length === 1) {
289
289
  return localize(
290
- 21924,
290
+ 24499,
291
291
  "Cannot uninstall extension '{0}'. Extension '{1}' depends on this.",
292
292
  extension.manifest.displayName || extension.manifest.name,
293
293
  dependents[0].manifest.displayName || dependents[0].manifest.name
@@ -295,7 +295,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
295
295
  }
296
296
  if (dependents.length === 2) {
297
297
  return localize(
298
- 21925,
298
+ 24500,
299
299
  "Cannot uninstall extension '{0}'. Extensions '{1}' and '{2}' depend on this.",
300
300
  extension.manifest.displayName || extension.manifest.name,
301
301
  dependents[0].manifest.displayName || dependents[0].manifest.name,
@@ -303,7 +303,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
303
303
  );
304
304
  }
305
305
  return localize(
306
- 21926,
306
+ 24501,
307
307
  "Cannot uninstall extension '{0}'. Extensions '{1}', '{2}' and others depend on this.",
308
308
  extension.manifest.displayName || extension.manifest.name,
309
309
  dependents[0].manifest.displayName || dependents[0].manifest.name,
@@ -417,7 +417,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
417
417
  }
418
418
  const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
419
419
  if (!manifest) {
420
- return ( new MarkdownString()).appendText(( localize(21927, "Manifest is not found")));
420
+ return ( new MarkdownString()).appendText(( localize(24502, "Manifest is not found")));
421
421
  }
422
422
  if (this.extensionManagementServerService.remoteExtensionManagementServer && (await this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.canInstall(gallery)) === true && this.extensionManifestPropertiesService.canExecuteOnWorkspace(manifest)) {
423
423
  return true;
@@ -426,7 +426,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
426
426
  return true;
427
427
  }
428
428
  return ( new MarkdownString()).appendText(( localize(
429
- 21928,
429
+ 24503,
430
430
  "Cannot install the '{0}' extension because it is not available in this setup.",
431
431
  gallery.displayName || gallery.name
432
432
  )));
@@ -442,7 +442,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
442
442
  return true;
443
443
  }
444
444
  return ( new MarkdownString()).appendText(( localize(
445
- 21928,
445
+ 24503,
446
446
  "Cannot install the '{0}' extension because it is not available in this setup.",
447
447
  extension.manifest.displayName ?? extension.identifier.id
448
448
  )));
@@ -479,7 +479,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
479
479
  const manifest = await this.extensionGalleryService.getManifest(extension, CancellationToken.None);
480
480
  if (!manifest) {
481
481
  throw ( new Error(( localize(
482
- 21929,
482
+ 24504,
483
483
  "Installing Extension {0} failed: Manifest is not found.",
484
484
  extension.displayName || extension.name
485
485
  ))));
@@ -505,7 +505,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
505
505
  const manifest = await this.extensionGalleryService.getManifest(extension, CancellationToken.None);
506
506
  if (!manifest) {
507
507
  throw ( new Error(( localize(
508
- 21929,
508
+ 24504,
509
509
  "Installing Extension {0} failed: Manifest is not found.",
510
510
  extension.displayName || extension.name
511
511
  ))));
@@ -554,7 +554,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
554
554
  const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
555
555
  if (!manifest) {
556
556
  throw ( new Error(( localize(
557
- 21929,
557
+ 24504,
558
558
  "Installing Extension {0} failed: Manifest is not found.",
559
559
  gallery.displayName || gallery.name
560
560
  ))));
@@ -669,7 +669,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
669
669
  const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
670
670
  if (!manifest) {
671
671
  return Promise.reject(( localize(
672
- 21929,
672
+ 24504,
673
673
  "Installing Extension {0} failed: Manifest is not found.",
674
674
  gallery.displayName || gallery.name
675
675
  )));
@@ -725,7 +725,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
725
725
  for (const server of servers) {
726
726
  if (!installableServers.includes(server)) {
727
727
  const error = ( new Error(( localize(
728
- 21930,
728
+ 24505,
729
729
  "Cannot install the '{0}' extension because it is not available in the '{1}' setup.",
730
730
  gallery.displayName || gallery.name,
731
731
  server.label
@@ -750,7 +750,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
750
750
  }
751
751
  if (!servers.length) {
752
752
  const error = ( new Error(( localize(
753
- 21928,
753
+ 24503,
754
754
  "Cannot install the '{0}' extension because it is not available in this setup.",
755
755
  gallery.displayName || gallery.name
756
756
  ))));
@@ -790,20 +790,20 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
790
790
  result
791
791
  } = await this.dialogService.prompt({
792
792
  type: Severity.Info,
793
- message: extensions.length === 1 ? ( localize(21931, "Install Extension")) : ( localize(21932, "Install Extensions")),
793
+ message: extensions.length === 1 ? ( localize(24506, "Install Extension")) : ( localize(24507, "Install Extensions")),
794
794
  detail: extensions.length === 1 ? ( localize(
795
- 21933,
795
+ 24508,
796
796
  "Would you like to install and synchronize '{0}' extension across your devices?",
797
797
  extensions[0].displayName
798
798
  )) : ( localize(
799
- 21934,
799
+ 24509,
800
800
  "Would you like to install and synchronize extensions across your devices?"
801
801
  )),
802
802
  buttons: [{
803
- label: ( localize(21935, "&&Install")),
803
+ label: ( localize(24510, "&&Install")),
804
804
  run: () => false
805
805
  }, {
806
- label: ( localize(21936, "Install (Do &&not sync)")),
806
+ label: ( localize(24511, "Install (Do &&not sync)")),
807
807
  run: () => true
808
808
  }],
809
809
  cancelButton: {
@@ -855,7 +855,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
855
855
  const manifest = await this.extensionGalleryService.getManifest(extension, CancellationToken.None);
856
856
  if (!manifest) {
857
857
  throw ( new Error(( localize(
858
- 21929,
858
+ 24504,
859
859
  "Installing Extension {0} failed: Manifest is not found.",
860
860
  extension.displayName || extension.name
861
861
  ))));
@@ -896,7 +896,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
896
896
  const unverfiiedPublishers = allPublishers.filter(p => !p.publisherDomain?.verified);
897
897
  const verifiedPublishers = allPublishers.filter(p => p.publisherDomain?.verified);
898
898
  const installButton = {
899
- label: allPublishers.length > 1 ? ( localize(21937, "Trust Publishers & &&Install")) : ( localize(21938, "Trust Publisher & &&Install")),
899
+ label: allPublishers.length > 1 ? ( localize(24512, "Trust Publishers & &&Install")) : ( localize(24513, "Trust Publisher & &&Install")),
900
900
  run: () => {
901
901
  this.telemetryService.publicLog2("extensions:trustPublisher", {
902
902
  action: "trust",
@@ -909,7 +909,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
909
909
  }
910
910
  };
911
911
  const learnMoreButton = {
912
- label: ( localize(21939, "&&Learn More")),
912
+ label: ( localize(24514, "&&Learn More")),
913
913
  run: () => {
914
914
  this.telemetryService.publicLog2("extensions:trustPublisher", {
915
915
  action: "learn",
@@ -931,16 +931,16 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
931
931
  };
932
932
  const unverifiedLink = "https://aka.ms/vscode-verify-publisher";
933
933
  const title = allPublishers.length === 1 ? ( localize(
934
- 21940,
934
+ 24515,
935
935
  "Do you trust the publisher \"{0}\"?",
936
936
  allPublishers[0].publisherDisplayName
937
937
  )) : allPublishers.length === 2 ? ( localize(
938
- 21941,
938
+ 24516,
939
939
  "Do you trust publishers \"{0}\" and \"{1}\"?",
940
940
  allPublishers[0].publisherDisplayName,
941
941
  allPublishers[1].publisherDisplayName
942
942
  )) : ( localize(
943
- 21942,
943
+ 24517,
944
944
  "Do you trust the publisher \"{0}\" and {1} others?",
945
945
  allPublishers[0].publisherDisplayName,
946
946
  allPublishers.length - 1
@@ -954,7 +954,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
954
954
  const manifest = untrustedExtensionManifests[0];
955
955
  if (otherUntrustedPublishers.length) {
956
956
  customMessage.appendMarkdown(( localize(
957
- 21943,
957
+ 24518,
958
958
  "The extension {0} is published by {1}.",
959
959
  `[${extension.displayName}](${extension.detailsLink})`,
960
960
  getPublisherLink(extension)
@@ -967,14 +967,14 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
967
967
  ).toString());
968
968
  if (otherUntrustedPublishers.length === 1) {
969
969
  customMessage.appendMarkdown(( localize(
970
- 21944,
970
+ 24519,
971
971
  "Installing this extension will also install [extensions]({0}) published by {1}.",
972
972
  commandUri,
973
973
  getPublisherLink(otherUntrustedPublishers[0])
974
974
  )));
975
975
  } else {
976
976
  customMessage.appendMarkdown(( localize(
977
- 21945,
977
+ 24520,
978
978
  "Installing this extension will also install [extensions]({0}) published by {1} and {2}.",
979
979
  commandUri,
980
980
  otherUntrustedPublishers.slice(0, otherUntrustedPublishers.length - 1).map(p => getPublisherLink(p)).join(", "),
@@ -983,12 +983,12 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
983
983
  }
984
984
  customMessage.appendMarkdown("&nbsp;");
985
985
  customMessage.appendMarkdown(( localize(
986
- 21946,
986
+ 24521,
987
987
  "This is the first time you're installing extensions from these publishers."
988
988
  )));
989
989
  } else {
990
990
  customMessage.appendMarkdown(( localize(
991
- 21947,
991
+ 24522,
992
992
  "The extension {0} is published by {1}. This is the first extension you're installing from this publisher.",
993
993
  `[${extension.displayName}](${extension.detailsLink})`,
994
994
  getPublisherLink(extension)
@@ -996,7 +996,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
996
996
  }
997
997
  } else {
998
998
  customMessage.appendMarkdown(( localize(
999
- 21948,
999
+ 24523,
1000
1000
  "This is the first time you're installing extensions from publishers {0} and {1}.",
1001
1001
  getPublisherLink(allPublishers[0]),
1002
1002
  getPublisherLink(allPublishers[allPublishers.length - 1])
@@ -1006,7 +1006,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1006
1006
  for (const publisher of verifiedPublishers) {
1007
1007
  customMessage.appendText("\n");
1008
1008
  const publisherVerifiedMessage = ( localize(
1009
- 21949,
1009
+ 24524,
1010
1010
  "{0} has verified ownership of {1}.",
1011
1011
  getPublisherLink(publisher),
1012
1012
  `[$(link-external) ${( URI.parse(publisher.publisherDomain.link)).authority}](${publisher.publisherDomain.link})`
@@ -1017,14 +1017,14 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1017
1017
  customMessage.appendText("\n");
1018
1018
  if (unverfiiedPublishers.length === 1) {
1019
1019
  customMessage.appendMarkdown(`$(${Codicon.unverified.id})&nbsp;${( localize(
1020
- 21950,
1020
+ 24525,
1021
1021
  "{0} is [**not** verified]({1}).",
1022
1022
  getPublisherLink(unverfiiedPublishers[0]),
1023
1023
  unverifiedLink
1024
1024
  ))}`);
1025
1025
  } else {
1026
1026
  customMessage.appendMarkdown(`$(${Codicon.unverified.id})&nbsp;${( localize(
1027
- 21951,
1027
+ 24526,
1028
1028
  "{0} and {1} are [**not** verified]({2}).",
1029
1029
  unverfiiedPublishers.slice(0, unverfiiedPublishers.length - 1).map(p => getPublisherLink(p)).join(", "),
1030
1030
  getPublisherLink(unverfiiedPublishers[unverfiiedPublishers.length - 1]),
@@ -1034,18 +1034,18 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1034
1034
  }
1035
1035
  } else {
1036
1036
  customMessage.appendText("\n");
1037
- customMessage.appendMarkdown(`$(${Codicon.unverified.id})&nbsp;${( localize(21952, "All publishers are [**not** verified]({0}).", unverifiedLink))}`);
1037
+ customMessage.appendMarkdown(`$(${Codicon.unverified.id})&nbsp;${( localize(24527, "All publishers are [**not** verified]({0}).", unverifiedLink))}`);
1038
1038
  }
1039
1039
  customMessage.appendText("\n");
1040
1040
  if (allPublishers.length > 1) {
1041
1041
  customMessage.appendMarkdown(( localize(
1042
- 21953,
1042
+ 24528,
1043
1043
  "{0} has no control over the behavior of third-party extensions, including how they manage your personal data. Proceed only if you trust the publishers.",
1044
1044
  this.productService.nameLong
1045
1045
  )));
1046
1046
  } else {
1047
1047
  customMessage.appendMarkdown(( localize(
1048
- 21954,
1048
+ 24529,
1049
1049
  "{0} has no control over the behavior of third-party extensions, including how they manage your personal data. Proceed only if you trust the publisher.",
1050
1050
  this.productService.nameLong
1051
1051
  )));
@@ -1136,21 +1136,21 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1136
1136
  if (requireTrust || this.extensionManifestPropertiesService.getExtensionUntrustedWorkspaceSupportType(manifest) === false) {
1137
1137
  const buttons = [];
1138
1138
  buttons.push({
1139
- label: ( localize(21955, "Trust Workspace & Install")),
1139
+ label: ( localize(24530, "Trust Workspace & Install")),
1140
1140
  type: "ContinueWithTrust"
1141
1141
  });
1142
1142
  if (!requireTrust) {
1143
1143
  buttons.push({
1144
- label: ( localize(21956, "Install")),
1144
+ label: ( localize(24531, "Install")),
1145
1145
  type: "ContinueWithoutTrust"
1146
1146
  });
1147
1147
  }
1148
1148
  buttons.push({
1149
- label: ( localize(21957, "Learn More")),
1149
+ label: ( localize(24532, "Learn More")),
1150
1150
  type: "Manage"
1151
1151
  });
1152
1152
  const trustState = await this.workspaceTrustRequestService.requestWorkspaceTrust({
1153
- message: ( localize(21958, "Enabling this extension requires a trusted workspace.")),
1153
+ message: ( localize(24533, "Enabling this extension requires a trusted workspace.")),
1154
1154
  buttons
1155
1155
  });
1156
1156
  if (trustState === undefined) {
@@ -1176,7 +1176,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1176
1176
  throw ( new ExtensionManagementError("Not supported in Web", ExtensionManagementErrorCode.Unsupported));
1177
1177
  }
1178
1178
  }
1179
- const productName = ( localize(21959, "{0} for the Web", this.productService.nameLong));
1179
+ const productName = ( localize(24534, "{0} for the Web", this.productService.nameLong));
1180
1180
  const virtualWorkspaceSupport = this.extensionManifestPropertiesService.getExtensionVirtualWorkspaceSupportType(manifest);
1181
1181
  const virtualWorkspaceSupportReason = getWorkspaceSupportTypeMessage(manifest.capabilities?.virtualWorkspaces);
1182
1182
  const hasLimitedSupport = virtualWorkspaceSupport === "limited" || !!virtualWorkspaceSupportReason;
@@ -1184,7 +1184,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1184
1184
  return;
1185
1185
  }
1186
1186
  const limitedSupportMessage = ( localize(
1187
- 21960,
1187
+ 24535,
1188
1188
  "'{0}' has limited functionality in {1}.",
1189
1189
  extension.displayName || extension.identifier.id,
1190
1190
  productName
@@ -1193,18 +1193,18 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1193
1193
  let buttons = [];
1194
1194
  let detail;
1195
1195
  const installAnywayButton = {
1196
- label: ( localize(21961, "&&Install Anyway")),
1196
+ label: ( localize(24536, "&&Install Anyway")),
1197
1197
  run: () => {}
1198
1198
  };
1199
1199
  const showExtensionsButton = {
1200
- label: ( localize(21962, "&&Show Extensions")),
1200
+ label: ( localize(24537, "&&Show Extensions")),
1201
1201
  run: () => this.instantiationService.invokeFunction(
1202
1202
  accessor => accessor.get(ICommandService).executeCommand("extension.open", extension.identifier.id, "extensionPack")
1203
1203
  )
1204
1204
  };
1205
1205
  if (nonWebExtensions.length && hasLimitedSupport) {
1206
1206
  message = limitedSupportMessage;
1207
- detail = `${virtualWorkspaceSupportReason ? `${virtualWorkspaceSupportReason}\n` : ""}${( localize(21963, "Contains extensions which are not supported."))}`;
1207
+ detail = `${virtualWorkspaceSupportReason ? `${virtualWorkspaceSupportReason}\n` : ""}${( localize(24538, "Contains extensions which are not supported."))}`;
1208
1208
  buttons = [installAnywayButton, showExtensionsButton];
1209
1209
  } else if (hasLimitedSupport) {
1210
1210
  message = limitedSupportMessage;
@@ -1212,7 +1212,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1212
1212
  buttons = [installAnywayButton];
1213
1213
  } else {
1214
1214
  message = ( localize(
1215
- 21964,
1215
+ 24539,
1216
1216
  "'{0}' contains extensions which are not supported in {1}.",
1217
1217
  extension.displayName || extension.identifier.id,
1218
1218
  productName
@@ -1524,7 +1524,7 @@ let WorkspaceExtensionsManagementService = class WorkspaceExtensionsManagementSe
1524
1524
  this.uriIdentityService.extUri.joinPath(extension.location, extension.manifest.main)
1525
1525
  ))) {
1526
1526
  isValid = false;
1527
- validations.push([Severity.Error, ( localize(21965, "Cannot activate because {0} not found", extension.manifest.main))]);
1527
+ validations.push([Severity.Error, ( localize(24540, "Cannot activate because {0} not found", extension.manifest.main))]);
1528
1528
  }
1529
1529
  }
1530
1530
  return {