@codingame/monaco-vscode-extensions-service-override 7.1.0 → 8.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 (29) hide show
  1. package/package.json +3 -3
  2. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +44 -77
  3. package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +19 -33
  4. package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +3 -5
  5. package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +17 -5
  6. package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +3 -4
  7. package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +2 -7
  8. package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +3 -3
  9. package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +19 -27
  10. package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +29 -38
  11. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +4 -3
  12. package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +2 -3
  13. package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +5 -6
  14. package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +2 -3
  15. package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +2 -3
  16. package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +21 -36
  17. package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +2 -3
  18. package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +2 -3
  19. package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +19 -13
  20. package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +4 -6
  21. package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +4 -6
  22. package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +2 -8
  23. package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +14 -26
  24. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +29 -36
  25. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +16 -0
  26. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +27 -32
  27. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +2 -3
  28. package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +4 -5
  29. package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +9 -14
@@ -5,7 +5,7 @@ import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
5
5
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
6
6
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
7
7
  import { StopWatch } from 'vscode/vscode/vs/base/common/stopwatch';
8
- import { localize2WithPath } from 'vscode/vscode/vs/nls';
8
+ import { localize2 } from 'vscode/vscode/vs/nls';
9
9
  import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
10
10
  import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
11
11
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
@@ -20,7 +20,6 @@ import { ActivationKind } from 'vscode/vscode/vs/workbench/services/extensions/c
20
20
  import { RPCProtocol, RequestInitiator } from 'vscode/vscode/vs/workbench/services/extensions/common/rpcProtocol';
21
21
 
22
22
  var ExtensionHostManager_1;
23
- const _moduleId = "vs/workbench/services/extensions/common/extensionHostManager";
24
23
  let ExtensionHostManager = ExtensionHostManager_1 = class ExtensionHostManager extends Disposable {
25
24
  get pid() {
26
25
  return this._extensionHost.pid;
@@ -484,7 +483,7 @@ registerAction2(class MeasureExtHostLatencyAction extends Action2 {
484
483
  constructor() {
485
484
  super({
486
485
  id: 'editor.action.measureExtHostLatency',
487
- title: ( localize2WithPath(_moduleId, 0, "Measure Extension Host Latency")),
486
+ title: ( localize2(5151, "Measure Extension Host Latency")),
488
487
  category: Categories.Developer,
489
488
  f1: true
490
489
  });
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { isNonEmptyArray } from 'vscode/vscode/vs/base/common/arrays';
3
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize } from 'vscode/vscode/vs/nls';
4
4
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
5
  import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
6
6
  import { allApiProposals } from 'vscode/vscode/vs/platform/extensions/common/extensionsApiProposals';
@@ -12,7 +12,6 @@ import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/service
12
12
  import { Extensions } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
13
13
  import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
14
14
 
15
- const _moduleId = "vs/workbench/services/extensions/common/extensionsProposedApi";
16
15
  let ExtensionsProposedApi = class ExtensionsProposedApi {
17
16
  constructor(_logService, _environmentService, productService) {
18
17
  this._logService = _logService;
@@ -90,10 +89,10 @@ class ApiProposalsMarkdowneRenderer extends Disposable {
90
89
  this.type = 'markdown';
91
90
  }
92
91
  shouldRender(manifest) {
93
- return !!manifest.enabledApiProposals?.length;
92
+ return !!manifest.originalEnabledApiProposals?.length || !!manifest.enabledApiProposals?.length;
94
93
  }
95
94
  render(manifest) {
96
- const enabledApiProposals = manifest.enabledApiProposals || [];
95
+ const enabledApiProposals = manifest.originalEnabledApiProposals ?? manifest.enabledApiProposals ?? [];
97
96
  const data = ( (new MarkdownString()));
98
97
  if (enabledApiProposals.length) {
99
98
  for (const proposal of enabledApiProposals) {
@@ -108,7 +107,7 @@ class ApiProposalsMarkdowneRenderer extends Disposable {
108
107
  }
109
108
  ( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
110
109
  id: 'enabledApiProposals',
111
- label: ( localizeWithPath(_moduleId, 0, "API Proposals")),
110
+ label: ( localize(1577, "API Proposals")),
112
111
  access: {
113
112
  canToggle: false
114
113
  },
@@ -1,16 +1,14 @@
1
1
  import { ExtensionIdentifierMap } from 'vscode/vscode/vs/platform/extensions/common/extensions';
2
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
2
+ import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { semverExports } from 'vscode/external/vscode-semver/semver.js';
4
4
 
5
- const _moduleId = "vs/workbench/services/extensions/common/extensionsUtil";
6
5
  function dedupExtensions(system, user, workspace, development, logService) {
7
6
  const result = ( (new ExtensionIdentifierMap()));
8
7
  system.forEach((systemExtension) => {
9
8
  const extension = result.get(systemExtension.identifier);
10
9
  if (extension) {
11
- logService.warn(( localizeWithPath(
12
- _moduleId,
13
- 0,
10
+ logService.warn(( localize(
11
+ 5152,
14
12
  "Overwriting extension {0} with {1}.",
15
13
  extension.extensionLocation.fsPath,
16
14
  systemExtension.extensionLocation.fsPath
@@ -29,9 +27,8 @@ function dedupExtensions(system, user, workspace, development, logService) {
29
27
  userExtension.isBuiltin = true;
30
28
  }
31
29
  else {
32
- logService.warn(( localizeWithPath(
33
- _moduleId,
34
- 0,
30
+ logService.warn(( localize(
31
+ 5152,
35
32
  "Overwriting extension {0} with {1}.",
36
33
  extension.extensionLocation.fsPath,
37
34
  userExtension.extensionLocation.fsPath
@@ -47,9 +44,8 @@ function dedupExtensions(system, user, workspace, development, logService) {
47
44
  workspace.forEach(workspaceExtension => {
48
45
  const extension = result.get(workspaceExtension.identifier);
49
46
  if (extension) {
50
- logService.warn(( localizeWithPath(
51
- _moduleId,
52
- 1,
47
+ logService.warn(( localize(
48
+ 5153,
53
49
  "Overwriting {0} with Workspace Extension {1}.",
54
50
  extension.extensionLocation.fsPath,
55
51
  workspaceExtension.extensionLocation.fsPath
@@ -58,9 +54,8 @@ function dedupExtensions(system, user, workspace, development, logService) {
58
54
  result.set(workspaceExtension.identifier, workspaceExtension);
59
55
  });
60
56
  development.forEach(developedExtension => {
61
- logService.info(( localizeWithPath(
62
- _moduleId,
63
- 2,
57
+ logService.info(( localize(
58
+ 5154,
64
59
  "Loading development extension at {0}",
65
60
  developedExtension.extensionLocation.fsPath
66
61
  )));