@codingame/monaco-vscode-view-common-service-override 9.0.2 → 10.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 (71) hide show
  1. package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +1 -1
  2. package/package.json +3 -3
  3. package/viewCommon.js +4 -1
  4. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +1 -2
  5. package/vscode/src/vs/base/browser/ui/grid/grid.js +24 -34
  6. package/vscode/src/vs/base/browser/ui/grid/gridview.js +34 -35
  7. package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +38 -0
  8. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +65 -65
  9. package/vscode/src/vs/workbench/browser/actions/listCommands.js +85 -85
  10. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +74 -80
  11. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +73 -69
  12. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +1 -1
  13. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +21 -24
  14. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +77 -59
  15. package/vscode/src/vs/workbench/browser/parts/compositePart.js +9 -11
  16. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -4
  17. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +172 -173
  18. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +10 -10
  19. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +16 -18
  20. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +55 -61
  21. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +19 -22
  22. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
  23. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +76 -65
  24. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +37 -18
  25. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +4 -5
  26. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +20 -15
  27. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +6 -10
  28. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +31 -45
  29. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +37 -40
  30. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +18 -28
  31. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +8 -8
  32. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +2 -3
  33. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -2
  34. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -2
  35. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +3 -4
  36. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +2 -8
  37. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +14 -15
  38. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -1
  39. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +21 -21
  40. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +9 -10
  41. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +28 -29
  42. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
  43. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +6 -7
  44. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
  45. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +4 -3
  46. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +9 -7
  47. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +2 -2
  48. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +19 -19
  49. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +10 -9
  50. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +9 -13
  51. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +26 -26
  52. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +6 -6
  53. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +2 -2
  54. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +16 -17
  55. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +3 -4
  56. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +33 -36
  57. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +18 -28
  58. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +8 -8
  59. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +2 -2
  60. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +7 -8
  61. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +13 -15
  62. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +3 -4
  63. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -4
  64. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -1
  65. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +0 -1
  66. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +28 -30
  67. package/vscode/src/vs/workbench/services/history/browser/historyService.js +71 -74
  68. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +22 -26
  69. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +0 -1
  70. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +16 -18
  71. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +9 -10
@@ -1,19 +1,16 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { localize, localize2 } from 'vscode/vscode/vs/nls';
3
- import { CallHierarchyDirection, CallHierarchyProviderRegistry, CallHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
3
+ import { CallHierarchyProviderRegistry, CallHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
4
4
  import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
5
5
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
6
6
  import { CallHierarchyTreePeekWidget } from './callHierarchyPeek.js';
7
7
  import { Event } from 'vscode/vscode/vs/base/common/event';
8
- import { registerEditorContribution, EditorContributionInstantiation, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
8
+ import { registerEditorContribution, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
9
9
  import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
10
10
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
11
11
  import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
12
- import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
13
- import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
14
12
  import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
15
13
  import { PeekContext } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
16
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
17
14
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
18
15
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
19
16
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
@@ -23,17 +20,17 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
23
20
  import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
24
21
 
25
22
  var CallHierarchyController_1;
26
- const _ctxHasCallHierarchyProvider = ( (new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4117, 'Whether a call hierarchy provider is available')))));
27
- const _ctxCallHierarchyVisible = ( (new RawContextKey('callHierarchyVisible', false, ( localize(4118, 'Whether call hierarchy peek is currently showing')))));
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')))));
28
25
  const _ctxCallHierarchyDirection = ( (new RawContextKey(
29
26
  'callHierarchyDirection',
30
27
  undefined,
31
- { type: 'string', description: ( localize(4119, 'Whether call hierarchy shows incoming or outgoing calls')) }
28
+ { type: 'string', description: ( localize(4228, 'Whether call hierarchy shows incoming or outgoing calls')) }
32
29
  )));
33
30
  function sanitizedDirection(candidate) {
34
- return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo
31
+ return candidate === "outgoingCalls" || candidate === "incomingCalls"
35
32
  ? candidate
36
- : CallHierarchyDirection.CallsTo;
33
+ : "incomingCalls" ;
37
34
  }
38
35
  let CallHierarchyController = class CallHierarchyController {
39
36
  static { CallHierarchyController_1 = this; }
@@ -75,7 +72,7 @@ let CallHierarchyController = class CallHierarchyController {
75
72
  }
76
73
  const cts = ( (new CancellationTokenSource()));
77
74
  const model = CallHierarchyModel.create(document, position, cts.token);
78
- const direction = sanitizedDirection(this._storageService.get(CallHierarchyController_1._StorageDirection, StorageScope.PROFILE, CallHierarchyDirection.CallsTo));
75
+ const direction = sanitizedDirection(this._storageService.get(CallHierarchyController_1._StorageDirection, 0 , "incomingCalls" ));
79
76
  this._showCallHierarchyWidget(position, direction, model, cts);
80
77
  }
81
78
  async startCallHierarchyFromCallHierarchy() {
@@ -103,7 +100,7 @@ let CallHierarchyController = class CallHierarchyController {
103
100
  this._widget.showLoading();
104
101
  this._sessionDisposables.add(this._widget.onDidClose(() => {
105
102
  this.endCallHierarchy();
106
- this._storageService.store(CallHierarchyController_1._StorageDirection, this._widget.direction, StorageScope.PROFILE, StorageTarget.USER);
103
+ this._storageService.store(CallHierarchyController_1._StorageDirection, this._widget.direction, 0 , 0 );
107
104
  }));
108
105
  this._sessionDisposables.add({ dispose() { cts.dispose(true); } });
109
106
  this._sessionDisposables.add(this._widget);
@@ -116,23 +113,23 @@ let CallHierarchyController = class CallHierarchyController {
116
113
  this._widget.showModel(model);
117
114
  }
118
115
  else {
119
- this._widget.showMessage(( localize(4120, "No results")));
116
+ this._widget.showMessage(( localize(4229, "No results")));
120
117
  }
121
118
  }).catch(err => {
122
119
  if (isCancellationError(err)) {
123
120
  this.endCallHierarchy();
124
121
  return;
125
122
  }
126
- this._widget.showMessage(( localize(4121, "Failed to show call hierarchy")));
123
+ this._widget.showMessage(( localize(4230, "Failed to show call hierarchy")));
127
124
  });
128
125
  }
129
126
  showOutgoingCalls() {
130
- this._widget?.updateDirection(CallHierarchyDirection.CallsFrom);
131
- this._ctxDirection.set(CallHierarchyDirection.CallsFrom);
127
+ this._widget?.updateDirection("outgoingCalls" );
128
+ this._ctxDirection.set("outgoingCalls" );
132
129
  }
133
130
  showIncomingCalls() {
134
- this._widget?.updateDirection(CallHierarchyDirection.CallsTo);
135
- this._ctxDirection.set(CallHierarchyDirection.CallsTo);
131
+ this._widget?.updateDirection("incomingCalls" );
132
+ this._ctxDirection.set("incomingCalls" );
136
133
  }
137
134
  endCallHierarchy() {
138
135
  this._sessionDisposables.clear();
@@ -146,12 +143,12 @@ CallHierarchyController = CallHierarchyController_1 = ( (__decorate([
146
143
  ( (__param(3, ICodeEditorService))),
147
144
  ( (__param(4, IInstantiationService)))
148
145
  ], CallHierarchyController)));
149
- registerEditorContribution(CallHierarchyController.Id, CallHierarchyController, EditorContributionInstantiation.Eager);
146
+ registerEditorContribution(CallHierarchyController.Id, CallHierarchyController, 0 );
150
147
  registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
151
148
  constructor() {
152
149
  super({
153
150
  id: 'editor.showCallHierarchy',
154
- title: ( localize2(4122, 'Peek Call Hierarchy')),
151
+ title: ( localize2(4231, 'Peek Call Hierarchy')),
155
152
  menu: {
156
153
  id: MenuId.EditorContextPeek,
157
154
  group: 'navigation',
@@ -164,8 +161,8 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
164
161
  },
165
162
  keybinding: {
166
163
  when: EditorContextKeys.editorTextFocus,
167
- weight: KeybindingWeight.WorkbenchContrib,
168
- primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH
164
+ weight: 200 ,
165
+ primary: 1024 + 512 + 38
169
166
  },
170
167
  precondition: ( (ContextKeyExpr.and(_ctxHasCallHierarchyProvider, PeekContext.notInPeekEditor))),
171
168
  f1: true
@@ -179,19 +176,19 @@ registerAction2(class extends EditorAction2 {
179
176
  constructor() {
180
177
  super({
181
178
  id: 'editor.showIncomingCalls',
182
- title: ( localize2(4123, 'Show Incoming Calls')),
183
- icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4124, 'Icon for incoming calls in the call hierarchy view.'))),
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.'))),
184
181
  precondition: ( (ContextKeyExpr.and(
185
182
  _ctxCallHierarchyVisible,
186
- (_ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom))
183
+ (_ctxCallHierarchyDirection.isEqualTo("outgoingCalls" ))
187
184
  ))),
188
185
  keybinding: {
189
- weight: KeybindingWeight.WorkbenchContrib,
190
- primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH,
186
+ weight: 200 ,
187
+ primary: 1024 + 512 + 38 ,
191
188
  },
192
189
  menu: {
193
190
  id: CallHierarchyTreePeekWidget.TitleMenu,
194
- when: ( (_ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom))),
191
+ when: ( (_ctxCallHierarchyDirection.isEqualTo("outgoingCalls" ))),
195
192
  order: 1,
196
193
  }
197
194
  });
@@ -204,19 +201,19 @@ registerAction2(class extends EditorAction2 {
204
201
  constructor() {
205
202
  super({
206
203
  id: 'editor.showOutgoingCalls',
207
- title: ( localize2(4125, 'Show Outgoing Calls')),
208
- icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4126, 'Icon for outgoing calls in the call hierarchy view.'))),
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.'))),
209
206
  precondition: ( (ContextKeyExpr.and(
210
207
  _ctxCallHierarchyVisible,
211
- (_ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo))
208
+ (_ctxCallHierarchyDirection.isEqualTo("incomingCalls" ))
212
209
  ))),
213
210
  keybinding: {
214
- weight: KeybindingWeight.WorkbenchContrib,
215
- primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH,
211
+ weight: 200 ,
212
+ primary: 1024 + 512 + 38 ,
216
213
  },
217
214
  menu: {
218
215
  id: CallHierarchyTreePeekWidget.TitleMenu,
219
- when: ( (_ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo))),
216
+ when: ( (_ctxCallHierarchyDirection.isEqualTo("incomingCalls" ))),
220
217
  order: 1
221
218
  }
222
219
  });
@@ -229,11 +226,11 @@ registerAction2(class extends EditorAction2 {
229
226
  constructor() {
230
227
  super({
231
228
  id: 'editor.refocusCallHierarchy',
232
- title: ( localize2(4127, 'Refocus Call Hierarchy')),
229
+ title: ( localize2(4236, 'Refocus Call Hierarchy')),
233
230
  precondition: _ctxCallHierarchyVisible,
234
231
  keybinding: {
235
- weight: KeybindingWeight.WorkbenchContrib,
236
- primary: KeyMod.Shift + KeyCode.Enter
232
+ weight: 200 ,
233
+ primary: 1024 + 3
237
234
  }
238
235
  });
239
236
  }
@@ -245,12 +242,12 @@ registerAction2(class extends EditorAction2 {
245
242
  constructor() {
246
243
  super({
247
244
  id: 'editor.closeCallHierarchy',
248
- title: ( localize(4128, 'Close')),
245
+ title: ( localize(4237, 'Close')),
249
246
  icon: Codicon.close,
250
247
  precondition: _ctxCallHierarchyVisible,
251
248
  keybinding: {
252
- weight: KeybindingWeight.WorkbenchContrib + 10,
253
- primary: KeyCode.Escape,
249
+ weight: 200 + 10,
250
+ primary: 9 ,
254
251
  when: ContextKeyExpr.not('config.editor.stablePeek')
255
252
  },
256
253
  menu: {
@@ -2,11 +2,9 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import './media/callHierarchy.css.js';
3
3
  import { PeekViewWidget, peekViewBorder, peekViewTitleBackground, peekViewTitleForeground, peekViewTitleInfoForeground, peekViewResultsBackground, peekViewEditorMatchHighlight, IPeekViewService } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
4
4
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
5
- import { CallHierarchyDirection } from 'vscode/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
6
5
  import { WorkbenchAsyncDataTree } from 'vscode/vscode/vs/platform/list/browser/listService';
7
6
  import { Sorter, AccessibilityProvider, IdentityProvider, VirtualDelegate, CallRenderer, DataSource } from './callHierarchyTree.js';
8
7
  import { localize } from 'vscode/vscode/vs/nls';
9
- import { ScrollType } from 'vscode/vscode/vs/editor/common/editorCommon';
10
8
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
11
9
  import { SplitView, Sizing } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
12
10
  import { Dimension, isKeyboardEvent } from 'vscode/vscode/vs/base/browser/dom';
@@ -15,10 +13,9 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
15
13
  import { EmbeddedCodeEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget';
16
14
  import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
17
15
  import { DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
18
- import { TrackedRangeStickiness, OverviewRulerLane } from 'vscode/vscode/vs/editor/common/model';
16
+ import { OverviewRulerLane } from 'vscode/vscode/vs/editor/common/model';
19
17
  import { themeColorFromId } from 'vscode/vscode/vs/platform/theme/common/themeService';
20
18
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
21
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
22
19
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
23
20
  import { Color } from 'vscode/vscode/vs/base/common/color';
24
21
  import { TreeMouseEventTarget } from 'vscode/vscode/vs/base/browser/ui/tree/tree';
@@ -26,21 +23,14 @@ import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
26
23
  import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
27
24
  import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
28
25
  import { createAndFillInActionBarActions } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
29
- import { Orientation } from 'vscode/vscode/vs/base/browser/ui/sash/sash';
30
26
 
31
27
  var CallHierarchyTreePeekWidget_1;
32
- var State;
33
- ( ((function(State) {
34
- State["Loading"] = "loading";
35
- State["Message"] = "message";
36
- State["Data"] = "data";
37
- })(State || (State = {}))));
38
28
  class LayoutInfo {
39
29
  static store(info, storageService) {
40
- storageService.store('callHierarchyPeekLayout', JSON.stringify(info), StorageScope.PROFILE, StorageTarget.MACHINE);
30
+ storageService.store('callHierarchyPeekLayout', JSON.stringify(info), 0 , 1 );
41
31
  }
42
32
  static retrieve(storageService) {
43
- const value = storageService.get('callHierarchyPeekLayout', StorageScope.PROFILE, '{}');
33
+ const value = storageService.get('callHierarchyPeekLayout', 0 , '{}');
44
34
  const defaultInfo = { ratio: 0.7, height: 17 };
45
35
  try {
46
36
  return { ...defaultInfo, ...JSON.parse(value) };
@@ -124,7 +114,7 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
124
114
  const container = document.createElement('div');
125
115
  container.classList.add('results');
126
116
  parent.appendChild(container);
127
- this._splitView = ( (new SplitView(container, { orientation: Orientation.HORIZONTAL })));
117
+ this._splitView = ( (new SplitView(container, { orientation: 1 })));
128
118
  const editorContainer = document.createElement('div');
129
119
  editorContainer.classList.add('editor');
130
120
  container.appendChild(editorContainer);
@@ -232,7 +222,7 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
232
222
  this._previewDisposable.clear();
233
223
  const options = {
234
224
  description: 'call-hierarchy-decoration',
235
- stickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
225
+ stickiness: 1 ,
236
226
  className: 'call-decoration',
237
227
  overviewRuler: {
238
228
  color: themeColorFromId(peekViewEditorMatchHighlight),
@@ -240,7 +230,7 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
240
230
  },
241
231
  };
242
232
  let previewUri;
243
- if (this._direction === CallHierarchyDirection.CallsFrom) {
233
+ if (this._direction === "outgoingCalls" ) {
244
234
  previewUri = element.parent ? element.parent.item.uri : element.model.root.uri;
245
235
  }
246
236
  else {
@@ -261,23 +251,23 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
261
251
  }
262
252
  }
263
253
  if (fullRange) {
264
- this._editor.revealRangeInCenter(fullRange, ScrollType.Immediate);
254
+ this._editor.revealRangeInCenter(fullRange, 1 );
265
255
  const decorationsCollection = this._editor.createDecorationsCollection(decorations);
266
256
  this._previewDisposable.add(toDisposable(() => decorationsCollection.clear()));
267
257
  }
268
258
  this._previewDisposable.add(value);
269
- const title = this._direction === CallHierarchyDirection.CallsFrom
270
- ? ( localize(9545, "Calls from '{0}'", element.model.root.name))
271
- : ( localize(9546, "Callers of '{0}'", element.model.root.name));
259
+ const title = this._direction === "outgoingCalls"
260
+ ? ( localize(9627, "Calls from '{0}'", element.model.root.name))
261
+ : ( localize(9628, "Callers of '{0}'", element.model.root.name));
272
262
  this.setTitle(title);
273
263
  }
274
264
  showLoading() {
275
- this._parent.dataset['state'] = State.Loading;
276
- this.setTitle(( localize(9547, "Loading...")));
265
+ this._parent.dataset['state'] = "loading" ;
266
+ this.setTitle(( localize(9629, "Loading...")));
277
267
  this._show();
278
268
  }
279
269
  showMessage(message) {
280
- this._parent.dataset['state'] = State.Message;
270
+ this._parent.dataset['state'] = "message" ;
281
271
  this.setTitle('');
282
272
  this.setMetaTitle('');
283
273
  this._message.innerText = message;
@@ -291,12 +281,12 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
291
281
  const root = this._tree.getNode(model).children[0];
292
282
  await this._tree.expand(root.element);
293
283
  if (root.children.length === 0) {
294
- this.showMessage(this._direction === CallHierarchyDirection.CallsFrom
295
- ? ( localize(9548, "No calls from '{0}'", model.root.name))
296
- : ( localize(9549, "No callers of '{0}'", model.root.name)));
284
+ this.showMessage(this._direction === "outgoingCalls"
285
+ ? ( localize(9630, "No calls from '{0}'", model.root.name))
286
+ : ( localize(9631, "No callers of '{0}'", model.root.name)));
297
287
  }
298
288
  else {
299
- this._parent.dataset['state'] = State.Data;
289
+ this._parent.dataset['state'] = "data" ;
300
290
  if (!viewState || this._tree.getFocus().length === 0) {
301
291
  this._tree.setFocus([root.children[0].element]);
302
292
  }
@@ -320,7 +310,7 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
320
310
  }
321
311
  _show() {
322
312
  if (!this._isShowing) {
323
- this.editor.revealLineInCenterIfOutsideViewport(this._where.lineNumber, ScrollType.Smooth);
313
+ this.editor.revealLineInCenterIfOutsideViewport(this._where.lineNumber, 0 );
324
314
  super.show(Range.fromPositions(this._where), this._layoutInfo.height);
325
315
  }
326
316
  }
@@ -1,8 +1,8 @@
1
- import { CallHierarchyModel, CallHierarchyDirection } from 'vscode/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
1
+ import { CallHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
2
2
  import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
3
3
  import { createMatches } from 'vscode/vscode/vs/base/common/filters';
4
4
  import { IconLabel } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconLabel';
5
- import { SymbolTag, SymbolKinds } from 'vscode/vscode/vs/editor/common/languages';
5
+ import { SymbolKinds } from 'vscode/vscode/vs/editor/common/languages';
6
6
  import { compare } from 'vscode/vscode/vs/base/common/strings';
7
7
  import { Range } from 'vscode/vscode/vs/editor/common/core/range';
8
8
  import { localize } from 'vscode/vscode/vs/nls';
@@ -37,7 +37,7 @@ class DataSource {
37
37
  );
38
38
  }
39
39
  const { model, item } = element;
40
- if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
40
+ if (this.getDirection() === "outgoingCalls" ) {
41
41
  return (
42
42
  ((await model.resolveOutgoingCalls(item, CancellationToken.None)).map(call => {
43
43
  return (
@@ -106,7 +106,7 @@ class CallRenderer {
106
106
  }
107
107
  renderElement(node, _index, template) {
108
108
  const { element, filterData } = node;
109
- const deprecated = element.item.tags?.includes(SymbolTag.Deprecated);
109
+ const deprecated = element.item.tags?.includes(1 );
110
110
  template.icon.className = '';
111
111
  template.icon.classList.add('inline', ...ThemeIcon.asClassNameArray(SymbolKinds.toIcon(element.item.kind)));
112
112
  template.label.setLabel(element.item.name, element.item.detail, { labelEscapeNewLines: true, matches: createMatches(filterData), strikethrough: deprecated });
@@ -128,14 +128,14 @@ class AccessibilityProvider {
128
128
  this.getDirection = getDirection;
129
129
  }
130
130
  getWidgetAriaLabel() {
131
- return ( localize(11242, "Call Hierarchy"));
131
+ return ( localize(11353, "Call Hierarchy"));
132
132
  }
133
133
  getAriaLabel(element) {
134
- if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
135
- return ( localize(11243, "calls from {0}", element.item.name));
134
+ if (this.getDirection() === "outgoingCalls" ) {
135
+ return ( localize(11354, "calls from {0}", element.item.name));
136
136
  }
137
137
  else {
138
- return ( localize(11244, "callers of {0}", element.item.name));
138
+ return ( localize(11355, "callers of {0}", element.item.name));
139
139
  }
140
140
  }
141
141
  }
@@ -1,8 +1,7 @@
1
1
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
2
- import 'vscode/vscode/vs/platform/instantiation/common/extensions';
3
2
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
4
3
  import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
5
- import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
4
+ import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
6
5
  import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
7
6
  import { CustomEditorInputSerializer, ComplexCustomWorkingCopyEditorHandler } from './customEditorInputFactory.js';
8
7
  import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
@@ -16,4 +15,4 @@ import './customEditors.js';
16
15
  ]);
17
16
  ( Registry.as(EditorExtensions.EditorFactory))
18
17
  .registerEditorSerializer(CustomEditorInputSerializer.ID, CustomEditorInputSerializer);
19
- registerWorkbenchContribution2(ComplexCustomWorkingCopyEditorHandler.ID, ComplexCustomWorkingCopyEditorHandler, WorkbenchPhase.BlockStartup);
18
+ registerWorkbenchContribution2(ComplexCustomWorkingCopyEditorHandler.ID, ComplexCustomWorkingCopyEditorHandler, 1 );
@@ -7,7 +7,6 @@ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/c
7
7
  import { CustomEditorInput } from 'vscode/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput';
8
8
  import { ICustomEditorService } from 'vscode/vscode/vs/workbench/contrib/customEditor/common/customEditor.service';
9
9
  import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
10
- import { WebviewContentPurpose } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
11
10
  import { IWebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.service';
12
11
  import { WebviewEditorInputSerializer, reviveWebviewExtensionDescription, restoreWebviewOptions, restoreWebviewContentOptions } from '../../webviewPanel/browser/webviewEditorInputSerializer.js';
13
12
  import { IWebviewWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
@@ -64,7 +63,7 @@ function reviveWebview(webviewService, data) {
64
63
  origin: data.origin,
65
64
  title: undefined,
66
65
  options: {
67
- purpose: WebviewContentPurpose.CustomEditor,
66
+ purpose: "customEditor" ,
68
67
  enableFindWidget: data.webviewOptions.enableFindWidget,
69
68
  retainContextWhenHidden: data.webviewOptions.retainContextWhenHidden,
70
69
  },
@@ -8,7 +8,6 @@ import { extname, isEqual } from 'vscode/vscode/vs/base/common/resources';
8
8
  import { assertIsDefined } from 'vscode/vscode/vs/base/common/types';
9
9
  import { URI } from 'vscode/vscode/vs/base/common/uri';
10
10
  import { UndoCommand, RedoCommand } from 'vscode/vscode/vs/editor/browser/editorExtensions';
11
- import { FileOperation } from 'vscode/vscode/vs/platform/files/common/files';
12
11
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
13
12
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
14
13
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
@@ -59,7 +58,7 @@ let CustomEditorService = class CustomEditorService extends Disposable {
59
58
  this._register(this.editorGroupService.registerContextKeyProvider(activeCustomEditorContextKeyProvider));
60
59
  this._register(this.editorGroupService.registerContextKeyProvider(customEditorIsEditableContextKeyProvider));
61
60
  this._register(fileService.onDidRunOperation(e => {
62
- if (e.isOperation(FileOperation.MOVE)) {
61
+ if (e.isOperation(2 )) {
63
62
  this.handleMovedFileInOpenedFileEditors(e.resource, this.uriIdentityService.asCanonicalUri(e.target.resource));
64
63
  }
65
64
  }));
@@ -1,7 +1,6 @@
1
1
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
2
2
  import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
3
  import { localize } from 'vscode/vscode/vs/nls';
4
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
5
4
  import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
6
5
  import { CustomEditorInfo } from './customEditor.js';
7
6
  import { customEditorsExtensionPoint } from './extensionPoint.js';
@@ -16,7 +15,7 @@ class ContributedCustomEditors extends Disposable {
16
15
  this._onChange = this._register(( (new Emitter())));
17
16
  this.onChange = this._onChange.event;
18
17
  this._memento = ( (new Memento(ContributedCustomEditors.CUSTOM_EDITORS_STORAGE_ID, storageService)));
19
- const mementoObject = this._memento.getMemento(StorageScope.PROFILE, StorageTarget.MACHINE);
18
+ const mementoObject = this._memento.getMemento(0 , 1 );
20
19
  for (const info of (mementoObject[ContributedCustomEditors.CUSTOM_EDITORS_ENTRY_ID] || [])) {
21
20
  this.add(( (new CustomEditorInfo(info))));
22
21
  }
@@ -31,13 +30,13 @@ class ContributedCustomEditors extends Disposable {
31
30
  this.add(( (new CustomEditorInfo({
32
31
  id: webviewEditorContribution.viewType,
33
32
  displayName: webviewEditorContribution.displayName,
34
- providerDisplayName: extension.description.isBuiltin ? ( localize(9533, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
33
+ providerDisplayName: extension.description.isBuiltin ? ( localize(9615, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
35
34
  selector: webviewEditorContribution.selector || [],
36
35
  priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
37
36
  }))));
38
37
  }
39
38
  }
40
- const mementoObject = this._memento.getMemento(StorageScope.PROFILE, StorageTarget.MACHINE);
39
+ const mementoObject = this._memento.getMemento(0 , 1 );
41
40
  mementoObject[ContributedCustomEditors.CUSTOM_EDITORS_ENTRY_ID] = Array.from(( (this._editors.values())));
42
41
  this._memento.saveMemento();
43
42
  this._onChange.fire();
@@ -5,15 +5,9 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from 'v
5
5
 
6
6
  const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( (new RawContextKey('activeCustomEditorId', '', {
7
7
  type: 'string',
8
- description: ( localize(9532, "The viewType of the currently active custom editor.")),
8
+ description: ( localize(9614, "The viewType of the currently active custom editor.")),
9
9
  })));
10
10
  const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( (new RawContextKey('focusedCustomEditorIsEditable', false)));
11
- var CustomEditorPriority;
12
- ( ((function(CustomEditorPriority) {
13
- CustomEditorPriority["default"] = "default";
14
- CustomEditorPriority["builtin"] = "builtin";
15
- CustomEditorPriority["option"] = "option";
16
- })(CustomEditorPriority || (CustomEditorPriority = {}))));
17
11
  class CustomEditorInfo {
18
12
  constructor(descriptor) {
19
13
  this.id = descriptor.id;
@@ -57,4 +51,4 @@ function isLowerPriority(otherEditor, editor) {
57
51
  return priorityToRank(otherEditor.priority) < priorityToRank(editor.priority);
58
52
  }
59
53
 
60
- export { CONTEXT_ACTIVE_CUSTOM_EDITOR_ID, CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE, CustomEditorInfo, CustomEditorInfoCollection, CustomEditorPriority };
54
+ export { CONTEXT_ACTIVE_CUSTOM_EDITOR_ID, CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE, CustomEditorInfo, CustomEditorInfoCollection };
@@ -3,7 +3,6 @@ import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
3
3
  import { localize } from 'vscode/vscode/vs/nls';
4
4
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
5
5
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
6
- import { CustomEditorPriority } from './customEditor.js';
7
6
  import { Extensions } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
8
7
  import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
9
8
  import { languagesExtPoint } from 'vscode/vscode/vs/workbench/services/language/common/languageService';
@@ -15,7 +14,7 @@ const Fields = ( (Object.freeze({
15
14
  priority: 'priority',
16
15
  })));
17
16
  const CustomEditorsContribution = {
18
- description: ( localize(11230, 'Contributed custom editors.')),
17
+ description: ( localize(11341, 'Contributed custom editors.')),
19
18
  type: 'array',
20
19
  defaultSnippets: [{
21
20
  body: [{
@@ -37,20 +36,20 @@ const CustomEditorsContribution = {
37
36
  [Fields.viewType]: {
38
37
  type: 'string',
39
38
  markdownDescription: ( localize(
40
- 11231,
39
+ 11342,
41
40
  'Identifier for the custom editor. This must be unique across all custom editors, so we recommend including your extension id as part of `viewType`. The `viewType` is used when registering custom editors with `vscode.registerCustomEditorProvider` and in the `onCustomEditor:${id}` [activation event](https://code.visualstudio.com/api/references/activation-events).'
42
41
  )),
43
42
  },
44
43
  [Fields.displayName]: {
45
44
  type: 'string',
46
45
  description: ( localize(
47
- 11232,
46
+ 11343,
48
47
  'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'
49
48
  )),
50
49
  },
51
50
  [Fields.selector]: {
52
51
  type: 'array',
53
- description: ( localize(11233, 'Set of globs that the custom editor is enabled for.')),
52
+ description: ( localize(11344, 'Set of globs that the custom editor is enabled for.')),
54
53
  items: {
55
54
  type: 'object',
56
55
  defaultSnippets: [{
@@ -61,7 +60,7 @@ const CustomEditorsContribution = {
61
60
  properties: {
62
61
  filenamePattern: {
63
62
  type: 'string',
64
- description: ( localize(11234, 'Glob that the custom editor is enabled for.')),
63
+ description: ( localize(11345, 'Glob that the custom editor is enabled for.')),
65
64
  },
66
65
  }
67
66
  }
@@ -69,20 +68,20 @@ const CustomEditorsContribution = {
69
68
  [Fields.priority]: {
70
69
  type: 'string',
71
70
  markdownDeprecationMessage: ( localize(
72
- 11235,
71
+ 11346,
73
72
  'Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting.'
74
73
  )),
75
74
  enum: [
76
- CustomEditorPriority.default,
77
- CustomEditorPriority.option,
75
+ "default" ,
76
+ "option" ,
78
77
  ],
79
78
  markdownEnumDescriptions: [
80
79
  ( localize(
81
- 11236,
80
+ 11347,
82
81
  'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
83
82
  )),
84
83
  ( localize(
85
- 11237,
84
+ 11348,
86
85
  'The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command.'
87
86
  )),
88
87
  ],
@@ -118,9 +117,9 @@ class CustomEditorsDataRenderer extends Disposable {
118
117
  return { data: { headers: [], rows: [] }, dispose: () => { } };
119
118
  }
120
119
  const headers = [
121
- ( localize(11238, "View Type")),
122
- ( localize(11239, "Priority")),
123
- ( localize(11240, "Filename Pattern")),
120
+ ( localize(11349, "View Type")),
121
+ ( localize(11350, "Priority")),
122
+ ( localize(11351, "Filename Pattern")),
124
123
  ];
125
124
  const rows = ( (customEditors
126
125
  .map(customEditor => {
@@ -141,7 +140,7 @@ class CustomEditorsDataRenderer extends Disposable {
141
140
  }
142
141
  ( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
143
142
  id: 'customEditors',
144
- label: ( localize(11241, "Custom Editors")),
143
+ label: ( localize(11352, "Custom Editors")),
145
144
  access: {
146
145
  canToggle: false
147
146
  },
@@ -1,5 +1,4 @@
1
1
  import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
2
- import 'vscode/vscode/vs/platform/instantiation/common/extensions';
3
2
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
4
3
  import { externalUriOpenersConfigurationNode } from 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/configuration';
5
4
  import 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService';