@codingame/monaco-vscode-view-common-service-override 11.1.2 → 12.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 (142) hide show
  1. package/index.d.ts +3 -1
  2. package/index.js +110 -1
  3. package/package.json +64 -10
  4. package/service-override/tools/editorAssets.d.ts +1 -0
  5. package/service-override/tools/editorAssets.js +5 -0
  6. package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +21 -0
  7. package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +2 -0
  8. package/vscode/src/vs/platform/webview/common/mimeTypes.d.ts +2 -0
  9. package/vscode/src/vs/platform/webview/common/mimeTypes.js +1 -0
  10. package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +18 -0
  11. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +1 -0
  12. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.d.ts +7 -0
  13. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +116 -115
  14. package/vscode/src/vs/workbench/browser/actions/listCommands.d.ts +1 -0
  15. package/vscode/src/vs/workbench/browser/actions/listCommands.js +120 -125
  16. package/vscode/src/vs/workbench/browser/actions/navigationActions.d.ts +1 -0
  17. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +81 -74
  18. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.d.ts +1 -0
  19. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +216 -250
  20. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.d.ts +21 -0
  21. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +26 -25
  22. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.d.ts +32 -0
  23. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +10 -8
  24. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.d.ts +1 -0
  25. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -64
  26. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.d.ts +50 -0
  27. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +48 -38
  28. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.d.ts +54 -0
  29. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +19 -40
  30. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +1 -1
  31. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.d.ts +1 -0
  32. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +7 -5
  33. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +58 -0
  34. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +6 -4
  35. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.d.ts +45 -0
  36. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +6 -4
  37. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +1 -1
  38. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.d.ts +18 -0
  39. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +16 -16
  40. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.d.ts +65 -0
  41. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +15 -10
  42. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.d.ts +12 -0
  43. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +1 -0
  44. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.d.ts +15 -0
  45. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +27 -25
  46. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.d.ts +1 -0
  47. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +4 -2
  48. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.d.ts +1 -0
  49. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +6 -386
  50. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.d.ts +15 -0
  51. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +385 -0
  52. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +1 -1
  53. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.d.ts +13 -0
  54. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +20 -20
  55. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.d.ts +105 -0
  56. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +50 -62
  57. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.d.ts +18 -0
  58. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +16 -15
  59. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.d.ts +1 -0
  60. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +15 -13
  61. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.d.ts +27 -0
  62. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +2 -1
  63. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.d.ts +13 -0
  64. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -13
  65. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.d.ts +31 -0
  66. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +2 -1
  67. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.d.ts +9 -0
  68. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +15 -14
  69. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.d.ts +45 -0
  70. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +3 -2
  71. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +43 -0
  72. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +37 -39
  73. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.d.ts +11 -0
  74. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +22 -21
  75. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.d.ts +7 -0
  76. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +3 -2
  77. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +1 -1
  78. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +117 -0
  79. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +57 -53
  80. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.d.ts +22 -0
  81. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +27 -25
  82. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +41 -0
  83. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +15 -13
  84. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.d.ts +29 -0
  85. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +4 -3
  86. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.d.ts +11 -0
  87. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +28 -28
  88. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.d.ts +1 -0
  89. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -5
  90. package/vscode/src/vs/workbench/contrib/sash/browser/sash.d.ts +15 -0
  91. package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +2 -1
  92. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +1 -1
  93. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.d.ts +1 -0
  94. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +54 -56
  95. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.d.ts +50 -0
  96. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +48 -38
  97. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.d.ts +52 -0
  98. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +19 -30
  99. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +101 -0
  100. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +3 -2
  101. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.d.ts +38 -0
  102. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +7 -6
  103. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +23 -0
  104. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +7 -6
  105. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +139 -0
  106. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +58 -56
  107. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +33 -0
  108. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +4 -3
  109. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +21 -0
  110. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +2 -1
  111. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.d.ts +33 -0
  112. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +28 -28
  113. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +50 -0
  114. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +3 -2
  115. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.d.ts +1 -0
  116. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +15 -13
  117. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +64 -0
  118. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +10 -8
  119. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +30 -0
  120. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +1 -0
  121. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.d.ts +6 -0
  122. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +3 -1
  123. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +60 -0
  124. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +64 -63
  125. package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +184 -0
  126. package/vscode/src/vs/workbench/services/history/browser/historyService.js +154 -148
  127. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +1 -1
  128. package/vscode/src/vs/workbench/services/progress/browser/progressService.d.ts +36 -0
  129. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +59 -54
  130. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +34 -0
  131. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +4 -3
  132. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +71 -0
  133. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -2
  134. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.d.ts +122 -0
  135. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +86 -90
  136. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.d.ts +80 -0
  137. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +58 -64
  138. package/override/vs/workbench/browser/parts/editor/textEditor.js +0 -5
  139. package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +0 -11
  140. package/tools/editorAssets.js +0 -4
  141. package/tools/url.js +0 -10
  142. package/viewCommon.js +0 -109
@@ -0,0 +1,21 @@
1
+ import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
2
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
3
+ import { IEditorResolverService } from "vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service";
4
+ import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
5
+ import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
6
+ export declare class DynamicEditorConfigurations extends Disposable implements IWorkbenchContribution {
7
+ private readonly editorResolverService;
8
+ private readonly environmentService;
9
+ static readonly ID = "workbench.contrib.dynamicEditorConfigurations";
10
+ private static readonly AUTO_LOCK_DEFAULT_ENABLED;
11
+ private static readonly AUTO_LOCK_EXTRA_EDITORS;
12
+ private static readonly AUTO_LOCK_REMOVE_EDITORS;
13
+ private readonly configurationRegistry;
14
+ private autoLockConfigurationNode;
15
+ private defaultBinaryEditorConfigurationNode;
16
+ private editorAssociationsConfigurationNode;
17
+ private editorLargeFileConfirmationConfigurationNode;
18
+ constructor(editorResolverService: IEditorResolverService, extensionService: IExtensionService, environmentService: IWorkbenchEnvironmentService);
19
+ private registerListeners;
20
+ private updateDynamicEditorConfigurations;
21
+ }
@@ -1,8 +1,9 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { localize } from 'vscode/vscode/vs/nls';
3
4
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
4
5
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
- import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
6
+ import { Extensions, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
6
7
  import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
7
8
  import { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
8
9
  import { IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service';
@@ -16,43 +17,43 @@ var DynamicEditorConfigurations_1;
16
17
  let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disposable {
17
18
  static { DynamicEditorConfigurations_1 = this; }
18
19
  static { this.ID = 'workbench.contrib.dynamicEditorConfigurations'; }
19
- static { this.AUTO_LOCK_DEFAULT_ENABLED = ( (new Set([
20
+ static { this.AUTO_LOCK_DEFAULT_ENABLED = ( new Set([
20
21
  'terminalEditor',
21
22
  'mainThreadWebview-simpleBrowser.view',
22
23
  'mainThreadWebview-browserPreview'
23
- ]))); }
24
+ ])); }
24
25
  static { this.AUTO_LOCK_EXTRA_EDITORS = [
25
26
  {
26
27
  id: 'workbench.input.interactive',
27
- label: ( localize(9918, 'Interactive Window')),
28
+ label: ( localize(3069, 'Interactive Window')),
28
29
  priority: RegisteredEditorPriority.builtin
29
30
  },
30
31
  {
31
32
  id: 'mainThreadWebview-markdown.preview',
32
- label: ( localize(9919, "Markdown Preview")),
33
+ label: ( localize(3070, "Markdown Preview")),
33
34
  priority: RegisteredEditorPriority.builtin
34
35
  },
35
36
  {
36
37
  id: 'mainThreadWebview-simpleBrowser.view',
37
- label: ( localize(9920, "Simple Browser")),
38
+ label: ( localize(3071, "Simple Browser")),
38
39
  priority: RegisteredEditorPriority.builtin
39
40
  },
40
41
  {
41
42
  id: 'mainThreadWebview-browserPreview',
42
- label: ( localize(9921, "Live Preview")),
43
+ label: ( localize(3072, "Live Preview")),
43
44
  priority: RegisteredEditorPriority.builtin
44
45
  }
45
46
  ]; }
46
- static { this.AUTO_LOCK_REMOVE_EDITORS = ( (new Set([
47
+ static { this.AUTO_LOCK_REMOVE_EDITORS = ( new Set([
47
48
  'vscode-interactive-input',
48
49
  'interactive',
49
50
  'vscode.markdown.preview.editor'
50
- ]))); }
51
+ ])); }
51
52
  constructor(editorResolverService, extensionService, environmentService) {
52
53
  super();
53
54
  this.editorResolverService = editorResolverService;
54
55
  this.environmentService = environmentService;
55
- this.configurationRegistry = ( (Registry.as(Extensions.Configuration)));
56
+ this.configurationRegistry = ( Registry.as(Extensions.Configuration));
56
57
  (async () => {
57
58
  await extensionService.whenInstalledExtensionsRegistered();
58
59
  this.updateDynamicEditorConfigurations();
@@ -63,19 +64,19 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
63
64
  this._register(Event.debounce(this.editorResolverService.onDidChangeEditorRegistrations, (_, e) => e)(() => this.updateDynamicEditorConfigurations()));
64
65
  }
65
66
  updateDynamicEditorConfigurations() {
66
- const lockableEditors = [...this.editorResolverService.getEditors(), ...DynamicEditorConfigurations_1.AUTO_LOCK_EXTRA_EDITORS].filter(e => !( (DynamicEditorConfigurations_1.AUTO_LOCK_REMOVE_EDITORS.has(e.id))));
67
- const binaryEditorCandidates = ( (this.editorResolverService.getEditors().filter(e => e.priority !== RegisteredEditorPriority.exclusive).map(e => e.id)));
67
+ const lockableEditors = [...this.editorResolverService.getEditors(), ...DynamicEditorConfigurations_1.AUTO_LOCK_EXTRA_EDITORS].filter(e => !( DynamicEditorConfigurations_1.AUTO_LOCK_REMOVE_EDITORS.has(e.id)));
68
+ const binaryEditorCandidates = ( this.editorResolverService.getEditors().filter(e => e.priority !== RegisteredEditorPriority.exclusive).map(e => e.id));
68
69
  const autoLockGroupConfiguration = Object.create(null);
69
70
  for (const editor of lockableEditors) {
70
71
  autoLockGroupConfiguration[editor.id] = {
71
72
  type: 'boolean',
72
- default: ( (DynamicEditorConfigurations_1.AUTO_LOCK_DEFAULT_ENABLED.has(editor.id))),
73
+ default: ( DynamicEditorConfigurations_1.AUTO_LOCK_DEFAULT_ENABLED.has(editor.id)),
73
74
  description: editor.label
74
75
  };
75
76
  }
76
77
  const defaultAutoLockGroupConfiguration = Object.create(null);
77
78
  for (const editor of lockableEditors) {
78
- defaultAutoLockGroupConfiguration[editor.id] = ( (DynamicEditorConfigurations_1.AUTO_LOCK_DEFAULT_ENABLED.has(editor.id)));
79
+ defaultAutoLockGroupConfiguration[editor.id] = ( DynamicEditorConfigurations_1.AUTO_LOCK_DEFAULT_ENABLED.has(editor.id));
79
80
  }
80
81
  const oldAutoLockConfigurationNode = this.autoLockConfigurationNode;
81
82
  this.autoLockConfigurationNode = {
@@ -84,7 +85,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
84
85
  'workbench.editor.autoLockGroups': {
85
86
  type: 'object',
86
87
  description: ( localize(
87
- 9922,
88
+ 3073,
88
89
  "If an editor matching one of the listed types is opened as the first in an editor group and more than one group is open, the group is automatically locked. Locked groups will only be used for opening editors when explicitly chosen by a user gesture (for example drag and drop), but not by default. Consequently, the active editor in a locked group is less likely to be replaced accidentally with a different editor."
89
90
  )),
90
91
  properties: autoLockGroupConfiguration,
@@ -102,7 +103,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
102
103
  default: '',
103
104
  enum: [...binaryEditorCandidates, ''],
104
105
  description: ( localize(
105
- 9923,
106
+ 3074,
106
107
  "The default editor for files detected as binary. If undefined, the user will be presented with a picker."
107
108
  )),
108
109
  }
@@ -115,7 +116,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
115
116
  'workbench.editorAssociations': {
116
117
  type: 'object',
117
118
  markdownDescription: ( localize(
118
- 9924,
119
+ 3075,
119
120
  "Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
120
121
  )),
121
122
  patternProperties: {
@@ -135,9 +136,9 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
135
136
  type: 'number',
136
137
  default: getLargeFileConfirmationLimit(this.environmentService.remoteAuthority) / ByteSize.MB,
137
138
  minimum: 1,
138
- scope: 4 ,
139
+ scope: ConfigurationScope.RESOURCE,
139
140
  markdownDescription: ( localize(
140
- 9925,
141
+ 3076,
141
142
  "Controls the minimum size of a file in MB before asking for confirmation when opening in the editor. Note that this setting may not apply to all editor types and environments."
142
143
  )),
143
144
  }
@@ -159,10 +160,10 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
159
160
  });
160
161
  }
161
162
  };
162
- DynamicEditorConfigurations = DynamicEditorConfigurations_1 = ( (__decorate([
163
- ( (__param(0, IEditorResolverService))),
164
- ( (__param(1, IExtensionService))),
165
- ( (__param(2, IWorkbenchEnvironmentService)))
166
- ], DynamicEditorConfigurations)));
163
+ DynamicEditorConfigurations = DynamicEditorConfigurations_1 = ( __decorate([
164
+ ( __param(0, IEditorResolverService)),
165
+ ( __param(1, IExtensionService)),
166
+ ( __param(2, IWorkbenchEnvironmentService))
167
+ ], DynamicEditorConfigurations));
167
168
 
168
169
  export { DynamicEditorConfigurations };
@@ -0,0 +1,32 @@
1
+ import { Event } from "vscode/vscode/vs/base/common/event";
2
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
3
+ import { IProgressIndicator } from "vscode/vscode/vs/platform/progress/common/progress";
4
+ import { PaneCompositeDescriptor } from "@codingame/monaco-vscode-b8988f79-16c1-5bff-b0e7-699bab3431da-common/vscode/vs/workbench/browser/panecomposite";
5
+ import { IPaneComposite } from "vscode/vscode/vs/workbench/common/panecomposite";
6
+ import { ViewContainerLocation } from "vscode/vscode/vs/workbench/common/views";
7
+ import { IPaneCompositePartService } from "vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service";
8
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
9
+ export declare class PaneCompositePartService extends Disposable implements IPaneCompositePartService {
10
+ readonly _serviceBrand: undefined;
11
+ readonly onDidPaneCompositeOpen: Event<{
12
+ composite: IPaneComposite;
13
+ viewContainerLocation: ViewContainerLocation;
14
+ }>;
15
+ readonly onDidPaneCompositeClose: Event<{
16
+ composite: IPaneComposite;
17
+ viewContainerLocation: ViewContainerLocation;
18
+ }>;
19
+ private readonly paneCompositeParts;
20
+ constructor(instantiationService: IInstantiationService);
21
+ openPaneComposite(id: string | undefined, viewContainerLocation: ViewContainerLocation, focus?: boolean): Promise<IPaneComposite | undefined>;
22
+ getActivePaneComposite(viewContainerLocation: ViewContainerLocation): IPaneComposite | undefined;
23
+ getPaneComposite(id: string, viewContainerLocation: ViewContainerLocation): PaneCompositeDescriptor | undefined;
24
+ getPaneComposites(viewContainerLocation: ViewContainerLocation): PaneCompositeDescriptor[];
25
+ getPinnedPaneCompositeIds(viewContainerLocation: ViewContainerLocation): string[];
26
+ getVisiblePaneCompositeIds(viewContainerLocation: ViewContainerLocation): string[];
27
+ getPaneCompositeIds(viewContainerLocation: ViewContainerLocation): string[];
28
+ getProgressIndicator(id: string, viewContainerLocation: ViewContainerLocation): IProgressIndicator | undefined;
29
+ hideActivePaneComposite(viewContainerLocation: ViewContainerLocation): void;
30
+ getLastActivePaneCompositeId(viewContainerLocation: ViewContainerLocation): string;
31
+ private getPartByLocation;
32
+ }
@@ -1,11 +1,13 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { Event } from 'vscode/vscode/vs/base/common/event';
3
4
  import { assertIsDefined } from 'vscode/vscode/vs/base/common/types';
5
+ import 'vscode/vscode/vs/platform/instantiation/common/extensions';
4
6
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
5
- import { AuxiliaryBarPart } from '@codingame/monaco-vscode-view-common-views-workbench-common/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart';
6
- import { PanelPart } from '@codingame/monaco-vscode-view-common-views-workbench-common/vscode/vs/workbench/browser/parts/panel/panelPart';
7
- import { SidebarPart } from '@codingame/monaco-vscode-view-common-views-workbench-common/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
8
- import { ViewContainerLocations } from 'vscode/vscode/vs/workbench/common/views';
7
+ import { AuxiliaryBarPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart';
8
+ import { PanelPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/workbench/browser/parts/panel/panelPart';
9
+ import { SidebarPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
10
+ import { ViewContainerLocation, ViewContainerLocations } from 'vscode/vscode/vs/workbench/common/views';
9
11
  import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
10
12
 
11
13
  let PaneCompositePartService = class PaneCompositePartService extends Disposable {
@@ -15,9 +17,9 @@ let PaneCompositePartService = class PaneCompositePartService extends Disposable
15
17
  const panelPart = instantiationService.createInstance(PanelPart);
16
18
  const sideBarPart = instantiationService.createInstance(SidebarPart);
17
19
  const auxiliaryBarPart = instantiationService.createInstance(AuxiliaryBarPart);
18
- this.paneCompositeParts.set(1 , panelPart);
19
- this.paneCompositeParts.set(0 , sideBarPart);
20
- this.paneCompositeParts.set(2 , auxiliaryBarPart);
20
+ this.paneCompositeParts.set(ViewContainerLocation.Panel, panelPart);
21
+ this.paneCompositeParts.set(ViewContainerLocation.Sidebar, sideBarPart);
22
+ this.paneCompositeParts.set(ViewContainerLocation.AuxiliaryBar, auxiliaryBarPart);
21
23
  const eventDisposables = this._register(( new DisposableStore()));
22
24
  this.onDidPaneCompositeOpen = Event.any(...( ViewContainerLocations.map(loc => ( Event.map(
23
25
  this.paneCompositeParts.get(loc).onDidPaneCompositeOpen,
@@ -1,16 +1,20 @@
1
- import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
1
+
2
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
2
3
  import { localize, localize2 } from 'vscode/vscode/vs/nls';
3
- import { CallHierarchyProviderRegistry, CallHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
4
+ import { CallHierarchyDirection, CallHierarchyProviderRegistry, CallHierarchyModel } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
4
5
  import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
5
6
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
6
7
  import { CallHierarchyTreePeekWidget } from './callHierarchyPeek.js';
7
8
  import { Event } from 'vscode/vscode/vs/base/common/event';
8
- import { registerEditorContribution, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
9
+ import { registerEditorContribution, EditorContributionInstantiation, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
9
10
  import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
10
11
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
11
12
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
13
+ import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
14
+ import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
12
15
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
13
16
  import { PeekContext } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
17
+ import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
14
18
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
15
19
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
16
20
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
@@ -20,17 +24,17 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
20
24
  import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
21
25
 
22
26
  var CallHierarchyController_1;
23
- const _ctxHasCallHierarchyProvider = ( (new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4226, 'Whether a call hierarchy provider is available')))));
24
- const _ctxCallHierarchyVisible = ( (new RawContextKey('callHierarchyVisible', false, ( localize(4227, 'Whether call hierarchy peek is currently showing')))));
25
- const _ctxCallHierarchyDirection = ( (new RawContextKey(
27
+ const _ctxHasCallHierarchyProvider = ( new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4111, 'Whether a call hierarchy provider is available'))));
28
+ const _ctxCallHierarchyVisible = ( new RawContextKey('callHierarchyVisible', false, ( localize(4112, 'Whether call hierarchy peek is currently showing'))));
29
+ const _ctxCallHierarchyDirection = ( new RawContextKey(
26
30
  'callHierarchyDirection',
27
31
  undefined,
28
- { type: 'string', description: ( localize(4228, 'Whether call hierarchy shows incoming or outgoing calls')) }
29
- )));
32
+ { type: 'string', description: ( localize(4113, 'Whether call hierarchy shows incoming or outgoing calls')) }
33
+ ));
30
34
  function sanitizedDirection(candidate) {
31
- return candidate === "outgoingCalls" || candidate === "incomingCalls"
35
+ return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo
32
36
  ? candidate
33
- : "incomingCalls" ;
37
+ : CallHierarchyDirection.CallsTo;
34
38
  }
35
39
  let CallHierarchyController = class CallHierarchyController {
36
40
  static { CallHierarchyController_1 = this; }
@@ -45,13 +49,13 @@ let CallHierarchyController = class CallHierarchyController {
45
49
  this._storageService = _storageService;
46
50
  this._editorService = _editorService;
47
51
  this._instantiationService = _instantiationService;
48
- this._dispoables = ( (new DisposableStore()));
49
- this._sessionDisposables = ( (new DisposableStore()));
52
+ this._dispoables = ( new DisposableStore());
53
+ this._sessionDisposables = ( new DisposableStore());
50
54
  this._ctxIsVisible = _ctxCallHierarchyVisible.bindTo(this._contextKeyService);
51
55
  this._ctxHasProvider = _ctxHasCallHierarchyProvider.bindTo(this._contextKeyService);
52
56
  this._ctxDirection = _ctxCallHierarchyDirection.bindTo(this._contextKeyService);
53
57
  this._dispoables.add(Event.any(_editor.onDidChangeModel, _editor.onDidChangeModelLanguage, CallHierarchyProviderRegistry.onDidChange)(() => {
54
- this._ctxHasProvider.set(_editor.hasModel() && ( (CallHierarchyProviderRegistry.has(_editor.getModel()))));
58
+ this._ctxHasProvider.set(_editor.hasModel() && ( CallHierarchyProviderRegistry.has(_editor.getModel())));
55
59
  }));
56
60
  this._dispoables.add(this._sessionDisposables);
57
61
  }
@@ -67,12 +71,12 @@ let CallHierarchyController = class CallHierarchyController {
67
71
  }
68
72
  const document = this._editor.getModel();
69
73
  const position = this._editor.getPosition();
70
- if (!( (CallHierarchyProviderRegistry.has(document)))) {
74
+ if (!( CallHierarchyProviderRegistry.has(document))) {
71
75
  return;
72
76
  }
73
- const cts = ( (new CancellationTokenSource()));
77
+ const cts = ( new CancellationTokenSource());
74
78
  const model = CallHierarchyModel.create(document, position, cts.token);
75
- const direction = sanitizedDirection(this._storageService.get(CallHierarchyController_1._StorageDirection, 0 , "incomingCalls" ));
79
+ const direction = sanitizedDirection(this._storageService.get(CallHierarchyController_1._StorageDirection, StorageScope.PROFILE, CallHierarchyDirection.CallsTo));
76
80
  this._showCallHierarchyWidget(position, direction, model, cts);
77
81
  }
78
82
  async startCallHierarchyFromCallHierarchy() {
@@ -90,7 +94,7 @@ let CallHierarchyController = class CallHierarchyController {
90
94
  }
91
95
  const newModel = model.fork(call.item);
92
96
  this._sessionDisposables.clear();
93
- CallHierarchyController_1.get(newEditor)?._showCallHierarchyWidget(Range.lift(newModel.root.selectionRange).getStartPosition(), this._widget.direction, Promise.resolve(newModel), ( (new CancellationTokenSource())));
97
+ CallHierarchyController_1.get(newEditor)?._showCallHierarchyWidget(Range.lift(newModel.root.selectionRange).getStartPosition(), this._widget.direction, Promise.resolve(newModel), ( new CancellationTokenSource()));
94
98
  }
95
99
  _showCallHierarchyWidget(position, direction, model, cts) {
96
100
  this._ctxIsVisible.set(true);
@@ -100,7 +104,7 @@ let CallHierarchyController = class CallHierarchyController {
100
104
  this._widget.showLoading();
101
105
  this._sessionDisposables.add(this._widget.onDidClose(() => {
102
106
  this.endCallHierarchy();
103
- this._storageService.store(CallHierarchyController_1._StorageDirection, this._widget.direction, 0 , 0 );
107
+ this._storageService.store(CallHierarchyController_1._StorageDirection, this._widget.direction, StorageScope.PROFILE, StorageTarget.USER);
104
108
  }));
105
109
  this._sessionDisposables.add({ dispose() { cts.dispose(true); } });
106
110
  this._sessionDisposables.add(this._widget);
@@ -113,23 +117,23 @@ let CallHierarchyController = class CallHierarchyController {
113
117
  this._widget.showModel(model);
114
118
  }
115
119
  else {
116
- this._widget.showMessage(( localize(4229, "No results")));
120
+ this._widget.showMessage(( localize(4114, "No results")));
117
121
  }
118
122
  }).catch(err => {
119
123
  if (isCancellationError(err)) {
120
124
  this.endCallHierarchy();
121
125
  return;
122
126
  }
123
- this._widget.showMessage(( localize(4230, "Failed to show call hierarchy")));
127
+ this._widget.showMessage(( localize(4115, "Failed to show call hierarchy")));
124
128
  });
125
129
  }
126
130
  showOutgoingCalls() {
127
- this._widget?.updateDirection("outgoingCalls" );
128
- this._ctxDirection.set("outgoingCalls" );
131
+ this._widget?.updateDirection(CallHierarchyDirection.CallsFrom);
132
+ this._ctxDirection.set(CallHierarchyDirection.CallsFrom);
129
133
  }
130
134
  showIncomingCalls() {
131
- this._widget?.updateDirection("incomingCalls" );
132
- this._ctxDirection.set("incomingCalls" );
135
+ this._widget?.updateDirection(CallHierarchyDirection.CallsTo);
136
+ this._ctxDirection.set(CallHierarchyDirection.CallsTo);
133
137
  }
134
138
  endCallHierarchy() {
135
139
  this._sessionDisposables.clear();
@@ -137,34 +141,30 @@ let CallHierarchyController = class CallHierarchyController {
137
141
  this._editor.focus();
138
142
  }
139
143
  };
140
- CallHierarchyController = CallHierarchyController_1 = ( (__decorate([
141
- ( (__param(1, IContextKeyService))),
142
- ( (__param(2, IStorageService))),
143
- ( (__param(3, ICodeEditorService))),
144
- ( (__param(4, IInstantiationService)))
145
- ], CallHierarchyController)));
146
- registerEditorContribution(CallHierarchyController.Id, CallHierarchyController, 0 );
144
+ CallHierarchyController = CallHierarchyController_1 = ( __decorate([
145
+ ( __param(1, IContextKeyService)),
146
+ ( __param(2, IStorageService)),
147
+ ( __param(3, ICodeEditorService)),
148
+ ( __param(4, IInstantiationService))
149
+ ], CallHierarchyController));
150
+ registerEditorContribution(CallHierarchyController.Id, CallHierarchyController, EditorContributionInstantiation.Eager);
147
151
  registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
148
152
  constructor() {
149
153
  super({
150
154
  id: 'editor.showCallHierarchy',
151
- title: ( localize2(4231, 'Peek Call Hierarchy')),
155
+ title: ( localize2(4116, 'Peek Call Hierarchy')),
152
156
  menu: {
153
157
  id: MenuId.EditorContextPeek,
154
158
  group: 'navigation',
155
159
  order: 1000,
156
- when: ( (ContextKeyExpr.and(
157
- _ctxHasCallHierarchyProvider,
158
- PeekContext.notInPeekEditor,
159
- (EditorContextKeys.isInEmbeddedEditor.toNegated())
160
- ))),
160
+ when: ( ContextKeyExpr.and(_ctxHasCallHierarchyProvider, PeekContext.notInPeekEditor, ( EditorContextKeys.isInEmbeddedEditor.toNegated()))),
161
161
  },
162
162
  keybinding: {
163
163
  when: EditorContextKeys.editorTextFocus,
164
- weight: 200 ,
165
- primary: 1024 + 512 + 38
164
+ weight: KeybindingWeight.WorkbenchContrib,
165
+ primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH
166
166
  },
167
- precondition: ( (ContextKeyExpr.and(_ctxHasCallHierarchyProvider, PeekContext.notInPeekEditor))),
167
+ precondition: ( ContextKeyExpr.and(_ctxHasCallHierarchyProvider, PeekContext.notInPeekEditor)),
168
168
  f1: true
169
169
  });
170
170
  }
@@ -176,19 +176,16 @@ registerAction2(class extends EditorAction2 {
176
176
  constructor() {
177
177
  super({
178
178
  id: 'editor.showIncomingCalls',
179
- title: ( localize2(4232, 'Show Incoming Calls')),
180
- icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4233, 'Icon for incoming calls in the call hierarchy view.'))),
181
- precondition: ( (ContextKeyExpr.and(
182
- _ctxCallHierarchyVisible,
183
- (_ctxCallHierarchyDirection.isEqualTo("outgoingCalls" ))
184
- ))),
179
+ title: ( localize2(4117, 'Show Incoming Calls')),
180
+ icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4118, 'Icon for incoming calls in the call hierarchy view.'))),
181
+ precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom)))),
185
182
  keybinding: {
186
- weight: 200 ,
187
- primary: 1024 + 512 + 38 ,
183
+ weight: KeybindingWeight.WorkbenchContrib,
184
+ primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH,
188
185
  },
189
186
  menu: {
190
187
  id: CallHierarchyTreePeekWidget.TitleMenu,
191
- when: ( (_ctxCallHierarchyDirection.isEqualTo("outgoingCalls" ))),
188
+ when: ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom)),
192
189
  order: 1,
193
190
  }
194
191
  });
@@ -201,19 +198,16 @@ registerAction2(class extends EditorAction2 {
201
198
  constructor() {
202
199
  super({
203
200
  id: 'editor.showOutgoingCalls',
204
- title: ( localize2(4234, 'Show Outgoing Calls')),
205
- icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4235, 'Icon for outgoing calls in the call hierarchy view.'))),
206
- precondition: ( (ContextKeyExpr.and(
207
- _ctxCallHierarchyVisible,
208
- (_ctxCallHierarchyDirection.isEqualTo("incomingCalls" ))
209
- ))),
201
+ title: ( localize2(4119, 'Show Outgoing Calls')),
202
+ icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4120, 'Icon for outgoing calls in the call hierarchy view.'))),
203
+ precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo)))),
210
204
  keybinding: {
211
- weight: 200 ,
212
- primary: 1024 + 512 + 38 ,
205
+ weight: KeybindingWeight.WorkbenchContrib,
206
+ primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH,
213
207
  },
214
208
  menu: {
215
209
  id: CallHierarchyTreePeekWidget.TitleMenu,
216
- when: ( (_ctxCallHierarchyDirection.isEqualTo("incomingCalls" ))),
210
+ when: ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo)),
217
211
  order: 1
218
212
  }
219
213
  });
@@ -226,11 +220,11 @@ registerAction2(class extends EditorAction2 {
226
220
  constructor() {
227
221
  super({
228
222
  id: 'editor.refocusCallHierarchy',
229
- title: ( localize2(4236, 'Refocus Call Hierarchy')),
223
+ title: ( localize2(4121, 'Refocus Call Hierarchy')),
230
224
  precondition: _ctxCallHierarchyVisible,
231
225
  keybinding: {
232
- weight: 200 ,
233
- primary: 1024 + 3
226
+ weight: KeybindingWeight.WorkbenchContrib,
227
+ primary: KeyMod.Shift + KeyCode.Enter
234
228
  }
235
229
  });
236
230
  }
@@ -242,12 +236,12 @@ registerAction2(class extends EditorAction2 {
242
236
  constructor() {
243
237
  super({
244
238
  id: 'editor.closeCallHierarchy',
245
- title: ( localize(4237, 'Close')),
239
+ title: ( localize(4122, 'Close')),
246
240
  icon: Codicon.close,
247
241
  precondition: _ctxCallHierarchyVisible,
248
242
  keybinding: {
249
- weight: 200 + 10,
250
- primary: 9 ,
243
+ weight: KeybindingWeight.WorkbenchContrib + 10,
244
+ primary: KeyCode.Escape,
251
245
  when: ContextKeyExpr.not('config.editor.stablePeek')
252
246
  },
253
247
  menu: {
@@ -0,0 +1,50 @@
1
+ import * as peekView from "vscode/vscode/vs/editor/contrib/peekView/browser/peekView";
2
+ import { ICodeEditor } from "vscode/vscode/vs/editor/browser/editorBrowser";
3
+ import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
4
+ import { CallHierarchyDirection, CallHierarchyModel } from "@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy";
5
+ import * as callHTree from "./callHierarchyTree.js";
6
+ import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
7
+ import { ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
8
+ import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
9
+ import { IPosition } from "vscode/vscode/vs/editor/common/core/position";
10
+ import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
11
+ import { MenuId } from "vscode/vscode/vs/platform/actions/common/actions";
12
+ import { IMenuService } from "vscode/vscode/vs/platform/actions/common/actions.service";
13
+ import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
14
+ export declare class CallHierarchyTreePeekWidget extends peekView.PeekViewWidget {
15
+ private readonly _where;
16
+ private _direction;
17
+ private readonly _peekViewService;
18
+ private readonly _editorService;
19
+ private readonly _textModelService;
20
+ private readonly _storageService;
21
+ private readonly _menuService;
22
+ private readonly _contextKeyService;
23
+ private readonly _instantiationService;
24
+ static readonly TitleMenu: MenuId;
25
+ private _parent;
26
+ private _message;
27
+ private _splitView;
28
+ private _tree;
29
+ private _treeViewStates;
30
+ private _editor;
31
+ private _dim;
32
+ private _layoutInfo;
33
+ private readonly _previewDisposable;
34
+ constructor(editor: ICodeEditor, _where: IPosition, _direction: CallHierarchyDirection, themeService: IThemeService, _peekViewService: peekView.IPeekViewService, _editorService: IEditorService, _textModelService: ITextModelService, _storageService: IStorageService, _menuService: IMenuService, _contextKeyService: IContextKeyService, _instantiationService: IInstantiationService);
35
+ dispose(): void;
36
+ get direction(): CallHierarchyDirection;
37
+ private _applyTheme;
38
+ protected _fillHead(container: HTMLElement): void;
39
+ protected _fillBody(parent: HTMLElement): void;
40
+ private _updatePreview;
41
+ showLoading(): void;
42
+ showMessage(message: string): void;
43
+ showModel(model: CallHierarchyModel): Promise<void>;
44
+ getModel(): CallHierarchyModel | undefined;
45
+ getFocused(): callHTree.Call | undefined;
46
+ updateDirection(newDirection: CallHierarchyDirection): Promise<void>;
47
+ private _show;
48
+ protected _onWidth(width: number): void;
49
+ protected _doLayoutBody(height: number, width: number): void;
50
+ }