@codingame/monaco-vscode-extensions-service-override 37.6.1 → 38.0.0

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 (44) hide show
  1. package/package.json +3 -3
  2. package/service-override/tools/missingMainThreadCustomers.js +4 -0
  3. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +29 -29
  4. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.d.ts +3 -19
  5. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +133 -75
  6. package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +1 -1
  7. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +1 -1
  8. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.d.ts +13 -1
  9. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +108 -14
  10. package/vscode/src/vs/workbench/api/browser/mainThreadCustomTextEditorNavigation.d.ts +29 -0
  11. package/vscode/src/vs/workbench/api/browser/mainThreadCustomTextEditorNavigation.js +94 -0
  12. package/vscode/src/vs/workbench/api/browser/mainThreadDataChannels.js +6 -6
  13. package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +8 -16
  14. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.d.ts +1 -1
  15. package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +2 -1
  16. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +1 -1
  17. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +3 -5
  18. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +11 -11
  19. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +22 -20
  20. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +10 -3
  21. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +13 -7
  22. package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +3 -3
  23. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.d.ts +3 -4
  24. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +13 -6
  25. package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +7 -0
  26. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +1 -1
  27. package/vscode/src/vs/workbench/api/browser/mainThreadShare.d.ts +0 -1
  28. package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +4 -9
  29. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
  30. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +6 -1
  31. package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +13 -18
  32. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -2
  33. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +4 -3
  34. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +1 -1
  35. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +5 -5
  36. package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.d.ts +1 -0
  37. package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +4 -1
  38. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
  39. package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +2 -2
  40. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +19 -13
  41. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
  42. package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +1 -1
  43. package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +4 -4
  44. 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.6.1",
3
+ "version": "38.0.0",
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.6.1",
19
- "@codingame/monaco-vscode-files-service-override": "37.6.1"
18
+ "@codingame/monaco-vscode-api": "38.0.0",
19
+ "@codingame/monaco-vscode-files-service-override": "38.0.0"
20
20
  },
21
21
  "main": "index.js",
22
22
  "module": "index.js",
@@ -218,6 +218,7 @@ class MissingMainThreadNotebookRenderers {
218
218
  }
219
219
  class MissingMainThreadMcp {
220
220
  constructor() {
221
+ this.$checkMcpServerAllowed = unsupported;
221
222
  this.$onDidChangeState = noop;
222
223
  this.$onDidPublishLog = noop;
223
224
  this.$onDidReceiveMessage = noop;
@@ -231,6 +232,9 @@ class MissingMainThreadMcp {
231
232
  }
232
233
  dispose() { }
233
234
  }
235
+ __decorate([
236
+ Unsupported
237
+ ], MissingMainThreadMcp.prototype, "$checkMcpServerAllowed", void 0);
234
238
  __decorate([
235
239
  Unsupported
236
240
  ], MissingMainThreadMcp.prototype, "$getTokenFromServerMetadata", void 0);
@@ -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(2262, "Extension '{0}' not found.", id));
16
+ const notFound = id => ( localize(2636, "Extension '{0}' not found.", id));
17
17
  const useId = ( localize(
18
- 2263,
18
+ 2637,
19
19
  "Make sure you use the full extension ID, including the publisher, e.g.: {0}",
20
20
  "ms-dotnettools.csharp"
21
21
  ));
@@ -62,7 +62,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
62
62
  return;
63
63
  }
64
64
  if (this.location) {
65
- this.logger.info(( localize(2264, "Extensions installed on {0}:", this.location)));
65
+ this.logger.info(( localize(2638, "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(2265, "Installing extensions on {0}...", this.location)) : ( localize(2266, "Installing extensions...")));
80
+ this.logger.info(this.location ? ( localize(2639, "Installing extensions on {0}...", this.location)) : ( localize(2640, "Installing extensions...")));
81
81
  }
82
82
  const installVSIXInfos = [];
83
83
  const installExtensionInfos = [];
@@ -142,11 +142,11 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
142
142
  failed.push(...failedGalleryExtensions);
143
143
  }
144
144
  } catch (error) {
145
- this.logger.error(( localize(2267, "Error while installing extensions: {0}", getErrorMessage(error))));
145
+ this.logger.error(( localize(2641, "Error while installing extensions: {0}", getErrorMessage(error))));
146
146
  throw error;
147
147
  }
148
148
  if (failed.length) {
149
- throw ( new Error(( localize(2268, "Failed Installing Extensions: {0}", failed.join(", ")))));
149
+ throw ( new Error(( localize(2642, "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
- 2269,
164
+ 2643,
165
165
  "Fetching latest versions for {0} extensions",
166
166
  installedExtensionsQuery.length
167
167
  )));
@@ -185,11 +185,11 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
185
185
  }
186
186
  }
187
187
  if (!extensionsToUpdate.length) {
188
- this.logger.info(( localize(2270, "No extension to update")));
188
+ this.logger.info(( localize(2644, "No extension to update")));
189
189
  return;
190
190
  }
191
191
  this.logger.info(( localize(
192
- 2271,
192
+ 2645,
193
193
  "Updating extensions: {0}",
194
194
  extensionsToUpdate.map(ext => ext.extension.identifier.id).join(", ")
195
195
  )));
@@ -197,14 +197,14 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
197
197
  for (const extensionResult of installationResult) {
198
198
  if (extensionResult.error) {
199
199
  this.logger.error(( localize(
200
- 2272,
200
+ 2646,
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
- 2273,
207
+ 2647,
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
- 2274,
233
+ 2648,
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(2275, "Extension '{0}' is already installed.", `${id}@${version}`)));
242
+ this.logger.info(( localize(2649, "Extension '{0}' is already installed.", `${id}@${version}`)));
243
243
  return false;
244
244
  }
245
245
  if (installedExtension.preRelease && version !== "prerelease") {
@@ -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
- 2275,
284
+ 2649,
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
- 2276,
291
+ 2650,
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(2277, "Installing builtin extension '{0}' v{1}...", id, version)) : ( localize(2278, "Installing builtin extension '{0}'...", id)));
298
+ this.logger.info(version ? ( localize(2651, "Installing builtin extension '{0}' v{1}...", id, version)) : ( localize(2652, "Installing builtin extension '{0}'...", id)));
299
299
  } else {
300
- this.logger.info(version ? ( localize(2279, "Installing extension '{0}' v{1}...", id, version)) : ( localize(2280, "Installing extension '{0}'...", id)));
300
+ this.logger.info(version ? ( localize(2653, "Installing extension '{0}' v{1}...", id, version)) : ( localize(2654, "Installing extension '{0}'...", id)));
301
301
  }
302
302
  extensionsToInstall.push({
303
303
  extension: gallery,
@@ -313,7 +313,7 @@ let ExtensionManagementCLI = class ExtensionManagementCLI {
313
313
  for (const extensionResult of installationResult) {
314
314
  if (extensionResult.error) {
315
315
  this.logger.error(( localize(
316
- 2281,
316
+ 2655,
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
- 2282,
324
+ 2656,
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(2283, "Extension '{0}' was successfully installed.", basename(vsix))));
346
+ this.logger.info(( localize(2657, "Extension '{0}' was successfully installed.", basename(vsix))));
347
347
  } catch (error) {
348
348
  if (isCancellationError(error)) {
349
- this.logger.info(( localize(2284, "Cancelled installing extension '{0}'.", basename(vsix))));
349
+ this.logger.info(( localize(2658, "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
- 2285,
396
+ 2659,
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
- 2286,
427
+ 2660,
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
- 2287,
435
+ 2661,
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(2288, "Uninstalling {0}...", id)));
441
+ this.logger.info(( localize(2662, "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
- 2289,
449
+ 2663,
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(2290, "Extension '{0}' was successfully uninstalled!", id)));
455
+ this.logger.info(( localize(2664, "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(2291, "Extension '{0}' is not installed on {1}.", id, this.location)) : ( localize(2292, "Extension '{0}' is not installed.", id));
473
+ return this.location ? ( localize(2665, "Extension '{0}' is not installed on {1}.", id, this.location)) : ( localize(2666, "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
- 2293,
478
+ 2667,
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
@@ -3,7 +3,7 @@ import { IExtHostContext } from "@codingame/monaco-vscode-api/vscode/vs/workbenc
3
3
  import { AuthenticationSession, AuthenticationSessionsChangeEvent, AuthenticationSessionAccount, IAuthenticationWwwAuthenticateRequest } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication";
4
4
  import { IAuthenticationExtensionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
5
5
  import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
6
- import { IRegisterAuthenticationProviderDetails, IRegisterDynamicAuthenticationProviderDetails, MainThreadAuthenticationShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
6
+ import { AuthenticationGetSessionOptions, IRegisterAuthenticationProviderDetails, IRegisterDynamicAuthenticationProviderDetails, MainThreadAuthenticationShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
7
7
  import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
8
8
  import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
9
9
  import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
@@ -22,24 +22,8 @@ import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platf
22
22
  import { ISecretStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/secrets/common/secrets.service";
23
23
  import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
24
24
  import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
25
- export interface AuthenticationInteractiveOptions {
26
- detail?: string;
27
- learnMore?: UriComponents;
28
- sessionToRecreate?: AuthenticationSession;
29
- }
30
- export interface AuthenticationGetSessionOptions {
31
- clearSessionPreference?: boolean;
32
- createIfNone?: boolean | AuthenticationInteractiveOptions;
33
- forceNewSession?: boolean | AuthenticationInteractiveOptions;
34
- silent?: boolean;
35
- account?: AuthenticationSessionAccount;
36
- authorizationServer?: UriComponents;
37
- }
38
- /**
39
- * The account icon is a {@link URI} that does not survive being sent over the RPC boundary,
40
- * so it needs to be revived when sessions are received from the extension host.
41
- */
42
- export declare function reviveSessionAccountIcon(session: Dto<AuthenticationSession>): AuthenticationSession;
25
+ /** Revives session URIs received from the extension host. */
26
+ export declare function reviveAuthenticationSession(session: Dto<AuthenticationSession>): AuthenticationSession;
43
27
  export declare class MainThreadAuthentication extends Disposable implements MainThreadAuthenticationShape {
44
28
  private readonly productService;
45
29
  private readonly authenticationService;