@codingame/monaco-vscode-extension-gallery-service-override 31.0.1 → 32.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": "31.0.1",
3
+ "version": "32.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": "31.0.1"
18
+ "@codingame/monaco-vscode-api": "32.0.1"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -36,7 +36,7 @@ let CommontExtensionManagementService = class CommontExtensionManagementService
36
36
  });
37
37
  if (allowedToInstall !== true) {
38
38
  return (new MarkdownString(localize(
39
- 1847,
39
+ 1859,
40
40
  "This extension cannot be installed because {0}",
41
41
  allowedToInstall.value
42
42
  )));
@@ -44,12 +44,12 @@ let CommontExtensionManagementService = class CommontExtensionManagementService
44
44
  if (!(await this.isExtensionPlatformCompatible(extension))) {
45
45
  const learnLink = isWeb ? "https://aka.ms/vscode-web-extensions-guide" : "https://aka.ms/vscode-platform-specific-extensions";
46
46
  return (new MarkdownString(`${( localize(
47
- 1848,
47
+ 1860,
48
48
  "The '{0}' extension is not available in {1} for the {2} platform.",
49
49
  extension.displayName ?? extension.identifier.id,
50
50
  this.productService.nameLong,
51
51
  TargetPlatformToString(await this.getTargetPlatform())
52
- ))} [${( localize(1849, "Learn Why"))}](${learnLink})`));
52
+ ))} [${( localize(1861, "Learn Why"))}](${learnLink})`));
53
53
  }
54
54
  return true;
55
55
  }
@@ -146,7 +146,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
146
146
  }
147
147
  async installGalleryExtensions(extensions) {
148
148
  if (!this.galleryService.isEnabled()) {
149
- throw ( new ExtensionManagementError(( localize(1850, "Marketplace is not enabled")), ExtensionManagementErrorCode.NotAllowed));
149
+ throw ( new ExtensionManagementError(( localize(1862, "Marketplace is not enabled")), ExtensionManagementErrorCode.NotAllowed));
150
150
  }
151
151
  const results = [];
152
152
  const installableExtensions = [];
@@ -302,21 +302,21 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
302
302
  ( options.profileLocation.toString())
303
303
  );
304
304
  existingInstallingExtension.waitingTasks.push(root);
305
- alreadyRequestedInstallations.push(
306
- Event.toPromise(Event.filter(this.onDidInstallExtensions, results => ( results.some(result => areSameExtensions(result.identifier, identifier))))).then(results => {
307
- this.logService.info(
308
- "Finished waiting for already requested installing extension",
309
- identifier.id,
310
- root.identifier.id,
311
- ( options.profileLocation.toString())
312
- );
313
- const result = results.find(result => areSameExtensions(result.identifier, identifier));
314
- if (!result?.local) {
315
- throw ( new Error(`Extension ${identifier.id} is not installed`));
316
- }
317
- return result.local;
318
- })
319
- );
305
+ const waitForInstallation = Event.toPromise(Event.filter(this.onDidInstallExtensions, results => ( results.some(result => areSameExtensions(result.identifier, identifier))))).then(results => {
306
+ this.logService.info(
307
+ "Finished waiting for already requested installing extension",
308
+ identifier.id,
309
+ root.identifier.id,
310
+ ( options.profileLocation.toString())
311
+ );
312
+ const result = results.find(result => areSameExtensions(result.identifier, identifier));
313
+ if (!result?.local) {
314
+ throw ( new Error(`Extension ${identifier.id} is not installed`));
315
+ }
316
+ return result.local;
317
+ });
318
+ alreadyRequestedInstallations.push(waitForInstallation);
319
+ waitForInstallation.catch(() => {});
320
320
  }
321
321
  return;
322
322
  }
@@ -371,12 +371,37 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
371
371
  getInstallExtensionTaskKey(extension, installExtensionTaskOptions.profileLocation)
372
372
  ) : undefined;
373
373
  if (existingInstallExtensionTask) {
374
+ const existingTask = existingInstallExtensionTask.task;
374
375
  this.logService.info(
375
376
  "Extension is already requested to install",
376
- existingInstallExtensionTask.task.identifier.id,
377
+ existingTask.identifier.id,
377
378
  ( installExtensionTaskOptions.profileLocation.toString())
378
379
  );
379
- alreadyRequestedInstallations.push(existingInstallExtensionTask.task.waitUntilTaskIsFinished());
380
+ const resultKey = `${existingTask.identifier.id.toLowerCase()}-${( installExtensionTaskOptions.profileLocation.toString())}`;
381
+ const waitForInstallation = existingTask.waitUntilTaskIsFinished().then(local => {
382
+ installExtensionResultsMap.set(resultKey, {
383
+ local,
384
+ identifier: existingTask.identifier,
385
+ operation: existingTask.operation,
386
+ source: existingTask.source,
387
+ context: installExtensionTaskOptions.context,
388
+ profileLocation: installExtensionTaskOptions.profileLocation,
389
+ applicationScoped: local.isApplicationScoped
390
+ });
391
+ return local;
392
+ }, error => {
393
+ installExtensionResultsMap.set(resultKey, {
394
+ error: toExtensionManagementError(error),
395
+ identifier: existingTask.identifier,
396
+ operation: existingTask.operation,
397
+ source: existingTask.source,
398
+ context: installExtensionTaskOptions.context,
399
+ profileLocation: installExtensionTaskOptions.profileLocation
400
+ });
401
+ throw error;
402
+ });
403
+ alreadyRequestedInstallations.push(waitForInstallation);
404
+ waitForInstallation.catch(() => {});
380
405
  } else {
381
406
  createInstallExtensionTask(manifest, extension, installExtensionTaskOptions, undefined);
382
407
  }
@@ -808,7 +833,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
808
833
  const extensionsControlManifest = await this.getExtensionsControlManifest();
809
834
  if (isMalicious(extension.identifier, extensionsControlManifest.malicious)) {
810
835
  throw ( new ExtensionManagementError(( localize(
811
- 1851,
836
+ 1863,
812
837
  "Can't install '{0}' extension since it was reported to be problematic.",
813
838
  extension.identifier.id
814
839
  )), ExtensionManagementErrorCode.Malicious));
@@ -828,7 +853,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
828
853
  }, CancellationToken.None))[0];
829
854
  if (!compatibleExtension) {
830
855
  throw ( new ExtensionManagementError(( localize(
831
- 1852,
856
+ 1864,
832
857
  "Can't install '{0}' extension since it was deprecated and the replacement extension '{1}' can't be found.",
833
858
  extension.identifier.id,
834
859
  deprecationInfo.extension.id
@@ -838,7 +863,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
838
863
  if ((await this.canInstall(extension)) !== true) {
839
864
  const targetPlatform = await this.getTargetPlatform();
840
865
  throw ( new ExtensionManagementError(( localize(
841
- 1848,
866
+ 1860,
842
867
  "The '{0}' extension is not available in {1} for the {2} platform.",
843
868
  extension.identifier.id,
844
869
  this.productService.nameLong,
@@ -853,7 +878,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
853
878
  incompatibleApiProposalsMessages
854
879
  )) {
855
880
  throw ( new ExtensionManagementError(( localize(
856
- 1853,
881
+ 1865,
857
882
  "Can't install '{0}' extension. {1}",
858
883
  extension.displayName ?? extension.identifier.id,
859
884
  incompatibleApiProposalsMessages[0]
@@ -861,13 +886,13 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
861
886
  }
862
887
  if (!installPreRelease && extension.hasPreReleaseVersion && extension.properties.isPreReleaseVersion && (await this.galleryService.getExtensions([extension.identifier], CancellationToken.None))[0]) {
863
888
  throw ( new ExtensionManagementError(( localize(
864
- 1854,
889
+ 1866,
865
890
  "Can't install release version of '{0}' extension because it has no release version.",
866
891
  extension.displayName ?? extension.identifier.id
867
892
  )), ExtensionManagementErrorCode.ReleaseVersionNotFound));
868
893
  }
869
894
  throw ( new ExtensionManagementError(( localize(
870
- 1855,
895
+ 1867,
871
896
  "Can't install '{0}' extension because it is not compatible with the current version of {1} (version {2}).",
872
897
  extension.identifier.id,
873
898
  this.productService.nameLong,
@@ -1187,7 +1212,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1187
1212
  if (extensionToUninstall === dependingExtension) {
1188
1213
  if (dependents.length === 1) {
1189
1214
  return localize(
1190
- 1856,
1215
+ 1868,
1191
1216
  "Cannot uninstall '{0}' extension. '{1}' extension depends on this.",
1192
1217
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1193
1218
  dependents[0].manifest.displayName || dependents[0].manifest.name
@@ -1195,7 +1220,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1195
1220
  }
1196
1221
  if (dependents.length === 2) {
1197
1222
  return localize(
1198
- 1857,
1223
+ 1869,
1199
1224
  "Cannot uninstall '{0}' extension. '{1}' and '{2}' extensions depend on this.",
1200
1225
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1201
1226
  dependents[0].manifest.displayName || dependents[0].manifest.name,
@@ -1203,7 +1228,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1203
1228
  );
1204
1229
  }
1205
1230
  return localize(
1206
- 1858,
1231
+ 1870,
1207
1232
  "Cannot uninstall '{0}' extension. '{1}', '{2}' and other extension depend on this.",
1208
1233
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1209
1234
  dependents[0].manifest.displayName || dependents[0].manifest.name,
@@ -1212,7 +1237,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1212
1237
  }
1213
1238
  if (dependents.length === 1) {
1214
1239
  return localize(
1215
- 1859,
1240
+ 1871,
1216
1241
  "Cannot uninstall '{0}' extension . It includes uninstalling '{1}' extension and '{2}' extension depends on this.",
1217
1242
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1218
1243
  dependingExtension.manifest.displayName || dependingExtension.manifest.name,
@@ -1221,7 +1246,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1221
1246
  }
1222
1247
  if (dependents.length === 2) {
1223
1248
  return localize(
1224
- 1860,
1249
+ 1872,
1225
1250
  "Cannot uninstall '{0}' extension. It includes uninstalling '{1}' extension and '{2}' and '{3}' extensions depend on this.",
1226
1251
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1227
1252
  dependingExtension.manifest.displayName || dependingExtension.manifest.name,
@@ -1230,7 +1255,7 @@ let AbstractExtensionManagementService = class AbstractExtensionManagementServic
1230
1255
  );
1231
1256
  }
1232
1257
  return localize(
1233
- 1861,
1258
+ 1873,
1234
1259
  "Cannot uninstall '{0}' extension. It includes uninstalling '{1}' extension and '{2}', '{3}' and other extensions depend on this.",
1235
1260
  extensionToUninstall.manifest.displayName || extensionToUninstall.manifest.name,
1236
1261
  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(1862, "it is not in the [allowed list]({0})", settingsCommandLink))));
80
+ const extensionReason = ( new MarkdownString(( localize(1874, "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
- 1863,
87
+ 1875,
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
- 1864,
110
+ 1876,
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
- 1865,
123
+ 1877,
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
- 1866,
131
+ 1878,
132
132
  "the pre-release versions from this publisher are not in the [allowed list]({1})",
133
133
  publisherKey,
134
134
  settingsCommandLink
@@ -8,6 +8,6 @@ import { RuntimeExtensionsInput } from '@codingame/monaco-vscode-api/vscode/vs/w
8
8
  import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
9
9
 
10
10
  ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
11
- EditorPaneDescriptor.create(RuntimeExtensionsEditor, RuntimeExtensionsEditor.ID, ( localize(9250, "Running Extensions"))),
11
+ EditorPaneDescriptor.create(RuntimeExtensionsEditor, RuntimeExtensionsEditor.ID, ( localize(9601, "Running Extensions"))),
12
12
  [( new SyncDescriptor(RuntimeExtensionsInput))]
13
13
  );
@@ -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(9632, "Report Issue"));
16
+ this._label = ( localize(9983, "Report Issue"));
17
17
  }
18
18
  constructor(extension, issueService) {
19
19
  super(
@@ -47,6 +47,7 @@ export declare class ExtensionEnablementService extends Disposable implements IW
47
47
  private readonly workspaceTrustManagementService;
48
48
  private readonly workspaceTrustRequestService;
49
49
  private readonly extensionManifestPropertiesService;
50
+ private readonly chatEntitlementService;
50
51
  private readonly logService;
51
52
  readonly _serviceBrand: undefined;
52
53
  private readonly _onEnablementChanged;
@@ -58,7 +59,9 @@ export declare class ExtensionEnablementService extends Disposable implements IW
58
59
  private readonly _completionsExtensionId;
59
60
  private readonly _chatExtensionId;
60
61
  private _extensionUnificationEnabled;
62
+ private readonly _sessionsWindowAllowedExtensions;
61
63
  constructor(storageService: IStorageService, globalExtensionEnablementService: IGlobalExtensionEnablementService, contextService: IWorkspaceContextService, environmentService: IWorkbenchEnvironmentService, extensionManagementService: IExtensionManagementService, configurationService: IConfigurationService, extensionManagementServerService: IExtensionManagementServerService, userDataSyncEnablementService: IUserDataSyncEnablementService, userDataSyncAccountService: IUserDataSyncAccountService, lifecycleService: ILifecycleService, notificationService: INotificationService, hostService: IHostService, extensionBisectService: IExtensionBisectService, allowedExtensionsService: IAllowedExtensionsService, workspaceTrustManagementService: IWorkspaceTrustManagementService, workspaceTrustRequestService: IWorkspaceTrustRequestService, extensionManifestPropertiesService: IExtensionManifestPropertiesService, chatEntitlementService: IChatEntitlementService, instantiationService: IInstantiationService, logService: ILogService, productService: IProductService);
64
+ private ensureChatExtensionInitialDisabledState;
62
65
  private get hasWorkspace();
63
66
  private get allUserExtensionsDisabled();
64
67
  getEnablementState(extension: IExtension): EnablementState;
@@ -88,6 +91,7 @@ export declare class ExtensionEnablementService extends Disposable implements IW
88
91
  private _getUserEnablementState;
89
92
  private _isDisabledGlobally;
90
93
  private _isDisabledByUnification;
94
+ private _isDisabledBySessionsWindow;
91
95
  private _enableExtension;
92
96
  private _disableExtension;
93
97
  private _enableExtensionInWorkspace;
@@ -82,6 +82,7 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
82
82
  this.workspaceTrustManagementService = workspaceTrustManagementService;
83
83
  this.workspaceTrustRequestService = workspaceTrustRequestService;
84
84
  this.extensionManifestPropertiesService = extensionManifestPropertiesService;
85
+ this.chatEntitlementService = chatEntitlementService;
85
86
  this.logService = logService;
86
87
  this._onEnablementChanged = this._register(( new Emitter()));
87
88
  this.onEnablementChanged = this._onEnablementChanged.event;
@@ -123,6 +124,7 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
123
124
  );
124
125
  this._completionsExtensionId = productService.defaultChatAgent?.extensionId.toLowerCase();
125
126
  this._chatExtensionId = productService.defaultChatAgent?.chatExtensionId.toLowerCase();
127
+ this._sessionsWindowAllowedExtensions = ( new Set(( (productService.sessionsWindowAllowedExtensions ?? []).map(id => id.toLowerCase()))));
126
128
  const unificationExtensions = [this._completionsExtensionId, this._chatExtensionId].filter(id => !!id);
127
129
  if (isWeb && this.environmentService.remoteAuthority === undefined) {
128
130
  this._extensionUnificationEnabled = false;
@@ -142,8 +144,8 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
142
144
  }));
143
145
  if (this.allUserExtensionsDisabled) {
144
146
  this.lifecycleService.when(LifecyclePhase.Eventually).then(() => {
145
- this.notificationService.prompt(Severity.Info, ( localize(16218, "All installed extensions are temporarily disabled.")), [{
146
- label: ( localize(16219, "Reload and Enable Extensions")),
147
+ this.notificationService.prompt(Severity.Info, ( localize(16551, "All installed extensions are temporarily disabled.")), [{
148
+ label: ( localize(16552, "Reload and Enable Extensions")),
147
149
  run: () => hostService.reload({
148
150
  disableExtensions: false
149
151
  })
@@ -153,45 +155,50 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
153
155
  });
154
156
  });
155
157
  }
156
- if (this._chatExtensionId && !this.environmentService.isSessionsWindow && !this.environmentService.skipBuiltinExtensions?.some(id => id.toLowerCase() === this._chatExtensionId)) {
157
- const builtinChatExtensionEnablementMigrationKey = "builtinChatExtensionEnablementMigration";
158
- const builtinChatExtensionEnablementMigration = this.storageService.getBoolean(builtinChatExtensionEnablementMigrationKey, StorageScope.PROFILE) === true;
159
- if (!builtinChatExtensionEnablementMigration) {
160
- this.logService.debug("Running builtin chat extension enablement migration");
161
- this.storageService.store(
162
- builtinChatExtensionEnablementMigrationKey,
163
- true,
164
- StorageScope.PROFILE,
165
- StorageTarget.MACHINE
166
- );
167
- const context = chatEntitlementService.context;
168
- if (context) {
169
- if (context.value.state.completed) {
170
- if (this._isDisabledGlobally({
171
- id: this._chatExtensionId
172
- })) {
173
- if (this.configurationService.getValue("chat.disableAIFeatures") !== true) {
174
- this.logService.debug("Disabling AI features because builtin chat extension is disabled");
175
- this.configurationService.updateValue("chat.disableAIFeatures", true).catch(err => this.logService.error(
176
- "Failed to update chat.disableAIFeatures setting during builtin chat extension enablement migration",
177
- err
178
- ));
179
- }
180
- }
181
- } else {
182
- try {
183
- this.logService.debug("Disabling builtin chat extension as chat set up is not completed");
184
- this._disableExtension({
185
- id: this._chatExtensionId
186
- });
187
- } catch (error) {
188
- this.logService.error(
189
- "Failed to disable builtin chat extension during enablement migration",
190
- error
191
- );
192
- }
158
+ this.ensureChatExtensionInitialDisabledState();
159
+ }
160
+ ensureChatExtensionInitialDisabledState() {
161
+ if (!this._chatExtensionId || this.environmentService.isSessionsWindow || this.environmentService.skipBuiltinExtensions?.some(id => id.toLowerCase() === this._chatExtensionId)) {
162
+ return;
163
+ }
164
+ const builtinChatExtensionEnablementMigrationKey = "builtinChatExtensionEnablementMigration";
165
+ const builtinChatExtensionEnablementMigration = this.storageService.getBoolean(builtinChatExtensionEnablementMigrationKey, StorageScope.PROFILE) === true;
166
+ if (builtinChatExtensionEnablementMigration) {
167
+ return;
168
+ }
169
+ this.logService.debug("Running builtin chat extension enablement migration");
170
+ this.storageService.store(
171
+ builtinChatExtensionEnablementMigrationKey,
172
+ true,
173
+ StorageScope.PROFILE,
174
+ StorageTarget.MACHINE
175
+ );
176
+ const context = this.chatEntitlementService.context;
177
+ if (context) {
178
+ if (context.value.state.completed) {
179
+ if (this._isDisabledGlobally({
180
+ id: this._chatExtensionId
181
+ })) {
182
+ if (this.configurationService.getValue("chat.disableAIFeatures") !== true) {
183
+ this.logService.debug("Disabling AI features because builtin chat extension is disabled");
184
+ this.configurationService.updateValue("chat.disableAIFeatures", true).catch(err => this.logService.error(
185
+ "Failed to update chat.disableAIFeatures setting during builtin chat extension enablement migration",
186
+ err
187
+ ));
193
188
  }
194
189
  }
190
+ } else {
191
+ try {
192
+ this.logService.debug("Disabling builtin chat extension as chat set up is not completed");
193
+ this._disableExtension({
194
+ id: this._chatExtensionId
195
+ });
196
+ } catch (error) {
197
+ this.logService.error(
198
+ "Failed to disable builtin chat extension during enablement migration",
199
+ error
200
+ );
201
+ }
195
202
  }
196
203
  }
197
204
  }
@@ -239,7 +246,7 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
239
246
  throwErrorIfCannotChangeEnablement(extension, donotCheckDependencies) {
240
247
  if (isLanguagePackExtension(extension.manifest)) {
241
248
  throw ( new Error(( localize(
242
- 16220,
249
+ 16553,
243
250
  "Cannot change enablement of {0} extension because it contributes language packs.",
244
251
  extension.manifest.displayName || extension.identifier.id
245
252
  ))));
@@ -248,14 +255,14 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
248
255
  a => a.id === this.userDataSyncAccountService.account.authenticationProviderId
249
256
  ))) {
250
257
  throw ( new Error(( localize(
251
- 16221,
258
+ 16554,
252
259
  "Cannot change enablement {0} extension because Settings Sync depends on it.",
253
260
  extension.manifest.displayName || extension.identifier.id
254
261
  ))));
255
262
  }
256
263
  if (this._isEnabledInEnv(extension)) {
257
264
  throw ( new Error(( localize(
258
- 16222,
265
+ 16555,
259
266
  "Cannot change enablement of {0} extension because it is enabled in environment",
260
267
  extension.manifest.displayName || extension.identifier.id
261
268
  ))));
@@ -266,37 +273,37 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
266
273
  switch (enablementStateOfExtension) {
267
274
  case EnablementState.DisabledByEnvironment:
268
275
  throw ( new Error(( localize(
269
- 16223,
276
+ 16556,
270
277
  "Cannot change enablement of {0} extension because it is disabled in environment",
271
278
  extension.manifest.displayName || extension.identifier.id
272
279
  ))));
273
280
  case EnablementState.DisabledByMalicious:
274
281
  throw ( new Error(( localize(
275
- 16224,
282
+ 16557,
276
283
  "Cannot change enablement of {0} extension because it is malicious",
277
284
  extension.manifest.displayName || extension.identifier.id
278
285
  ))));
279
286
  case EnablementState.DisabledByVirtualWorkspace:
280
287
  throw ( new Error(( localize(
281
- 16225,
288
+ 16558,
282
289
  "Cannot change enablement of {0} extension because it does not support virtual workspaces",
283
290
  extension.manifest.displayName || extension.identifier.id
284
291
  ))));
285
292
  case EnablementState.DisabledByExtensionKind:
286
293
  throw ( new Error(( localize(
287
- 16226,
294
+ 16559,
288
295
  "Cannot change enablement of {0} extension because of its extension kind",
289
296
  extension.manifest.displayName || extension.identifier.id
290
297
  ))));
291
298
  case EnablementState.DisabledByAllowlist:
292
299
  throw ( new Error(( localize(
293
- 16227,
300
+ 16560,
294
301
  "Cannot change enablement of {0} extension because it is disallowed",
295
302
  extension.manifest.displayName || extension.identifier.id
296
303
  ))));
297
304
  case EnablementState.DisabledByInvalidExtension:
298
305
  throw ( new Error(( localize(
299
- 16228,
306
+ 16561,
300
307
  "Cannot change enablement of {0} extension because of it is invalid",
301
308
  extension.manifest.displayName || extension.identifier.id
302
309
  ))));
@@ -309,7 +316,7 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
309
316
  continue;
310
317
  }
311
318
  throw ( new Error(( localize(
312
- 16229,
319
+ 16562,
313
320
  "Cannot enable '{0}' extension because it depends on '{1}' extension that cannot be enabled",
314
321
  extension.manifest.displayName || extension.identifier.id,
315
322
  dependency.manifest.displayName || dependency.identifier.id
@@ -319,11 +326,11 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
319
326
  }
320
327
  throwErrorIfCannotChangeWorkspaceEnablement(extension) {
321
328
  if (!this.hasWorkspace) {
322
- throw ( new Error(( localize(16230, "No workspace."))));
329
+ throw ( new Error(( localize(16563, "No workspace."))));
323
330
  }
324
331
  if (isAuthenticationProviderExtension(extension.manifest)) {
325
332
  throw ( new Error(( localize(
326
- 16231,
333
+ 16564,
327
334
  "Cannot change enablement of {0} extension in workspace because it contributes authentication providers",
328
335
  extension.manifest.displayName || extension.identifier.id
329
336
  ))));
@@ -452,6 +459,9 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
452
459
  if (enablementState !== undefined) {
453
460
  return enablementState;
454
461
  }
462
+ if (extension.identifier.id.toLowerCase() === this._chatExtensionId) {
463
+ this.ensureChatExtensionInitialDisabledState();
464
+ }
455
465
  enablementState = this._getUserEnablementState(extension.identifier);
456
466
  const isEnabled = this.isEnabledEnablementState(enablementState);
457
467
  if (isMalicious(extension.identifier, ( this.getMaliciousExtensions().map(e => ({
@@ -472,6 +482,8 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
472
482
  enablementState = EnablementState.DisabledByTrustRequirement;
473
483
  } else if (this._isDisabledByExtensionKind(extension)) {
474
484
  enablementState = EnablementState.DisabledByExtensionKind;
485
+ } else if (this._isDisabledBySessionsWindow(extension)) {
486
+ enablementState = EnablementState.DisabledByEnvironment;
475
487
  } else if (isEnabled && this._isDisabledByExtensionDependency(extension, extensions, workspaceType, computedEnablementStates)) {
476
488
  enablementState = EnablementState.DisabledByExtensionDependency;
477
489
  } else if (this._isDisabledByUnification(extension.identifier)) {
@@ -610,6 +622,25 @@ let ExtensionEnablementService = class ExtensionEnablementService extends Dispos
610
622
  _isDisabledByUnification(identifier) {
611
623
  return this._extensionUnificationEnabled && identifier.id.toLowerCase() === this._completionsExtensionId;
612
624
  }
625
+ _isDisabledBySessionsWindow(extension) {
626
+ if (!this.environmentService.isSessionsWindow) {
627
+ return false;
628
+ }
629
+ if (( this._sessionsWindowAllowedExtensions.has(extension.identifier.id.toLowerCase()))) {
630
+ return false;
631
+ }
632
+ if (extension.isBuiltin) {
633
+ if (extension.identifier.id.toLowerCase() === this._chatExtensionId) {
634
+ return false;
635
+ }
636
+ const contributes = extension.manifest.contributes;
637
+ if (contributes?.debuggers || contributes?.views || contributes?.viewsContainers || contributes?.walkthroughs) {
638
+ return true;
639
+ }
640
+ return false;
641
+ }
642
+ return !this.extensionManifestPropertiesService.canExecuteOnSessionsWindow(extension.manifest);
643
+ }
613
644
  _enableExtension(identifier) {
614
645
  this._removeFromWorkspaceDisabledExtensions(identifier);
615
646
  this._removeFromWorkspaceEnabledExtensions(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(16234, "Access '{0}' Feature", feature.label)),
99
+ title: ( localize(16567, "Access '{0}' Feature", feature.label)),
100
100
  message: ( localize(
101
- 16235,
101
+ 16568,
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(16236, "Allow")),
109
- cancelButton: ( localize(16237, "Don't Allow"))
108
+ primaryButton: ( localize(16569, "Allow")),
109
+ cancelButton: ( localize(16570, "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(16238, "Remote"));
29
+ return labelService.getHostLabel(Schemas.vscodeRemote, remoteAgentConnection.remoteAuthority) || ( localize(16571, "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(16239, "Browser"))
38
+ label: ( localize(16572, "Browser"))
39
39
  };
40
40
  }
41
41
  }
@@ -279,7 +279,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
279
279
  getDependentsErrorMessage(extension, dependents) {
280
280
  if (dependents.length === 1) {
281
281
  return localize(
282
- 16240,
282
+ 16573,
283
283
  "Cannot uninstall extension '{0}'. Extension '{1}' depends on this.",
284
284
  extension.manifest.displayName || extension.manifest.name,
285
285
  dependents[0].manifest.displayName || dependents[0].manifest.name
@@ -287,7 +287,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
287
287
  }
288
288
  if (dependents.length === 2) {
289
289
  return localize(
290
- 16241,
290
+ 16574,
291
291
  "Cannot uninstall extension '{0}'. Extensions '{1}' and '{2}' depend 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
  }
297
297
  return localize(
298
- 16242,
298
+ 16575,
299
299
  "Cannot uninstall extension '{0}'. Extensions '{1}', '{2}' and others depend on this.",
300
300
  extension.manifest.displayName || extension.manifest.name,
301
301
  dependents[0].manifest.displayName || dependents[0].manifest.name,
@@ -407,7 +407,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
407
407
  }
408
408
  const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
409
409
  if (!manifest) {
410
- return ( new MarkdownString()).appendText(( localize(16243, "Manifest is not found")));
410
+ return ( new MarkdownString()).appendText(( localize(16576, "Manifest is not found")));
411
411
  }
412
412
  if (this.extensionManagementServerService.remoteExtensionManagementServer && (await this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.canInstall(gallery)) === true && this.extensionManifestPropertiesService.canExecuteOnWorkspace(manifest)) {
413
413
  return true;
@@ -416,7 +416,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
416
416
  return true;
417
417
  }
418
418
  return ( new MarkdownString()).appendText(( localize(
419
- 16244,
419
+ 16577,
420
420
  "Cannot install the '{0}' extension because it is not available in this setup.",
421
421
  gallery.displayName || gallery.name
422
422
  )));
@@ -432,7 +432,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
432
432
  return true;
433
433
  }
434
434
  return ( new MarkdownString()).appendText(( localize(
435
- 16244,
435
+ 16577,
436
436
  "Cannot install the '{0}' extension because it is not available in this setup.",
437
437
  extension.manifest.displayName ?? extension.identifier.id
438
438
  )));
@@ -469,7 +469,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
469
469
  const manifest = await this.extensionGalleryService.getManifest(extension, CancellationToken.None);
470
470
  if (!manifest) {
471
471
  throw ( new Error(( localize(
472
- 16245,
472
+ 16578,
473
473
  "Installing Extension {0} failed: Manifest is not found.",
474
474
  extension.displayName || extension.name
475
475
  ))));
@@ -495,7 +495,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
495
495
  const manifest = await this.extensionGalleryService.getManifest(extension, CancellationToken.None);
496
496
  if (!manifest) {
497
497
  throw ( new Error(( localize(
498
- 16245,
498
+ 16578,
499
499
  "Installing Extension {0} failed: Manifest is not found.",
500
500
  extension.displayName || extension.name
501
501
  ))));
@@ -544,7 +544,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
544
544
  const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
545
545
  if (!manifest) {
546
546
  throw ( new Error(( localize(
547
- 16245,
547
+ 16578,
548
548
  "Installing Extension {0} failed: Manifest is not found.",
549
549
  gallery.displayName || gallery.name
550
550
  ))));
@@ -659,7 +659,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
659
659
  const manifest = await this.extensionGalleryService.getManifest(gallery, CancellationToken.None);
660
660
  if (!manifest) {
661
661
  return Promise.reject(( localize(
662
- 16245,
662
+ 16578,
663
663
  "Installing Extension {0} failed: Manifest is not found.",
664
664
  gallery.displayName || gallery.name
665
665
  )));
@@ -715,7 +715,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
715
715
  for (const server of servers) {
716
716
  if (!installableServers.includes(server)) {
717
717
  const error = ( new Error(( localize(
718
- 16246,
718
+ 16579,
719
719
  "Cannot install the '{0}' extension because it is not available in the '{1}' setup.",
720
720
  gallery.displayName || gallery.name,
721
721
  server.label
@@ -740,7 +740,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
740
740
  }
741
741
  if (!servers.length) {
742
742
  const error = ( new Error(( localize(
743
- 16244,
743
+ 16577,
744
744
  "Cannot install the '{0}' extension because it is not available in this setup.",
745
745
  gallery.displayName || gallery.name
746
746
  ))));
@@ -780,20 +780,20 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
780
780
  result
781
781
  } = await this.dialogService.prompt({
782
782
  type: Severity.Info,
783
- message: extensions.length === 1 ? ( localize(16247, "Install Extension")) : ( localize(16248, "Install Extensions")),
783
+ message: extensions.length === 1 ? ( localize(16580, "Install Extension")) : ( localize(16581, "Install Extensions")),
784
784
  detail: extensions.length === 1 ? ( localize(
785
- 16249,
785
+ 16582,
786
786
  "Would you like to install and synchronize '{0}' extension across your devices?",
787
787
  extensions[0].displayName
788
788
  )) : ( localize(
789
- 16250,
789
+ 16583,
790
790
  "Would you like to install and synchronize extensions across your devices?"
791
791
  )),
792
792
  buttons: [{
793
- label: ( localize(16251, "&&Install")),
793
+ label: ( localize(16584, "&&Install")),
794
794
  run: () => false
795
795
  }, {
796
- label: ( localize(16252, "Install (Do &&not sync)")),
796
+ label: ( localize(16585, "Install (Do &&not sync)")),
797
797
  run: () => true
798
798
  }],
799
799
  cancelButton: {
@@ -845,7 +845,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
845
845
  const manifest = await this.extensionGalleryService.getManifest(extension, CancellationToken.None);
846
846
  if (!manifest) {
847
847
  throw ( new Error(( localize(
848
- 16245,
848
+ 16578,
849
849
  "Installing Extension {0} failed: Manifest is not found.",
850
850
  extension.displayName || extension.name
851
851
  ))));
@@ -886,7 +886,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
886
886
  const unverfiiedPublishers = allPublishers.filter(p => !p.publisherDomain?.verified);
887
887
  const verifiedPublishers = allPublishers.filter(p => p.publisherDomain?.verified);
888
888
  const installButton = {
889
- label: allPublishers.length > 1 ? ( localize(16253, "Trust Publishers & &&Install")) : ( localize(16254, "Trust Publisher & &&Install")),
889
+ label: allPublishers.length > 1 ? ( localize(16586, "Trust Publishers & &&Install")) : ( localize(16587, "Trust Publisher & &&Install")),
890
890
  run: () => {
891
891
  this.telemetryService.publicLog2("extensions:trustPublisher", {
892
892
  action: "trust",
@@ -899,7 +899,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
899
899
  }
900
900
  };
901
901
  const learnMoreButton = {
902
- label: ( localize(16255, "&&Learn More")),
902
+ label: ( localize(16588, "&&Learn More")),
903
903
  run: () => {
904
904
  this.telemetryService.publicLog2("extensions:trustPublisher", {
905
905
  action: "learn",
@@ -921,16 +921,16 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
921
921
  };
922
922
  const unverifiedLink = "https://aka.ms/vscode-verify-publisher";
923
923
  const title = allPublishers.length === 1 ? ( localize(
924
- 16256,
924
+ 16589,
925
925
  "Do you trust the publisher \"{0}\"?",
926
926
  allPublishers[0].publisherDisplayName
927
927
  )) : allPublishers.length === 2 ? ( localize(
928
- 16257,
928
+ 16590,
929
929
  "Do you trust publishers \"{0}\" and \"{1}\"?",
930
930
  allPublishers[0].publisherDisplayName,
931
931
  allPublishers[1].publisherDisplayName
932
932
  )) : ( localize(
933
- 16258,
933
+ 16591,
934
934
  "Do you trust the publisher \"{0}\" and {1} others?",
935
935
  allPublishers[0].publisherDisplayName,
936
936
  allPublishers.length - 1
@@ -944,7 +944,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
944
944
  const manifest = untrustedExtensionManifests[0];
945
945
  if (otherUntrustedPublishers.length) {
946
946
  customMessage.appendMarkdown(( localize(
947
- 16259,
947
+ 16592,
948
948
  "The extension {0} is published by {1}.",
949
949
  `[${extension.displayName}](${extension.detailsLink})`,
950
950
  getPublisherLink(extension)
@@ -957,14 +957,14 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
957
957
  ).toString());
958
958
  if (otherUntrustedPublishers.length === 1) {
959
959
  customMessage.appendMarkdown(( localize(
960
- 16260,
960
+ 16593,
961
961
  "Installing this extension will also install [extensions]({0}) published by {1}.",
962
962
  commandUri,
963
963
  getPublisherLink(otherUntrustedPublishers[0])
964
964
  )));
965
965
  } else {
966
966
  customMessage.appendMarkdown(( localize(
967
- 16261,
967
+ 16594,
968
968
  "Installing this extension will also install [extensions]({0}) published by {1} and {2}.",
969
969
  commandUri,
970
970
  ( otherUntrustedPublishers.slice(0, otherUntrustedPublishers.length - 1).map(p => getPublisherLink(p))).join(", "),
@@ -973,12 +973,12 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
973
973
  }
974
974
  customMessage.appendMarkdown(" ");
975
975
  customMessage.appendMarkdown(( localize(
976
- 16262,
976
+ 16595,
977
977
  "This is the first time you're installing extensions from these publishers."
978
978
  )));
979
979
  } else {
980
980
  customMessage.appendMarkdown(( localize(
981
- 16263,
981
+ 16596,
982
982
  "The extension {0} is published by {1}. This is the first extension you're installing from this publisher.",
983
983
  `[${extension.displayName}](${extension.detailsLink})`,
984
984
  getPublisherLink(extension)
@@ -986,7 +986,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
986
986
  }
987
987
  } else {
988
988
  customMessage.appendMarkdown(( localize(
989
- 16264,
989
+ 16597,
990
990
  "This is the first time you're installing extensions from publishers {0} and {1}.",
991
991
  getPublisherLink(allPublishers[0]),
992
992
  getPublisherLink(allPublishers[allPublishers.length - 1])
@@ -996,7 +996,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
996
996
  for (const publisher of verifiedPublishers) {
997
997
  customMessage.appendText("\n");
998
998
  const publisherVerifiedMessage = ( localize(
999
- 16265,
999
+ 16598,
1000
1000
  "{0} has verified ownership of {1}.",
1001
1001
  getPublisherLink(publisher),
1002
1002
  `[$(link-external) ${( URI.parse(publisher.publisherDomain.link)).authority}](${publisher.publisherDomain.link})`
@@ -1007,14 +1007,14 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1007
1007
  customMessage.appendText("\n");
1008
1008
  if (unverfiiedPublishers.length === 1) {
1009
1009
  customMessage.appendMarkdown(`$(${Codicon.unverified.id}) ${( localize(
1010
- 16266,
1010
+ 16599,
1011
1011
  "{0} is [**not** verified]({1}).",
1012
1012
  getPublisherLink(unverfiiedPublishers[0]),
1013
1013
  unverifiedLink
1014
1014
  ))}`);
1015
1015
  } else {
1016
1016
  customMessage.appendMarkdown(`$(${Codicon.unverified.id}) ${( localize(
1017
- 16267,
1017
+ 16600,
1018
1018
  "{0} and {1} are [**not** verified]({2}).",
1019
1019
  ( unverfiiedPublishers.slice(0, unverfiiedPublishers.length - 1).map(p => getPublisherLink(p))).join(", "),
1020
1020
  getPublisherLink(unverfiiedPublishers[unverfiiedPublishers.length - 1]),
@@ -1024,18 +1024,18 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1024
1024
  }
1025
1025
  } else {
1026
1026
  customMessage.appendText("\n");
1027
- customMessage.appendMarkdown(`$(${Codicon.unverified.id}) ${( localize(16268, "All publishers are [**not** verified]({0}).", unverifiedLink))}`);
1027
+ customMessage.appendMarkdown(`$(${Codicon.unverified.id}) ${( localize(16601, "All publishers are [**not** verified]({0}).", unverifiedLink))}`);
1028
1028
  }
1029
1029
  customMessage.appendText("\n");
1030
1030
  if (allPublishers.length > 1) {
1031
1031
  customMessage.appendMarkdown(( localize(
1032
- 16269,
1032
+ 16602,
1033
1033
  "{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.",
1034
1034
  this.productService.nameLong
1035
1035
  )));
1036
1036
  } else {
1037
1037
  customMessage.appendMarkdown(( localize(
1038
- 16270,
1038
+ 16603,
1039
1039
  "{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.",
1040
1040
  this.productService.nameLong
1041
1041
  )));
@@ -1126,21 +1126,21 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1126
1126
  if (requireTrust || this.extensionManifestPropertiesService.getExtensionUntrustedWorkspaceSupportType(manifest) === false) {
1127
1127
  const buttons = [];
1128
1128
  buttons.push({
1129
- label: ( localize(16271, "Trust Workspace & Install")),
1129
+ label: ( localize(16604, "Trust Workspace & Install")),
1130
1130
  type: "ContinueWithTrust"
1131
1131
  });
1132
1132
  if (!requireTrust) {
1133
1133
  buttons.push({
1134
- label: ( localize(16272, "Install")),
1134
+ label: ( localize(16605, "Install")),
1135
1135
  type: "ContinueWithoutTrust"
1136
1136
  });
1137
1137
  }
1138
1138
  buttons.push({
1139
- label: ( localize(16273, "Learn More")),
1139
+ label: ( localize(16606, "Learn More")),
1140
1140
  type: "Manage"
1141
1141
  });
1142
1142
  const trustState = await this.workspaceTrustRequestService.requestWorkspaceTrust({
1143
- message: ( localize(16274, "Enabling this extension requires a trusted workspace.")),
1143
+ message: ( localize(16607, "Enabling this extension requires a trusted workspace.")),
1144
1144
  buttons
1145
1145
  });
1146
1146
  if (trustState === undefined) {
@@ -1166,7 +1166,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1166
1166
  throw ( new ExtensionManagementError("Not supported in Web", ExtensionManagementErrorCode.Unsupported));
1167
1167
  }
1168
1168
  }
1169
- const productName = ( localize(16275, "{0} for the Web", this.productService.nameLong));
1169
+ const productName = ( localize(16608, "{0} for the Web", this.productService.nameLong));
1170
1170
  const virtualWorkspaceSupport = this.extensionManifestPropertiesService.getExtensionVirtualWorkspaceSupportType(manifest);
1171
1171
  const virtualWorkspaceSupportReason = getWorkspaceSupportTypeMessage(manifest.capabilities?.virtualWorkspaces);
1172
1172
  const hasLimitedSupport = virtualWorkspaceSupport === "limited" || !!virtualWorkspaceSupportReason;
@@ -1174,7 +1174,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1174
1174
  return;
1175
1175
  }
1176
1176
  const limitedSupportMessage = ( localize(
1177
- 16276,
1177
+ 16609,
1178
1178
  "'{0}' has limited functionality in {1}.",
1179
1179
  extension.displayName || extension.identifier.id,
1180
1180
  productName
@@ -1183,18 +1183,18 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1183
1183
  let buttons = [];
1184
1184
  let detail;
1185
1185
  const installAnywayButton = {
1186
- label: ( localize(16277, "&&Install Anyway")),
1186
+ label: ( localize(16610, "&&Install Anyway")),
1187
1187
  run: () => {}
1188
1188
  };
1189
1189
  const showExtensionsButton = {
1190
- label: ( localize(16278, "&&Show Extensions")),
1190
+ label: ( localize(16611, "&&Show Extensions")),
1191
1191
  run: () => this.instantiationService.invokeFunction(
1192
1192
  accessor => accessor.get(ICommandService).executeCommand("extension.open", extension.identifier.id, "extensionPack")
1193
1193
  )
1194
1194
  };
1195
1195
  if (nonWebExtensions.length && hasLimitedSupport) {
1196
1196
  message = limitedSupportMessage;
1197
- detail = `${virtualWorkspaceSupportReason ? `${virtualWorkspaceSupportReason}\n` : ""}${( localize(16279, "Contains extensions which are not supported."))}`;
1197
+ detail = `${virtualWorkspaceSupportReason ? `${virtualWorkspaceSupportReason}\n` : ""}${( localize(16612, "Contains extensions which are not supported."))}`;
1198
1198
  buttons = [installAnywayButton, showExtensionsButton];
1199
1199
  } else if (hasLimitedSupport) {
1200
1200
  message = limitedSupportMessage;
@@ -1202,7 +1202,7 @@ let ExtensionManagementService = class ExtensionManagementService extends Common
1202
1202
  buttons = [installAnywayButton];
1203
1203
  } else {
1204
1204
  message = ( localize(
1205
- 16280,
1205
+ 16613,
1206
1206
  "'{0}' contains extensions which are not supported in {1}.",
1207
1207
  extension.displayName || extension.identifier.id,
1208
1208
  productName
@@ -1514,7 +1514,7 @@ let WorkspaceExtensionsManagementService = class WorkspaceExtensionsManagementSe
1514
1514
  this.uriIdentityService.extUri.joinPath(extension.location, extension.manifest.main)
1515
1515
  ))) {
1516
1516
  isValid = false;
1517
- validations.push([Severity.Error, ( localize(16281, "Cannot activate because {0} not found", extension.manifest.main))]);
1517
+ validations.push([Severity.Error, ( localize(16614, "Cannot activate because {0} not found", extension.manifest.main))]);
1518
1518
  }
1519
1519
  }
1520
1520
  return {