@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
@@ -1,4 +1,5 @@
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 { findLast } from 'vscode/vscode/vs/base/common/arraysFind';
3
4
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
5
  import { observableValue, transaction } from 'vscode/vscode/vs/base/common/observableInternal/base';
@@ -9,10 +10,11 @@ import { derived } from 'vscode/vscode/vs/base/common/observableInternal/derived
9
10
  import 'vscode/vscode/vs/base/common/cancellation';
10
11
  import { derivedObservableWithWritableCache } from 'vscode/vscode/vs/base/common/observableInternal/utils';
11
12
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
13
+ import { ScrollType } from 'vscode/vscode/vs/editor/common/editorCommon';
12
14
  import { localize } from 'vscode/vscode/vs/nls';
13
15
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
14
16
  import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
15
- import { LineRange } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
17
+ import { LineRange } from '@codingame/monaco-vscode-464d4abe-0937-5367-af84-1b9279e14ea3-common/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
16
18
  import { observableConfigValue } from 'vscode/vscode/vs/platform/observable/common/platformObservableUtils';
17
19
 
18
20
  let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
@@ -27,7 +29,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
27
29
  this.configurationService = configurationService;
28
30
  this.notificationService = notificationService;
29
31
  this.manuallySetActiveModifiedBaseRange = observableValue(this, { range: undefined, counter: 0 });
30
- this.attachedHistory = this._register(( (new AttachedHistory(this.model.resultTextModel))));
32
+ this.attachedHistory = this._register(( new AttachedHistory(this.model.resultTextModel)));
31
33
  this.shouldUseAppendInsteadOfAccept = observableConfigValue('mergeEditor.shouldUseAppendInsteadOfAccept', false, this.configurationService);
32
34
  this.counter = 0;
33
35
  this.lastFocusedEditor = derivedObservableWithWritableCache(this, (reader, lastValue) => {
@@ -56,7 +58,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
56
58
  return undefined;
57
59
  }
58
60
  const selections = sourceEditor.selection.read(reader) || [];
59
- const rangesInBase = ( (selections.map((selection) => {
61
+ const rangesInBase = ( selections.map((selection) => {
60
62
  if (sourceEditor === this.inputCodeEditorView1) {
61
63
  return this.model.translateInputRangeToBase(1, selection);
62
64
  }
@@ -72,7 +74,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
72
74
  else {
73
75
  return selection;
74
76
  }
75
- })));
77
+ }));
76
78
  return {
77
79
  rangesInBase,
78
80
  sourceEditor
@@ -106,10 +108,10 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
106
108
  const baseRangeStates = [];
107
109
  for (const change of e.changes) {
108
110
  const rangeInBase = this.model.translateResultRangeToBase(Range.lift(change.range));
109
- const baseRanges = this.model.findModifiedBaseRangesInRange(( (new LineRange(
111
+ const baseRanges = this.model.findModifiedBaseRangesInRange(( new LineRange(
110
112
  rangeInBase.startLineNumber,
111
113
  rangeInBase.endLineNumber - rangeInBase.startLineNumber
112
- ))));
114
+ )));
113
115
  if (baseRanges.length === 1) {
114
116
  const isHandled = this.model.isHandled(baseRanges[0]).get();
115
117
  if (!isHandled) {
@@ -186,7 +188,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
186
188
  lineNumber: startLineNumber,
187
189
  column: editor.editor.getModel().getLineFirstNonWhitespaceColumn(startLineNumber),
188
190
  });
189
- editor.editor.revealLinesNearTop(startLineNumber, endLineNumberExclusive, 0 );
191
+ editor.editor.revealLinesNearTop(startLineNumber, endLineNumberExclusive, ScrollType.Smooth);
190
192
  }
191
193
  }
192
194
  goToNextModifiedBaseRange(predicate) {
@@ -206,7 +208,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
206
208
  toggleActiveConflict(inputNumber) {
207
209
  const activeModifiedBaseRange = this.activeModifiedBaseRange.get();
208
210
  if (!activeModifiedBaseRange) {
209
- this.notificationService.error(( localize(11486, "There is currently no conflict focused that can be toggled.")));
211
+ this.notificationService.error(( localize(7262, "There is currently no conflict focused that can be toggled.")));
210
212
  return;
211
213
  }
212
214
  transaction(tx => {
@@ -221,10 +223,10 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
221
223
  });
222
224
  }
223
225
  };
224
- MergeEditorViewModel = ( (__decorate([
225
- ( (__param(6, IConfigurationService))),
226
- ( (__param(7, INotificationService)))
227
- ], MergeEditorViewModel)));
226
+ MergeEditorViewModel = ( __decorate([
227
+ ( __param(6, IConfigurationService)),
228
+ ( __param(7, INotificationService))
229
+ ], MergeEditorViewModel));
228
230
  class AttachedHistory extends Disposable {
229
231
  constructor(model) {
230
232
  super();
@@ -0,0 +1,29 @@
1
+ import { DisposableStore } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { IReader } from "vscode/vscode/vs/base/common/observable";
3
+ import { ICodeEditor, IViewZoneChangeAccessor } from "vscode/vscode/vs/editor/browser/editorBrowser";
4
+ import { MergeEditorViewModel } from "./viewModel.js";
5
+ export declare class ViewZoneComputer {
6
+ private readonly input1Editor;
7
+ private readonly input2Editor;
8
+ private readonly resultEditor;
9
+ private readonly conflictActionsFactoryInput1;
10
+ private readonly conflictActionsFactoryInput2;
11
+ private readonly conflictActionsFactoryResult;
12
+ constructor(input1Editor: ICodeEditor, input2Editor: ICodeEditor, resultEditor: ICodeEditor);
13
+ computeViewZones(reader: IReader, viewModel: MergeEditorViewModel, options: {
14
+ shouldAlignResult: boolean;
15
+ shouldAlignBase: boolean;
16
+ codeLensesVisible: boolean;
17
+ showNonConflictingChanges: boolean;
18
+ }): MergeEditorViewZones;
19
+ }
20
+ export declare class MergeEditorViewZones {
21
+ readonly input1ViewZones: readonly MergeEditorViewZone[];
22
+ readonly input2ViewZones: readonly MergeEditorViewZone[];
23
+ readonly baseViewZones: readonly MergeEditorViewZone[];
24
+ readonly resultViewZones: readonly MergeEditorViewZone[];
25
+ constructor(input1ViewZones: readonly MergeEditorViewZone[], input2ViewZones: readonly MergeEditorViewZone[], baseViewZones: readonly MergeEditorViewZone[], resultViewZones: readonly MergeEditorViewZone[]);
26
+ }
27
+ export declare abstract class MergeEditorViewZone {
28
+ abstract create(viewZoneChangeAccessor: IViewZoneChangeAccessor, viewZoneIdsToCleanUp: string[], disposableStore: DisposableStore): void;
29
+ }
@@ -1,8 +1,9 @@
1
+
1
2
  import { $ } from 'vscode/vscode/vs/base/browser/dom';
2
3
  import { CompareResult } from 'vscode/vscode/vs/base/common/arrays';
3
- import { LineRange } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
4
- import { join } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/utils';
5
- import { ConflictActionsFactory, ActionsSource } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/view/conflictActions';
4
+ import { LineRange } from '@codingame/monaco-vscode-464d4abe-0937-5367-af84-1b9279e14ea3-common/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
5
+ import { join } from '@codingame/monaco-vscode-464d4abe-0937-5367-af84-1b9279e14ea3-common/vscode/vs/workbench/contrib/mergeEditor/browser/utils';
6
+ import { ConflictActionsFactory, ActionsSource } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/mergeEditor/browser/view/conflictActions';
6
7
  import { getAlignments } from './lineAlignment.js';
7
8
 
8
9
  class ViewZoneComputer {
@@ -0,0 +1,11 @@
1
+ import { IStatusbarService } from "vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service";
2
+ import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
3
+ import { IKeyboardLayoutService } from "vscode/vscode/vs/platform/keyboardLayout/common/keyboardLayout.service";
4
+ import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
5
+ export declare class KeyboardLayoutPickerContribution extends Disposable implements IWorkbenchContribution {
6
+ private readonly keyboardLayoutService;
7
+ private readonly statusbarService;
8
+ static readonly ID = "workbench.contrib.keyboardLayoutPicker";
9
+ private readonly pickerElement;
10
+ constructor(keyboardLayoutService: IKeyboardLayoutService, statusbarService: IStatusbarService);
11
+ }
@@ -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 { localize, localize2 } from 'vscode/vscode/vs/nls';
4
+ import { StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
3
5
  import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
4
6
  import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
- import { parseKeyboardLayoutDescription, areKeyboardLayoutsEqual, getKeyboardLayoutId } from 'vscode/vscode/vs/platform/keyboardLayout/common/keyboardLayout';
7
+ import { parseKeyboardLayoutDescription, areKeyboardLayoutsEqual, getKeyboardLayoutId } from '@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common/vscode/vs/platform/keyboardLayout/common/keyboardLayout';
6
8
  import { IKeyboardLayoutService } from 'vscode/vscode/vs/platform/keyboardLayout/common/keyboardLayout.service';
7
- import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
8
- import { KEYBOARD_LAYOUT_OPEN_PICKER } from 'vscode/vscode/vs/workbench/contrib/preferences/common/preferences';
9
+ import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
10
+ import { KEYBOARD_LAYOUT_OPEN_PICKER } from '@codingame/monaco-vscode-0f5ced28-abde-558b-8652-db8e7d4d64aa-common/vscode/vs/workbench/contrib/preferences/common/preferences';
9
11
  import { isMacintosh, isWindows } from 'vscode/vscode/vs/base/common/platform';
10
12
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
11
13
  import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
@@ -21,24 +23,24 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
21
23
  super();
22
24
  this.keyboardLayoutService = keyboardLayoutService;
23
25
  this.statusbarService = statusbarService;
24
- this.pickerElement = this._register(( (new MutableDisposable())));
25
- const name = ( localize(4454, "Keyboard Layout"));
26
+ this.pickerElement = this._register(( new MutableDisposable()));
27
+ const name = ( localize(7915, "Keyboard Layout"));
26
28
  const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
27
29
  if (layout) {
28
30
  const layoutInfo = parseKeyboardLayoutDescription(layout);
29
- const text = ( localize(4455, "Layout: {0}", layoutInfo.label));
31
+ const text = ( localize(7916, "Layout: {0}", layoutInfo.label));
30
32
  this.pickerElement.value = this.statusbarService.addEntry({
31
33
  name,
32
34
  text,
33
35
  ariaLabel: text,
34
36
  command: KEYBOARD_LAYOUT_OPEN_PICKER
35
- }, 'status.workbench.keyboardLayout', 1 );
37
+ }, 'status.workbench.keyboardLayout', StatusbarAlignment.RIGHT);
36
38
  }
37
39
  this._register(this.keyboardLayoutService.onDidChangeKeyboardLayout(() => {
38
40
  const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
39
41
  const layoutInfo = parseKeyboardLayoutDescription(layout);
40
42
  if (this.pickerElement.value) {
41
- const text = ( localize(4455, "Layout: {0}", layoutInfo.label));
43
+ const text = ( localize(7916, "Layout: {0}", layoutInfo.label));
42
44
  this.pickerElement.value.update({
43
45
  name,
44
46
  text,
@@ -47,29 +49,29 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
47
49
  });
48
50
  }
49
51
  else {
50
- const text = ( localize(4455, "Layout: {0}", layoutInfo.label));
52
+ const text = ( localize(7916, "Layout: {0}", layoutInfo.label));
51
53
  this.pickerElement.value = this.statusbarService.addEntry({
52
54
  name,
53
55
  text,
54
56
  ariaLabel: text,
55
57
  command: KEYBOARD_LAYOUT_OPEN_PICKER
56
- }, 'status.workbench.keyboardLayout', 1 );
58
+ }, 'status.workbench.keyboardLayout', StatusbarAlignment.RIGHT);
57
59
  }
58
60
  }));
59
61
  }
60
62
  };
61
- KeyboardLayoutPickerContribution = ( (__decorate([
62
- ( (__param(0, IKeyboardLayoutService))),
63
- ( (__param(1, IStatusbarService)))
64
- ], KeyboardLayoutPickerContribution)));
65
- registerWorkbenchContribution2(KeyboardLayoutPickerContribution.ID, KeyboardLayoutPickerContribution, 1 );
63
+ KeyboardLayoutPickerContribution = ( __decorate([
64
+ ( __param(0, IKeyboardLayoutService)),
65
+ ( __param(1, IStatusbarService))
66
+ ], KeyboardLayoutPickerContribution));
67
+ registerWorkbenchContribution2(KeyboardLayoutPickerContribution.ID, KeyboardLayoutPickerContribution, WorkbenchPhase.BlockStartup);
66
68
  const DEFAULT_CONTENT = [
67
69
  `// ${( localize(
68
- 4456,
70
+ 7917,
69
71
  'Defines the keyboard layout used in VS Code in the browser environment.'
70
72
  ))}`,
71
73
  `// ${( localize(
72
- 4457,
74
+ 7918,
73
75
  'Open VS Code and run "Developer: Inspect Key Mappings (JSON)" from Command Palette.'
74
76
  ))}`,
75
77
  ``,
@@ -80,7 +82,7 @@ registerAction2(class extends Action2 {
80
82
  constructor() {
81
83
  super({
82
84
  id: KEYBOARD_LAYOUT_OPEN_PICKER,
83
- title: ( localize2(4458, "Change Keyboard Layout")),
85
+ title: ( localize2(7919, "Change Keyboard Layout")),
84
86
  f1: true
85
87
  });
86
88
  }
@@ -95,7 +97,7 @@ registerAction2(class extends Action2 {
95
97
  const currentLayout = keyboardLayoutService.getCurrentKeyboardLayout();
96
98
  const layoutConfig = configurationService.getValue('keyboard.layout');
97
99
  const isAutoDetect = layoutConfig === 'autodetect';
98
- const picks = ( (layouts.map(layout => {
100
+ const picks = ( layouts.map(layout => {
99
101
  const picked = !isAutoDetect && areKeyboardLayoutsEqual(currentLayout, layout);
100
102
  const layoutInfo = parseKeyboardLayoutDescription(layout);
101
103
  return {
@@ -105,22 +107,22 @@ registerAction2(class extends Action2 {
105
107
  description: layoutInfo.description + (picked ? ' (Current layout)' : ''),
106
108
  picked: !isAutoDetect && areKeyboardLayoutsEqual(currentLayout, layout)
107
109
  };
108
- }))).sort((a, b) => {
110
+ })).sort((a, b) => {
109
111
  return a.label < b.label ? -1 : (a.label > b.label ? 1 : 0);
110
112
  });
111
113
  if (picks.length > 0) {
112
114
  const platform = isMacintosh ? 'Mac' : isWindows ? 'Win' : 'Linux';
113
- picks.unshift({ type: 'separator', label: ( localize(4459, "Keyboard Layouts ({0})", platform)) });
115
+ picks.unshift({ type: 'separator', label: ( localize(7920, "Keyboard Layouts ({0})", platform)) });
114
116
  }
115
- const configureKeyboardLayout = { label: ( localize(4460, "Configure Keyboard Layout")) };
117
+ const configureKeyboardLayout = { label: ( localize(7921, "Configure Keyboard Layout")) };
116
118
  picks.unshift(configureKeyboardLayout);
117
119
  const autoDetectMode = {
118
- label: ( localize(4461, "Auto Detect")),
120
+ label: ( localize(7922, "Auto Detect")),
119
121
  description: isAutoDetect ? `Current: ${parseKeyboardLayoutDescription(currentLayout).label}` : undefined,
120
122
  picked: isAutoDetect ? true : undefined
121
123
  };
122
124
  picks.unshift(autoDetectMode);
123
- const pick = await quickInputService.pick(picks, { placeHolder: ( localize(4462, "Select Keyboard Layout")), matchOnDescription: true });
125
+ const pick = await quickInputService.pick(picks, { placeHolder: ( localize(7923, "Select Keyboard Layout")), matchOnDescription: true });
124
126
  if (!pick) {
125
127
  return;
126
128
  }
@@ -142,9 +144,7 @@ registerAction2(class extends Action2 {
142
144
  options: { pinned: true }
143
145
  });
144
146
  }, (error) => {
145
- throw ( (new Error(
146
- localize(4463, "Unable to create '{0}' ({1}).", ( (file.toString())), error)
147
- )));
147
+ throw ( new Error(( localize(7924, "Unable to create '{0}' ({1}).", (file.toString()), error))));
148
148
  });
149
149
  return Promise.resolve();
150
150
  }
@@ -1,14 +1,16 @@
1
+
1
2
  import { localize } from 'vscode/vscode/vs/nls';
2
3
  import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
4
+ import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
3
5
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
4
6
  import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
5
7
  import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
6
8
  import { SashSettingsController } from './sash.js';
7
9
  import { isIOS } from 'vscode/vscode/vs/base/common/platform';
8
10
 
9
- ( (Registry.as(Extensions.Workbench)))
10
- .registerWorkbenchContribution(SashSettingsController, 3 );
11
- ( (Registry.as(Extensions$1.Configuration)))
11
+ ( Registry.as(Extensions.Workbench))
12
+ .registerWorkbenchContribution(SashSettingsController, LifecyclePhase.Restored);
13
+ ( Registry.as(Extensions$1.Configuration))
12
14
  .registerConfiguration({
13
15
  ...workbenchConfigurationNodeBase,
14
16
  properties: {
@@ -18,7 +20,7 @@ import { isIOS } from 'vscode/vscode/vs/base/common/platform';
18
20
  minimum: 1,
19
21
  maximum: 20,
20
22
  description: ( localize(
21
- 4452,
23
+ 8403,
22
24
  "Controls the feedback area size in pixels of the dragging area in between views/editors. Set it to a larger value if you feel it's hard to resize views using the mouse."
23
25
  ))
24
26
  },
@@ -28,7 +30,7 @@ import { isIOS } from 'vscode/vscode/vs/base/common/platform';
28
30
  minimum: 0,
29
31
  maximum: 2000,
30
32
  description: ( localize(
31
- 4453,
33
+ 8404,
32
34
  "Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
33
35
  ))
34
36
  },
@@ -0,0 +1,15 @@
1
+ import { IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
2
+ import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
3
+ import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
4
+ import { ILayoutService } from "vscode/vscode/vs/platform/layout/browser/layoutService.service";
5
+ export declare const minSize = 1;
6
+ export declare const maxSize = 20;
7
+ export declare class SashSettingsController implements IWorkbenchContribution, IDisposable {
8
+ private readonly configurationService;
9
+ private readonly layoutService;
10
+ private readonly disposables;
11
+ constructor(configurationService: IConfigurationService, layoutService: ILayoutService);
12
+ private onDidChangeSize;
13
+ private onDidChangeHoverDelay;
14
+ dispose(): void;
15
+ }
@@ -1,4 +1,5 @@
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 { clamp } from 'vscode/vscode/vs/base/common/numbers';
3
4
  import { setGlobalSashSize, setGlobalHoverDelay } from 'vscode/vscode/vs/base/browser/ui/sash/sash';
4
5
  import { Event } from 'vscode/vscode/vs/base/common/event';
@@ -1,4 +1,4 @@
1
- import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css.js';
1
+ import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css';
2
2
 
3
3
  var css = ".monaco-workbench .type-hierarchy .message,.monaco-workbench .type-hierarchy .results{display:none}.monaco-workbench .type-hierarchy[data-state=data] .results{display:inherit;height:100%}.monaco-workbench .type-hierarchy[data-state=message] .message{align-items:center;display:flex;height:100%;justify-content:center}.monaco-workbench .type-hierarchy .editor,.monaco-workbench .type-hierarchy .tree{height:100%}.monaco-editor .type-hierarchy .tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .type-hierarchy .tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-workbench .type-hierarchy .tree .typehierarchy-element{align-items:center;display:flex;flex:1;flex-flow:row nowrap}.monaco-workbench .type-hierarchy .tree .typehierarchy-element .monaco-icon-label{padding-left:4px}.monaco-editor .type-hierarchy .type-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .type-hierarchy .editor .monaco-editor .inputarea.ime-input,.monaco-editor .type-hierarchy .editor .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .type-hierarchy .editor .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}";
4
4
  n(css,{});
@@ -1,10 +1,12 @@
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 { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
3
4
  import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
4
5
  import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
5
6
  import { Event } from 'vscode/vscode/vs/base/common/event';
7
+ import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
6
8
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
7
- import { registerEditorContribution, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
9
+ import { registerEditorContribution, EditorContributionInstantiation, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
8
10
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
9
11
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
10
12
  import { PeekContext } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
@@ -13,22 +15,24 @@ import { registerAction2, MenuId } from 'vscode/vscode/vs/platform/actions/commo
13
15
  import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
14
16
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
15
17
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
18
+ import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
19
+ import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
16
20
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
17
21
  import { TypeHierarchyTreePeekWidget } from './typeHierarchyPeek.js';
18
- import { TypeHierarchyProviderRegistry, TypeHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
22
+ import { TypeHierarchyDirection, TypeHierarchyProviderRegistry, TypeHierarchyModel } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
19
23
 
20
24
  var TypeHierarchyController_1;
21
- const _ctxHasTypeHierarchyProvider = ( (new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(4238, 'Whether a type hierarchy provider is available')))));
22
- const _ctxTypeHierarchyVisible = ( (new RawContextKey('typeHierarchyVisible', false, ( localize(4239, 'Whether type hierarchy peek is currently showing')))));
23
- const _ctxTypeHierarchyDirection = ( (new RawContextKey(
25
+ const _ctxHasTypeHierarchyProvider = ( new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(10394, 'Whether a type hierarchy provider is available'))));
26
+ const _ctxTypeHierarchyVisible = ( new RawContextKey('typeHierarchyVisible', false, ( localize(10395, 'Whether type hierarchy peek is currently showing'))));
27
+ const _ctxTypeHierarchyDirection = ( new RawContextKey(
24
28
  'typeHierarchyDirection',
25
29
  undefined,
26
- { type: 'string', description: ( localize(4240, 'whether type hierarchy shows super types or subtypes')) }
27
- )));
30
+ { type: 'string', description: ( localize(10396, 'whether type hierarchy shows super types or subtypes')) }
31
+ ));
28
32
  function sanitizedDirection(candidate) {
29
- return candidate === "subtypes" || candidate === "supertypes"
33
+ return candidate === TypeHierarchyDirection.Subtypes || candidate === TypeHierarchyDirection.Supertypes
30
34
  ? candidate
31
- : "subtypes" ;
35
+ : TypeHierarchyDirection.Subtypes;
32
36
  }
33
37
  let TypeHierarchyController = class TypeHierarchyController {
34
38
  static { TypeHierarchyController_1 = this; }
@@ -43,13 +47,13 @@ let TypeHierarchyController = class TypeHierarchyController {
43
47
  this._storageService = _storageService;
44
48
  this._editorService = _editorService;
45
49
  this._instantiationService = _instantiationService;
46
- this._disposables = ( (new DisposableStore()));
47
- this._sessionDisposables = ( (new DisposableStore()));
50
+ this._disposables = ( new DisposableStore());
51
+ this._sessionDisposables = ( new DisposableStore());
48
52
  this._ctxHasProvider = _ctxHasTypeHierarchyProvider.bindTo(this._contextKeyService);
49
53
  this._ctxIsVisible = _ctxTypeHierarchyVisible.bindTo(this._contextKeyService);
50
54
  this._ctxDirection = _ctxTypeHierarchyDirection.bindTo(this._contextKeyService);
51
55
  this._disposables.add(Event.any(_editor.onDidChangeModel, _editor.onDidChangeModelLanguage, TypeHierarchyProviderRegistry.onDidChange)(() => {
52
- this._ctxHasProvider.set(_editor.hasModel() && ( (TypeHierarchyProviderRegistry.has(_editor.getModel()))));
56
+ this._ctxHasProvider.set(_editor.hasModel() && ( TypeHierarchyProviderRegistry.has(_editor.getModel())));
53
57
  }));
54
58
  this._disposables.add(this._sessionDisposables);
55
59
  }
@@ -63,12 +67,12 @@ let TypeHierarchyController = class TypeHierarchyController {
63
67
  }
64
68
  const document = this._editor.getModel();
65
69
  const position = this._editor.getPosition();
66
- if (!( (TypeHierarchyProviderRegistry.has(document)))) {
70
+ if (!( TypeHierarchyProviderRegistry.has(document))) {
67
71
  return;
68
72
  }
69
- const cts = ( (new CancellationTokenSource()));
73
+ const cts = ( new CancellationTokenSource());
70
74
  const model = TypeHierarchyModel.create(document, position, cts.token);
71
- const direction = sanitizedDirection(this._storageService.get(TypeHierarchyController_1._storageDirectionKey, 0 , "subtypes" ));
75
+ const direction = sanitizedDirection(this._storageService.get(TypeHierarchyController_1._storageDirectionKey, StorageScope.PROFILE, TypeHierarchyDirection.Subtypes));
72
76
  this._showTypeHierarchyWidget(position, direction, model, cts);
73
77
  }
74
78
  _showTypeHierarchyWidget(position, direction, model, cts) {
@@ -79,7 +83,7 @@ let TypeHierarchyController = class TypeHierarchyController {
79
83
  this._widget.showLoading();
80
84
  this._sessionDisposables.add(this._widget.onDidClose(() => {
81
85
  this.endTypeHierarchy();
82
- this._storageService.store(TypeHierarchyController_1._storageDirectionKey, this._widget.direction, 0 , 0 );
86
+ this._storageService.store(TypeHierarchyController_1._storageDirectionKey, this._widget.direction, StorageScope.PROFILE, StorageTarget.USER);
83
87
  }));
84
88
  this._sessionDisposables.add({ dispose() { cts.dispose(true); } });
85
89
  this._sessionDisposables.add(this._widget);
@@ -92,14 +96,14 @@ let TypeHierarchyController = class TypeHierarchyController {
92
96
  this._widget.showModel(model);
93
97
  }
94
98
  else {
95
- this._widget.showMessage(( localize(4241, "No results")));
99
+ this._widget.showMessage(( localize(10397, "No results")));
96
100
  }
97
101
  }).catch(err => {
98
102
  if (isCancellationError(err)) {
99
103
  this.endTypeHierarchy();
100
104
  return;
101
105
  }
102
- this._widget.showMessage(( localize(4242, "Failed to show type hierarchy")));
106
+ this._widget.showMessage(( localize(10398, "Failed to show type hierarchy")));
103
107
  });
104
108
  }
105
109
  async startTypeHierarchyFromTypeHierarchy() {
@@ -117,15 +121,15 @@ let TypeHierarchyController = class TypeHierarchyController {
117
121
  }
118
122
  const newModel = model.fork(typeItem.item);
119
123
  this._sessionDisposables.clear();
120
- TypeHierarchyController_1.get(newEditor)?._showTypeHierarchyWidget(Range.lift(newModel.root.selectionRange).getStartPosition(), this._widget.direction, Promise.resolve(newModel), ( (new CancellationTokenSource())));
124
+ TypeHierarchyController_1.get(newEditor)?._showTypeHierarchyWidget(Range.lift(newModel.root.selectionRange).getStartPosition(), this._widget.direction, Promise.resolve(newModel), ( new CancellationTokenSource()));
121
125
  }
122
126
  showSupertypes() {
123
- this._widget?.updateDirection("supertypes" );
124
- this._ctxDirection.set("supertypes" );
127
+ this._widget?.updateDirection(TypeHierarchyDirection.Supertypes);
128
+ this._ctxDirection.set(TypeHierarchyDirection.Supertypes);
125
129
  }
126
130
  showSubtypes() {
127
- this._widget?.updateDirection("subtypes" );
128
- this._ctxDirection.set("subtypes" );
131
+ this._widget?.updateDirection(TypeHierarchyDirection.Subtypes);
132
+ this._ctxDirection.set(TypeHierarchyDirection.Subtypes);
129
133
  }
130
134
  endTypeHierarchy() {
131
135
  this._sessionDisposables.clear();
@@ -133,25 +137,25 @@ let TypeHierarchyController = class TypeHierarchyController {
133
137
  this._editor.focus();
134
138
  }
135
139
  };
136
- TypeHierarchyController = TypeHierarchyController_1 = ( (__decorate([
137
- ( (__param(1, IContextKeyService))),
138
- ( (__param(2, IStorageService))),
139
- ( (__param(3, ICodeEditorService))),
140
- ( (__param(4, IInstantiationService)))
141
- ], TypeHierarchyController)));
142
- registerEditorContribution(TypeHierarchyController.Id, TypeHierarchyController, 0 );
140
+ TypeHierarchyController = TypeHierarchyController_1 = ( __decorate([
141
+ ( __param(1, IContextKeyService)),
142
+ ( __param(2, IStorageService)),
143
+ ( __param(3, ICodeEditorService)),
144
+ ( __param(4, IInstantiationService))
145
+ ], TypeHierarchyController));
146
+ registerEditorContribution(TypeHierarchyController.Id, TypeHierarchyController, EditorContributionInstantiation.Eager);
143
147
  registerAction2(class PeekTypeHierarchyAction extends EditorAction2 {
144
148
  constructor() {
145
149
  super({
146
150
  id: 'editor.showTypeHierarchy',
147
- title: ( localize2(4243, 'Peek Type Hierarchy')),
151
+ title: ( localize2(10399, 'Peek Type Hierarchy')),
148
152
  menu: {
149
153
  id: MenuId.EditorContextPeek,
150
154
  group: 'navigation',
151
155
  order: 1000,
152
- when: ( (ContextKeyExpr.and(_ctxHasTypeHierarchyProvider, PeekContext.notInPeekEditor))),
156
+ when: ( ContextKeyExpr.and(_ctxHasTypeHierarchyProvider, PeekContext.notInPeekEditor)),
153
157
  },
154
- precondition: ( (ContextKeyExpr.and(_ctxHasTypeHierarchyProvider, PeekContext.notInPeekEditor))),
158
+ precondition: ( ContextKeyExpr.and(_ctxHasTypeHierarchyProvider, PeekContext.notInPeekEditor)),
155
159
  f1: true
156
160
  });
157
161
  }
@@ -163,19 +167,16 @@ registerAction2(class extends EditorAction2 {
163
167
  constructor() {
164
168
  super({
165
169
  id: 'editor.showSupertypes',
166
- title: ( localize2(4244, 'Show Supertypes')),
170
+ title: ( localize2(10400, 'Show Supertypes')),
167
171
  icon: Codicon.typeHierarchySuper,
168
- precondition: ( (ContextKeyExpr.and(
169
- _ctxTypeHierarchyVisible,
170
- (_ctxTypeHierarchyDirection.isEqualTo("subtypes" ))
171
- ))),
172
+ precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Subtypes)))),
172
173
  keybinding: {
173
- weight: 200 ,
174
- primary: 1024 + 512 + 38 ,
174
+ weight: KeybindingWeight.WorkbenchContrib,
175
+ primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH,
175
176
  },
176
177
  menu: {
177
178
  id: TypeHierarchyTreePeekWidget.TitleMenu,
178
- when: ( (_ctxTypeHierarchyDirection.isEqualTo("subtypes" ))),
179
+ when: ( _ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Subtypes)),
179
180
  order: 1,
180
181
  }
181
182
  });
@@ -188,19 +189,16 @@ registerAction2(class extends EditorAction2 {
188
189
  constructor() {
189
190
  super({
190
191
  id: 'editor.showSubtypes',
191
- title: ( localize2(4245, 'Show Subtypes')),
192
+ title: ( localize2(10401, 'Show Subtypes')),
192
193
  icon: Codicon.typeHierarchySub,
193
- precondition: ( (ContextKeyExpr.and(
194
- _ctxTypeHierarchyVisible,
195
- (_ctxTypeHierarchyDirection.isEqualTo("supertypes" ))
196
- ))),
194
+ precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Supertypes)))),
197
195
  keybinding: {
198
- weight: 200 ,
199
- primary: 1024 + 512 + 38 ,
196
+ weight: KeybindingWeight.WorkbenchContrib,
197
+ primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH,
200
198
  },
201
199
  menu: {
202
200
  id: TypeHierarchyTreePeekWidget.TitleMenu,
203
- when: ( (_ctxTypeHierarchyDirection.isEqualTo("supertypes" ))),
201
+ when: ( _ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Supertypes)),
204
202
  order: 1,
205
203
  }
206
204
  });
@@ -213,11 +211,11 @@ registerAction2(class extends EditorAction2 {
213
211
  constructor() {
214
212
  super({
215
213
  id: 'editor.refocusTypeHierarchy',
216
- title: ( localize2(4246, 'Refocus Type Hierarchy')),
214
+ title: ( localize2(10402, 'Refocus Type Hierarchy')),
217
215
  precondition: _ctxTypeHierarchyVisible,
218
216
  keybinding: {
219
- weight: 200 ,
220
- primary: 1024 + 3
217
+ weight: KeybindingWeight.WorkbenchContrib,
218
+ primary: KeyMod.Shift + KeyCode.Enter
221
219
  }
222
220
  });
223
221
  }
@@ -229,12 +227,12 @@ registerAction2(class extends EditorAction2 {
229
227
  constructor() {
230
228
  super({
231
229
  id: 'editor.closeTypeHierarchy',
232
- title: ( localize(4247, 'Close')),
230
+ title: ( localize(10403, 'Close')),
233
231
  icon: Codicon.close,
234
232
  precondition: _ctxTypeHierarchyVisible,
235
233
  keybinding: {
236
- weight: 200 + 10,
237
- primary: 9 ,
234
+ weight: KeybindingWeight.WorkbenchContrib + 10,
235
+ primary: KeyCode.Escape,
238
236
  when: ContextKeyExpr.not('config.editor.stablePeek')
239
237
  },
240
238
  menu: {