@codingame/monaco-vscode-extensions-service-override 37.2.0 → 37.3.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.
Files changed (52) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +37 -37
  3. package/vscode/src/vs/workbench/api/browser/mainThreadAgentEditorComments.js +2 -2
  4. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +31 -31
  5. package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +6 -6
  6. package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +2 -2
  7. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +1 -1
  8. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +2 -2
  9. package/vscode/src/vs/workbench/api/browser/mainThreadDataChannels.js +8 -8
  10. package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +6 -6
  11. package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +1 -1
  12. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +3 -1
  13. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentDiff.js +4 -4
  14. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +7 -7
  15. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +1 -1
  16. package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +5 -5
  17. package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +10 -10
  18. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +12 -12
  19. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +2 -2
  20. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +20 -20
  21. package/vscode/src/vs/workbench/api/browser/mainThreadGitExtensionService.js +4 -4
  22. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +15 -15
  23. package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +1 -1
  24. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +6 -6
  25. package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +3 -3
  26. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +1 -1
  27. package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +2 -2
  28. package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +3 -3
  29. package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +7 -7
  30. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +1 -1
  31. package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +2 -2
  32. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +2 -2
  33. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.d.ts +1 -1
  34. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +5 -5
  35. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +1 -1
  36. package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +12 -6
  37. package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +13 -8
  38. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +6 -6
  39. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +2 -2
  40. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +2 -2
  41. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +14 -12
  42. package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +1 -1
  43. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +25 -25
  44. package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +37 -32
  45. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +18 -10
  46. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +55 -45
  47. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +4 -4
  48. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +3 -1
  49. package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +4 -2
  50. package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +4 -4
  51. package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +4 -2
  52. package/vscode/src/vs/workbench/services/themes/browser/cssExtensionPoint.js +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-extensions-service-override",
3
- "version": "37.2.0",
3
+ "version": "37.3.1",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - extensions service-override",
6
6
  "keywords": [],
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "37.2.0",
19
- "@codingame/monaco-vscode-files-service-override": "37.2.0"
18
+ "@codingame/monaco-vscode-api": "37.3.1",
19
+ "@codingame/monaco-vscode-files-service-override": "37.3.1"
20
20
  },
21
21
  "main": "index.js",
22
22
  "module": "index.js",
@@ -13,9 +13,9 @@ import { getIdAndVersion, areSameExtensions, getGalleryExtensionId, getExtension
13
13
  import { ExtensionType, EXTENSION_CATEGORIES } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
14
14
  import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
15
15
 
16
- const notFound = id => ( localize(2244, "Extension '{0}' not found.", id));
16
+ const notFound = id => ( localize(2262, "Extension '{0}' not found.", id));
17
17
  const useId = ( localize(
18
- 2245,
18
+ 2263,
19
19
  "Make sure you use the full extension ID, including the publisher, e.g.: {0}",
20
20
  "ms-dotnettools.csharp"
21
21
  ));
@@ -32,14 +32,14 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
32
32
  this.extensionManagementService = extensionManagementService;
33
33
  this.extensionGalleryService = extensionGalleryService;
34
34
  this.productService = productService;
35
- this.extensionsForceVersionByQuality = ( this.extensionsForceVersionByQuality.map(e => e.toLowerCase()));
35
+ this.extensionsForceVersionByQuality = this.extensionsForceVersionByQuality.map(e => e.toLowerCase());
36
36
  }
37
37
  get location() {
38
38
  return undefined;
39
39
  }
40
40
  async listExtensions(showVersions, category, profileLocation) {
41
41
  let extensions = await this.extensionManagementService.getInstalled(ExtensionType.User, profileLocation);
42
- const categories = ( EXTENSION_CATEGORIES.map(c => c.toLowerCase()));
42
+ const categories = EXTENSION_CATEGORIES.map(c => c.toLowerCase());
43
43
  if (category && category !== "") {
44
44
  if (categories.indexOf(category.toLowerCase()) < 0) {
45
45
  this.logger.info(
@@ -49,7 +49,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
49
49
  }
50
50
  extensions = extensions.filter(e => {
51
51
  if (e.manifest.categories) {
52
- const lowerCaseCategories = ( e.manifest.categories.map(c => c.toLowerCase()));
52
+ const lowerCaseCategories = e.manifest.categories.map(c => c.toLowerCase());
53
53
  return lowerCaseCategories.indexOf(category.toLowerCase()) > -1;
54
54
  }
55
55
  return false;
@@ -62,7 +62,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
62
62
  return;
63
63
  }
64
64
  if (this.location) {
65
- this.logger.info(( localize(2246, "Extensions installed on {0}:", this.location)));
65
+ this.logger.info(( localize(2264, "Extensions installed on {0}:", this.location)));
66
66
  }
67
67
  extensions = extensions.sort((e1, e2) => e1.identifier.id.localeCompare(e2.identifier.id));
68
68
  let lastId = undefined;
@@ -77,7 +77,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
77
77
  const failed = [];
78
78
  try {
79
79
  if (extensions.length) {
80
- this.logger.info(this.location ? ( localize(2247, "Installing extensions on {0}...", this.location)) : ( localize(2248, "Installing extensions...")));
80
+ this.logger.info(this.location ? ( localize(2265, "Installing extensions on {0}...", this.location)) : ( localize(2266, "Installing extensions...")));
81
81
  }
82
82
  const installVSIXInfos = [];
83
83
  const installExtensionInfos = [];
@@ -123,7 +123,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
123
123
  }
124
124
  const installed = await this.extensionManagementService.getInstalled(undefined, installOptions.profileLocation);
125
125
  if (installVSIXInfos.length) {
126
- await Promise.all(( installVSIXInfos.map(async (
126
+ await Promise.all(installVSIXInfos.map(async (
127
127
  {
128
128
  vsix,
129
129
  installOptions
@@ -135,18 +135,18 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
135
135
  this.logger.error(err);
136
136
  failed.push(( vsix.toString()));
137
137
  }
138
- })));
138
+ }));
139
139
  }
140
140
  if (installExtensionInfos.length) {
141
141
  const failedGalleryExtensions = await this.installGalleryExtensions(installExtensionInfos, installed, force);
142
142
  failed.push(...failedGalleryExtensions);
143
143
  }
144
144
  } catch (error) {
145
- this.logger.error(( localize(2249, "Error while installing extensions: {0}", getErrorMessage(error))));
145
+ this.logger.error(( localize(2267, "Error while installing extensions: {0}", getErrorMessage(error))));
146
146
  throw error;
147
147
  }
148
148
  if (failed.length) {
149
- throw ( new Error(( localize(2250, "Failed Installing Extensions: {0}", failed.join(", ")))));
149
+ throw ( new Error(( localize(2268, "Failed Installing Extensions: {0}", failed.join(", ")))));
150
150
  }
151
151
  }
152
152
  async updateExtensions(profileLocation) {
@@ -161,7 +161,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
161
161
  }
162
162
  }
163
163
  this.logger.trace(( localize(
164
- 2251,
164
+ 2269,
165
165
  "Fetching latest versions for {0} extensions",
166
166
  installedExtensionsQuery.length
167
167
  )));
@@ -185,26 +185,26 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
185
185
  }
186
186
  }
187
187
  if (!extensionsToUpdate.length) {
188
- this.logger.info(( localize(2252, "No extension to update")));
188
+ this.logger.info(( localize(2270, "No extension to update")));
189
189
  return;
190
190
  }
191
191
  this.logger.info(( localize(
192
- 2253,
192
+ 2271,
193
193
  "Updating extensions: {0}",
194
- ( extensionsToUpdate.map(ext => ext.extension.identifier.id)).join(", ")
194
+ extensionsToUpdate.map(ext => ext.extension.identifier.id).join(", ")
195
195
  )));
196
196
  const installationResult = await this.extensionManagementService.installGalleryExtensions(extensionsToUpdate);
197
197
  for (const extensionResult of installationResult) {
198
198
  if (extensionResult.error) {
199
199
  this.logger.error(( localize(
200
- 2254,
200
+ 2272,
201
201
  "Error while updating extension {0}: {1}",
202
202
  extensionResult.identifier.id,
203
203
  getErrorMessage(extensionResult.error)
204
204
  )));
205
205
  } else {
206
206
  this.logger.info(( localize(
207
- 2255,
207
+ 2273,
208
208
  "Extension '{0}' v{1} was successfully updated.",
209
209
  extensionResult.identifier.id,
210
210
  extensionResult.local?.manifest.version
@@ -230,7 +230,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
230
230
  }
231
231
  if (!force && (!version || (version === "prerelease" && installedExtension.preRelease))) {
232
232
  this.logger.info(( localize(
233
- 2256,
233
+ 2274,
234
234
  "Extension '{0}' v{1} is already installed. Use '--force' option to update to latest version or provide '@<version>' to install a specific version, for example: '{2}@1.2.3'.",
235
235
  id,
236
236
  installedExtension.manifest.version,
@@ -239,7 +239,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
239
239
  return false;
240
240
  }
241
241
  if (version && installedExtension.manifest.version === version) {
242
- this.logger.info(( localize(2257, "Extension '{0}' is already installed.", `${id}@${version}`)));
242
+ this.logger.info(( localize(2275, "Extension '{0}' is already installed.", `${id}@${version}`)));
243
243
  return false;
244
244
  }
245
245
  if (installedExtension.preRelease && version !== "prerelease") {
@@ -254,7 +254,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
254
254
  const failed = [];
255
255
  const extensionsToInstall = [];
256
256
  const galleryExtensions = await this.getGalleryExtensions(installExtensionInfos);
257
- await Promise.all(( installExtensionInfos.map(async (
257
+ await Promise.all(installExtensionInfos.map(async (
258
258
  {
259
259
  id,
260
260
  version,
@@ -281,23 +281,23 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
281
281
  if (installedExtension) {
282
282
  if (gallery.version === installedExtension.manifest.version) {
283
283
  this.logger.info(( localize(
284
- 2257,
284
+ 2275,
285
285
  "Extension '{0}' is already installed.",
286
286
  version ? `${id}@${version}` : id
287
287
  )));
288
288
  return;
289
289
  }
290
290
  this.logger.info(( localize(
291
- 2258,
291
+ 2276,
292
292
  "Updating the extension '{0}' to the version {1}",
293
293
  id,
294
294
  gallery.version
295
295
  )));
296
296
  }
297
297
  if (installOptions.isBuiltin) {
298
- this.logger.info(version ? ( localize(2259, "Installing builtin extension '{0}' v{1}...", id, version)) : ( localize(2260, "Installing builtin extension '{0}'...", id)));
298
+ this.logger.info(version ? ( localize(2277, "Installing builtin extension '{0}' v{1}...", id, version)) : ( localize(2278, "Installing builtin extension '{0}'...", id)));
299
299
  } else {
300
- this.logger.info(version ? ( localize(2261, "Installing extension '{0}' v{1}...", id, version)) : ( localize(2262, "Installing extension '{0}'...", id)));
300
+ this.logger.info(version ? ( localize(2279, "Installing extension '{0}' v{1}...", id, version)) : ( localize(2280, "Installing extension '{0}'...", id)));
301
301
  }
302
302
  extensionsToInstall.push({
303
303
  extension: gallery,
@@ -307,13 +307,13 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
307
307
  isApplicationScoped: installOptions.isApplicationScoped || installedExtension?.isApplicationScoped
308
308
  }
309
309
  });
310
- })));
310
+ }));
311
311
  if (extensionsToInstall.length) {
312
312
  const installationResult = await this.extensionManagementService.installGalleryExtensions(extensionsToInstall);
313
313
  for (const extensionResult of installationResult) {
314
314
  if (extensionResult.error) {
315
315
  this.logger.error(( localize(
316
- 2263,
316
+ 2281,
317
317
  "Error while installing extension {0}: {1}",
318
318
  extensionResult.identifier.id,
319
319
  getErrorMessage(extensionResult.error)
@@ -321,7 +321,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
321
321
  failed.push(extensionResult.identifier.id);
322
322
  } else {
323
323
  this.logger.info(( localize(
324
- 2264,
324
+ 2282,
325
325
  "Extension '{0}' v{1} was successfully installed.",
326
326
  extensionResult.identifier.id,
327
327
  extensionResult.local?.manifest.version
@@ -343,10 +343,10 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
343
343
  ...installOptions,
344
344
  installGivenVersion: true
345
345
  });
346
- this.logger.info(( localize(2265, "Extension '{0}' was successfully installed.", basename(vsix))));
346
+ this.logger.info(( localize(2283, "Extension '{0}' was successfully installed.", basename(vsix))));
347
347
  } catch (error) {
348
348
  if (isCancellationError(error)) {
349
- this.logger.info(( localize(2266, "Cancelled installing extension '{0}'.", basename(vsix))));
349
+ this.logger.info(( localize(2284, "Cancelled installing extension '{0}'.", basename(vsix))));
350
350
  } else {
351
351
  throw error;
352
352
  }
@@ -393,7 +393,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
393
393
  if (!force) {
394
394
  if (semverExports.gt(existingExtension.manifest.version, manifest.version)) {
395
395
  this.logger.info(( localize(
396
- 2267,
396
+ 2285,
397
397
  "A newer version of extension '{0}' v{1} is already installed. Use '--force' option to downgrade to older version.",
398
398
  existingExtension.identifier.id,
399
399
  existingExtension.manifest.version,
@@ -424,7 +424,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
424
424
  }
425
425
  if (( extensionsToUninstall.some(e => e.type === ExtensionType.System))) {
426
426
  this.logger.info(( localize(
427
- 2268,
427
+ 2286,
428
428
  "Extension '{0}' is a Built-in extension and cannot be uninstalled",
429
429
  id
430
430
  )));
@@ -432,13 +432,13 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
432
432
  }
433
433
  if (!force && ( extensionsToUninstall.some(e => e.isBuiltin))) {
434
434
  this.logger.info(( localize(
435
- 2269,
435
+ 2287,
436
436
  "Extension '{0}' is marked as a Built-in extension by user. Please use '--force' option to uninstall it.",
437
437
  id
438
438
  )));
439
439
  return;
440
440
  }
441
- this.logger.info(( localize(2270, "Uninstalling {0}...", id)));
441
+ this.logger.info(( localize(2288, "Uninstalling {0}...", id)));
442
442
  for (const extensionToUninstall of extensionsToUninstall) {
443
443
  await this.extensionManagementService.uninstall(extensionToUninstall, {
444
444
  profileLocation
@@ -446,13 +446,13 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
446
446
  }
447
447
  if (this.location) {
448
448
  this.logger.info(( localize(
449
- 2271,
449
+ 2289,
450
450
  "Extension '{0}' was successfully uninstalled from {1}!",
451
451
  id,
452
452
  this.location
453
453
  )));
454
454
  } else {
455
- this.logger.info(( localize(2272, "Extension '{0}' was successfully uninstalled!", id)));
455
+ this.logger.info(( localize(2290, "Extension '{0}' was successfully uninstalled!", id)));
456
456
  }
457
457
  }
458
458
  }
@@ -470,12 +470,12 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
470
470
  });
471
471
  }
472
472
  notInstalled(id) {
473
- return this.location ? ( localize(2273, "Extension '{0}' is not installed on {1}.", id, this.location)) : ( localize(2274, "Extension '{0}' is not installed.", id));
473
+ return this.location ? ( localize(2291, "Extension '{0}' is not installed on {1}.", id, this.location)) : ( localize(2292, "Extension '{0}' is not installed.", id));
474
474
  }
475
475
  validateBuiltinExtensionEnabledWithAutoUpdates(extension) {
476
476
  if (extension.isBuiltin && ( this.productService.builtInExtensionsEnabledWithAutoUpdates.some(e => e.toLowerCase() === extension.identifier.id.toLowerCase())) && !extension.forceAutoUpdate) {
477
477
  return localize(
478
- 2275,
478
+ 2293,
479
479
  "Extension '{0}' is a built-in extension and not allowed to be updated in the current product quality '{1}'.",
480
480
  extension.identifier.id,
481
481
  this.productService.quality
@@ -50,11 +50,11 @@ let MainThreadAgentEditorComments = class MainThreadAgentEditorComments {
50
50
  if (!resource) {
51
51
  return;
52
52
  }
53
- const comments = ( this._bridge.getComments(resource).map(comment => ({
53
+ const comments = this._bridge.getComments(resource).map(comment => ({
54
54
  id: comment.id,
55
55
  range: comment.range,
56
56
  body: comment.body
57
- })));
57
+ }));
58
58
  this._proxy.$acceptAgentEditorComments(handle, comments, this._bridge.acceptsComments(resource));
59
59
  }
60
60
  dispose() {
@@ -63,7 +63,7 @@ class MainThreadAuthenticationProvider extends Disposable {
63
63
  }
64
64
  async getSessions(scopes, options) {
65
65
  const sessions = await this._proxy.$getSessions(this.id, scopes, options);
66
- return ( sessions.map(reviveSessionAccountIcon));
66
+ return sessions.map(reviveSessionAccountIcon);
67
67
  }
68
68
  async createSession(scopes, options) {
69
69
  return reviveSessionAccountIcon(await this._proxy.$createSession(this.id, scopes, options));
@@ -94,7 +94,7 @@ class MainThreadAuthenticationProviderWithChallenges extends MainThreadAuthentic
94
94
  }
95
95
  async getSessionsFromChallenges(constraint, options) {
96
96
  const sessions = await this._proxy.$getSessionsFromChallenges(this.id, constraint, options);
97
- return ( sessions.map(reviveSessionAccountIcon));
97
+ return sessions.map(reviveSessionAccountIcon);
98
98
  }
99
99
  async createSessionFromChallenges(constraint, options) {
100
100
  return reviveSessionAccountIcon(
@@ -228,7 +228,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
228
228
  }
229
229
  const emitter = ( new Emitter());
230
230
  this._registrations.set(id, emitter);
231
- const supportedAuthorizationServerUris = ( (supportedAuthorizationServers ?? []).map(i => URI.revive(i)));
231
+ const supportedAuthorizationServerUris = (supportedAuthorizationServers ?? []).map(i => URI.revive(i));
232
232
  const provider = supportsChallenges ? ( new MainThreadAuthenticationProviderWithChallenges(
233
233
  this._proxy,
234
234
  id,
@@ -294,8 +294,8 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
294
294
  return await deferredPromise.p;
295
295
  }
296
296
  $showContinueNotification(message) {
297
- const yes = ( localize(2944, "Yes"));
298
- const no = ( localize(2945, "No"));
297
+ const yes = ( localize(4915, "Yes"));
298
+ const no = ( localize(4916, "No"));
299
299
  const deferredPromise = ( new DeferredPromise());
300
300
  let result = false;
301
301
  const handle = this.notificationService.prompt(Severity.Warning, message, [{
@@ -351,26 +351,26 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
351
351
  message = customMessage;
352
352
  } else {
353
353
  message = recreatingSession ? ( localize(
354
- 2946,
354
+ 4917,
355
355
  "The extension '{0}' wants you to sign in again using {1}.",
356
356
  extensionName,
357
357
  provider.label
358
358
  )) : ( localize(
359
- 2947,
359
+ 4918,
360
360
  "The extension '{0}' wants to sign in using {1}.",
361
361
  extensionName,
362
362
  provider.label
363
363
  ));
364
364
  }
365
365
  const buttons = [{
366
- label: ( localize(2948, "&&Allow")),
366
+ label: ( localize(4919, "&&Allow")),
367
367
  run() {
368
368
  return true;
369
369
  }
370
370
  }];
371
371
  if (options?.learnMore) {
372
372
  buttons.push({
373
- label: ( localize(2949, "Learn more")),
373
+ label: ( localize(4920, "Learn more")),
374
374
  run: async () => {
375
375
  const result = this.loginPrompt(provider, extensionName, recreatingSession, options);
376
376
  await this.openerService.open(URI.revive(options.learnMore), {
@@ -393,9 +393,9 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
393
393
  }
394
394
  async continueWithIncorrectAccountPrompt(chosenAccountLabel, requestedAccountLabel) {
395
395
  const result = await this.dialogService.prompt({
396
- message: ( localize(2950, "Incorrect account detected")),
396
+ message: ( localize(4921, "Incorrect account detected")),
397
397
  detail: ( localize(
398
- 2951,
398
+ 4922,
399
399
  "The chosen account, {0}, does not match the requested account, {1}.",
400
400
  chosenAccountLabel,
401
401
  requestedAccountLabel
@@ -403,10 +403,10 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
403
403
  type: Severity.Warning,
404
404
  cancelButton: true,
405
405
  buttons: [{
406
- label: ( localize(2952, "Keep {0}", chosenAccountLabel)),
406
+ label: ( localize(4923, "Keep {0}", chosenAccountLabel)),
407
407
  run: () => chosenAccountLabel
408
408
  }, {
409
- label: ( localize(2953, "Login with {0}", requestedAccountLabel)),
409
+ label: ( localize(4924, "Login with {0}", requestedAccountLabel)),
410
410
  run: () => requestedAccountLabel
411
411
  }]
412
412
  });
@@ -559,15 +559,15 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
559
559
  result
560
560
  } = await this.dialogService.prompt({
561
561
  type: Severity.Info,
562
- message: ( localize(2954, "Device Code Authentication")),
562
+ message: ( localize(4925, "Device Code Authentication")),
563
563
  detail: ( localize(
564
- 2955,
564
+ 4926,
565
565
  "Your code: {0}\n\nTo complete authentication, navigate to {1} and enter the code above.",
566
566
  userCode,
567
567
  verificationUri
568
568
  )),
569
569
  buttons: [{
570
- label: ( localize(2956, "Copy & Continue")),
570
+ label: ( localize(4927, "Copy & Continue")),
571
571
  run: () => true
572
572
  }],
573
573
  cancelButton: true
@@ -577,7 +577,7 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
577
577
  await this.clipboardService.writeText(userCode);
578
578
  return await this.openerService.open(( URI.parse(verificationUri)));
579
579
  } catch (error) {
580
- this.notificationService.error(( localize(2957, "Failed to open {0}", verificationUri)));
580
+ this.notificationService.error(( localize(4928, "Failed to open {0}", verificationUri)));
581
581
  }
582
582
  }
583
583
  return false;
@@ -586,44 +586,44 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
586
586
  const redirectUrls = "http://127.0.0.1:33418\nhttps://vscode.dev/redirect";
587
587
  const result = await this.dialogService.prompt({
588
588
  type: Severity.Info,
589
- message: ( localize(2958, "Dynamic Client Registration not supported")),
589
+ message: ( localize(4929, "Dynamic Client Registration not supported")),
590
590
  detail: ( localize(
591
- 2959,
591
+ 4930,
592
592
  "The authorization server '{0}' does not support automatic client registration. Do you want to proceed by manually providing a client registration (client ID)?\n\nNote: When registering your OAuth application, make sure to include these redirect URIs:\n{1}",
593
593
  authorizationServerUrl,
594
594
  redirectUrls
595
595
  )),
596
596
  buttons: [{
597
- label: ( localize(2960, "Copy URIs & Proceed")),
597
+ label: ( localize(4931, "Copy URIs & Proceed")),
598
598
  run: async () => {
599
599
  try {
600
600
  await this.clipboardService.writeText(redirectUrls);
601
601
  } catch (error) {
602
- this.notificationService.error(( localize(2961, "Failed to copy redirect URIs to clipboard.")));
602
+ this.notificationService.error(( localize(4932, "Failed to copy redirect URIs to clipboard.")));
603
603
  }
604
604
  return true;
605
605
  }
606
606
  }],
607
607
  cancelButton: {
608
- label: ( localize(2962, "Cancel")),
608
+ label: ( localize(4933, "Cancel")),
609
609
  run: () => false
610
610
  }
611
611
  });
612
612
  if (!result) {
613
613
  return undefined;
614
614
  }
615
- const sharedTitle = ( localize(2963, "Add Client Registration Details"));
615
+ const sharedTitle = ( localize(4934, "Add Client Registration Details"));
616
616
  const clientId = await this.quickInputService.input({
617
617
  title: sharedTitle,
618
618
  prompt: ( localize(
619
- 2964,
619
+ 4935,
620
620
  "Enter an existing client ID that has been registered with the following redirect URIs: http://127.0.0.1:33418, https://vscode.dev/redirect"
621
621
  )),
622
- placeHolder: ( localize(2965, "OAuth client ID (azye39d...)")),
622
+ placeHolder: ( localize(4936, "OAuth client ID (azye39d...)")),
623
623
  ignoreFocusLost: true,
624
624
  validateInput: async value => {
625
625
  if (!value || value.trim().length === 0) {
626
- return localize(2966, "Client ID is required");
626
+ return localize(4937, "Client ID is required");
627
627
  }
628
628
  return undefined;
629
629
  }
@@ -634,11 +634,11 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
634
634
  const clientSecret = await this.quickInputService.input({
635
635
  title: sharedTitle,
636
636
  prompt: ( localize(
637
- 2967,
637
+ 4938,
638
638
  "(optional) Enter an existing client secret associated with the client id '{0}' or leave this field blank",
639
639
  clientId
640
640
  )),
641
- placeHolder: ( localize(2968, "OAuth client secret (wer32o50f...) or leave it blank")),
641
+ placeHolder: ( localize(4939, "OAuth client secret (wer32o50f...) or leave it blank")),
642
642
  password: true,
643
643
  ignoreFocusLost: true
644
644
  });
@@ -649,14 +649,14 @@ let MainThreadAuthentication = class MainThreadAuthentication extends Disposable
649
649
  }
650
650
  async $promptForResourceClientSecret(resourceClientId, resource) {
651
651
  const value = await this.quickInputService.input({
652
- title: ( localize(2969, "Resource Client Secret Required")),
652
+ title: ( localize(4940, "Resource Client Secret Required")),
653
653
  prompt: ( localize(
654
- 2970,
654
+ 4941,
655
655
  "The resource at '{0}' uses a per-resource client identifier '{1}'. Enter the matching client secret (leave blank if none). The value is saved in OS secret storage; manage it later via the 'Set Client Secret' code lens in mcp.json.",
656
656
  resource,
657
657
  resourceClientId
658
658
  )),
659
- placeHolder: ( localize(2971, "Resource client secret")),
659
+ placeHolder: ( localize(4942, "Resource client secret")),
660
660
  password: true,
661
661
  ignoreFocusLost: true
662
662
  });
@@ -63,18 +63,18 @@ function reviveWorkspaceEditDto(data, uriIdentityService, resolveDataTransferFil
63
63
  if (cellEdit.editType === CellEditType.Replace) {
64
64
  edit.cellEdit = {
65
65
  ...cellEdit,
66
- cells: ( cellEdit.cells.map(cell => ({
66
+ cells: cellEdit.cells.map(cell => ({
67
67
  ...cell,
68
- outputs: ( cell.outputs.map(output => ({
68
+ outputs: cell.outputs.map(output => ({
69
69
  ...output,
70
- outputs: ( output.items.map(item => {
70
+ outputs: output.items.map(item => {
71
71
  return {
72
72
  mime: item.mime,
73
73
  data: item.valueBytes
74
74
  };
75
- }))
76
- })))
77
- })))
75
+ })
76
+ }))
77
+ }))
78
78
  };
79
79
  }
80
80
  }
@@ -57,7 +57,7 @@ CommandsRegistry.registerCommand("_remoteCLI.manageExtensions", async function(a
57
57
  if (args.list) {
58
58
  await cliService.listExtensions(!!args.list.showVersions, args.list.category, undefined);
59
59
  } else {
60
- const revive = inputs => ( inputs.map(input => isString(input) ? input : URI.revive(input)));
60
+ const revive = inputs => inputs.map(input => isString(input) ? input : URI.revive(input));
61
61
  if (Array.isArray(args.install) && args.install.length) {
62
62
  try {
63
63
  await cliService.installExtensions(revive(args.install), [], {
@@ -108,7 +108,7 @@ let RemoteExtensionManagementCLI = class RemoteExtensionManagementCLI extends Ex
108
108
  if (
109
109
  !this._extensionManifestPropertiesService.canExecuteOnWorkspace(manifest) && !(isWeb && this._extensionManifestPropertiesService.canExecuteOnWeb(manifest))) {
110
110
  this.logger.info(( localize(
111
- 2972,
111
+ 4943,
112
112
  "Cannot install the '{0}' extension because it is declared to not run in this setup.",
113
113
  getExtensionId(manifest.publisher, manifest.name)
114
114
  )));
@@ -468,7 +468,7 @@ let MainThreadCommentController = class MainThreadCommentController extends Disp
468
468
  }
469
469
  };
470
470
  MainThreadCommentController = ( __decorate([( __param(6, ICommentService)), ( __param(7, IUriIdentityService))], MainThreadCommentController));
471
- const commentsViewIcon = registerIcon("comments-view-icon", Codicon.commentDiscussion, ( localize(2975, "View icon of the comments view.")));
471
+ const commentsViewIcon = registerIcon("comments-view-icon", Codicon.commentDiscussion, ( localize(4946, "View icon of the comments view.")));
472
472
  let MainThreadComments = class MainThreadComments extends Disposable {
473
473
  constructor(
474
474
  extHostContext,
@@ -532,7 +532,7 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
532
532
  this._register(workingCopyService.registerWorkingCopy(this));
533
533
  this._register(extensionService.onWillStop(e => {
534
534
  e.veto(true, ( localize(
535
- 2976,
535
+ 4947,
536
536
  "An extension provided editor for '{0}' is still open that would close otherwise.",
537
537
  this.name
538
538
  )));
@@ -600,7 +600,7 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
600
600
  this._undoService.pushElement({
601
601
  type: UndoRedoElementType.Resource,
602
602
  resource: this._editorResource,
603
- label: label ?? ( localize(2977, "Edit")),
603
+ label: label ?? ( localize(4948, "Edit")),
604
604
  code: "undoredo.customEditorEdit",
605
605
  undo: () => this.undo(),
606
606
  redo: () => this.redo()
@@ -33,12 +33,12 @@ let MainThreadDataChannels = class MainThreadDataChannels extends Disposable {
33
33
  this._register(this._dataChannelService.onDidSendData(e => {
34
34
  this._proxy.$onDidReceiveData(e.channelId, e.data);
35
35
  }));
36
- const updateLinkPresentationRules = () => this._proxy.$acceptLinkPresentationRules(( this._linkPresentationService.linkPresentationRules.map(rule => ({
36
+ const updateLinkPresentationRules = () => this._proxy.$acceptLinkPresentationRules(this._linkPresentationService.linkPresentationRules.map(rule => ({
37
37
  id: rule.id,
38
38
  source: rule.uriPattern.source,
39
39
  flags: rule.uriPattern.flags,
40
40
  kind: rule.kind
41
- }))));
41
+ })));
42
42
  updateLinkPresentationRules();
43
43
  this._register(
44
44
  this._linkPresentationService.onDidChangeLinkPresentationRules(updateLinkPresentationRules)
@@ -54,13 +54,13 @@ let MainThreadDataChannels = class MainThreadDataChannels extends Disposable {
54
54
  kind,
55
55
  status: {
56
56
  kind: "error",
57
- label: ( localize(2978, "Not available"))
57
+ label: ( localize(4949, "Not available"))
58
58
  },
59
59
  tooltip: ( localize(
60
- 2979,
60
+ 4950,
61
61
  "The selected link presentation provider does not accept this resource."
62
62
  )),
63
- ariaLabel: ( localize(2980, "Link presentation is not available"))
63
+ ariaLabel: ( localize(4951, "Link presentation is not available"))
64
64
  });
65
65
  return;
66
66
  }
@@ -105,10 +105,10 @@ let MainThreadDataChannels = class MainThreadDataChannels extends Disposable {
105
105
  kind: "resource",
106
106
  status: {
107
107
  kind: "error",
108
- label: ( localize(2978, "Not available"))
108
+ label: ( localize(4949, "Not available"))
109
109
  },
110
- tooltip: ( localize(2981, "The link presentation provider failed to load.")),
111
- ariaLabel: ( localize(2980, "Link presentation is not available"))
110
+ tooltip: ( localize(4952, "The link presentation provider failed to load.")),
111
+ ariaLabel: ( localize(4951, "Link presentation is not available"))
112
112
  });
113
113
  });
114
114
  return watcher;