@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
@@ -2,16 +2,16 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { localize } from 'vscode/vscode/vs/nls';
3
3
  import { toAction } from 'vscode/vscode/vs/base/common/actions';
4
4
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
5
- import { ActionsOrientation, ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
5
+ import { ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
6
6
  import { CompositeOverflowActivityAction, CompositeActionViewItem, CompositeOverflowActivityActionViewItem } from 'vscode/vscode/vs/workbench/browser/parts/compositeBarActions';
7
- import { $, addDisposableListener, EventType, getWindow, isAncestor, EventHelper } from 'vscode/vscode/vs/base/browser/dom';
7
+ import { isAncestor, $, addDisposableListener, EventType, getWindow, EventHelper } from 'vscode/vscode/vs/base/browser/dom';
8
8
  import { StandardMouseEvent } from 'vscode/vscode/vs/base/browser/mouseEvent';
9
9
  import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
10
10
  import { Widget } from 'vscode/vscode/vs/base/browser/ui/widget';
11
11
  import { isUndefinedOrNull } from 'vscode/vscode/vs/base/common/types';
12
12
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
13
13
  import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
14
- import { CompositeDragAndDropObserver, toggleDropEffect } from 'vscode/vscode/vs/workbench/browser/dnd';
14
+ import { toggleDropEffect, CompositeDragAndDropObserver } from 'vscode/vscode/vs/workbench/browser/dnd';
15
15
  import { Gesture, EventType as EventType$1 } from 'vscode/vscode/vs/base/browser/touch';
16
16
 
17
17
  class CompositeDragAndDrop {
@@ -62,7 +62,7 @@ class CompositeDragAndDrop {
62
62
  return undefined;
63
63
  }
64
64
  const items = this.getItems();
65
- const before = this.orientation === ActionsOrientation.HORIZONTAL ? before2d?.horizontallyBefore : before2d?.verticallyBefore;
65
+ const before = this.orientation === 0 ? before2d?.horizontallyBefore : before2d?.verticallyBefore;
66
66
  return items.filter(item => item.visible).findIndex(item => item.id === targetId) + (before ? 0 : 1);
67
67
  }
68
68
  canDrop(data, targetCompositeId) {
@@ -84,6 +84,63 @@ class CompositeDragAndDrop {
84
84
  }
85
85
  }
86
86
  }
87
+ class CompositeBarDndCallbacks {
88
+ constructor(compositeBarContainer, actionBarContainer, compositeBarModel, dndHandler, orientation) {
89
+ this.compositeBarContainer = compositeBarContainer;
90
+ this.actionBarContainer = actionBarContainer;
91
+ this.compositeBarModel = compositeBarModel;
92
+ this.dndHandler = dndHandler;
93
+ this.orientation = orientation;
94
+ this.insertDropBefore = undefined;
95
+ }
96
+ onDragOver(e) {
97
+ const visibleItems = this.compositeBarModel.visibleItems;
98
+ if (!visibleItems.length || (e.eventData.target && isAncestor(e.eventData.target, this.actionBarContainer))) {
99
+ this.insertDropBefore = this.updateFromDragging(this.compositeBarContainer, false, false, true);
100
+ return;
101
+ }
102
+ const insertAtFront = this.insertAtFront(this.actionBarContainer, e.eventData);
103
+ const target = insertAtFront ? visibleItems[0] : visibleItems[visibleItems.length - 1];
104
+ const validDropTarget = this.dndHandler.onDragOver(e.dragAndDropData, target.id, e.eventData);
105
+ toggleDropEffect(e.eventData.dataTransfer, 'move', validDropTarget);
106
+ this.insertDropBefore = this.updateFromDragging(this.compositeBarContainer, validDropTarget, insertAtFront, true);
107
+ }
108
+ onDragLeave(e) {
109
+ this.insertDropBefore = this.updateFromDragging(this.compositeBarContainer, false, false, false);
110
+ }
111
+ onDragEnd(e) {
112
+ this.insertDropBefore = this.updateFromDragging(this.compositeBarContainer, false, false, false);
113
+ }
114
+ onDrop(e) {
115
+ const visibleItems = this.compositeBarModel.visibleItems;
116
+ let targetId = undefined;
117
+ if (visibleItems.length) {
118
+ targetId = this.insertAtFront(this.actionBarContainer, e.eventData) ? visibleItems[0].id : visibleItems[visibleItems.length - 1].id;
119
+ }
120
+ this.dndHandler.drop(e.dragAndDropData, targetId, e.eventData, this.insertDropBefore);
121
+ this.insertDropBefore = this.updateFromDragging(this.compositeBarContainer, false, false, false);
122
+ }
123
+ insertAtFront(element, event) {
124
+ const rect = element.getBoundingClientRect();
125
+ const posX = event.clientX;
126
+ const posY = event.clientY;
127
+ switch (this.orientation) {
128
+ case 0 :
129
+ return posX < rect.left;
130
+ case 1 :
131
+ return posY < rect.top;
132
+ }
133
+ }
134
+ updateFromDragging(element, showFeedback, front, isDragging) {
135
+ element.classList.toggle('dragged-over', isDragging);
136
+ element.classList.toggle('dragged-over-head', showFeedback && front);
137
+ element.classList.toggle('dragged-over-tail', showFeedback && !front);
138
+ if (!showFeedback) {
139
+ return undefined;
140
+ }
141
+ return { verticallyBefore: front, horizontallyBefore: front };
142
+ }
143
+ }
87
144
  let CompositeBar = class CompositeBar extends Widget {
88
145
  constructor(items, options, instantiationService, contextMenuService, viewDescriptorService) {
89
146
  super();
@@ -103,7 +160,7 @@ let CompositeBar = class CompositeBar extends Widget {
103
160
  }
104
161
  setCompositeBarItems(items) {
105
162
  this.model.setItems(items);
106
- this.updateCompositeSwitcher();
163
+ this.updateCompositeSwitcher(true);
107
164
  }
108
165
  getPinnedComposites() {
109
166
  return this.model.pinnedItems;
@@ -122,7 +179,7 @@ let CompositeBar = class CompositeBar extends Widget {
122
179
  return item && this.instantiationService.createInstance(CompositeActionViewItem, { ...options, draggable: true, colors: this.options.colors, icon: this.options.icon, hoverOptions: this.options.activityHoverOptions, compact: this.options.compact }, action, item.pinnedAction, item.toggleBadgeAction, compositeId => this.options.getContextMenuActionsForComposite(compositeId), () => this.getContextMenuActions(), this.options.dndHandler, this);
123
180
  },
124
181
  orientation: this.options.orientation,
125
- ariaLabel: ( localize(11175, "Active View Switcher")),
182
+ ariaLabel: ( localize(11274, "Active View Switcher")),
126
183
  ariaRole: 'tablist',
127
184
  preventLoopNavigation: this.options.preventLoopNavigation,
128
185
  triggerKeys: { keyDown: true }
@@ -130,57 +187,16 @@ let CompositeBar = class CompositeBar extends Widget {
130
187
  this._register(addDisposableListener(parent, EventType.CONTEXT_MENU, e => this.showContextMenu(getWindow(parent), e)));
131
188
  this._register(Gesture.addTarget(parent));
132
189
  this._register(addDisposableListener(parent, EventType$1.Contextmenu, e => this.showContextMenu(getWindow(parent), e)));
133
- let insertDropBefore = undefined;
134
- this._register(CompositeDragAndDropObserver.INSTANCE.registerTarget(parent, {
135
- onDragOver: (e) => {
136
- const visibleItems = this.getVisibleComposites();
137
- if (!visibleItems.length || (e.eventData.target && isAncestor(e.eventData.target, actionBarDiv))) {
138
- insertDropBefore = this.updateFromDragging(parent, false, false, true);
139
- return;
140
- }
141
- const insertAtFront = this.insertAtFront(actionBarDiv, e.eventData);
142
- const target = insertAtFront ? visibleItems[0] : visibleItems[visibleItems.length - 1];
143
- const validDropTarget = this.options.dndHandler.onDragOver(e.dragAndDropData, target.id, e.eventData);
144
- toggleDropEffect(e.eventData.dataTransfer, 'move', validDropTarget);
145
- insertDropBefore = this.updateFromDragging(parent, validDropTarget, insertAtFront, true);
146
- },
147
- onDragLeave: (e) => {
148
- insertDropBefore = this.updateFromDragging(parent, false, false, false);
149
- },
150
- onDragEnd: (e) => {
151
- insertDropBefore = this.updateFromDragging(parent, false, false, false);
152
- },
153
- onDrop: (e) => {
154
- const visibleItems = this.getVisibleComposites();
155
- if (visibleItems.length) {
156
- const target = this.insertAtFront(actionBarDiv, e.eventData) ? visibleItems[0] : visibleItems[visibleItems.length - 1];
157
- this.options.dndHandler.drop(e.dragAndDropData, target.id, e.eventData, insertDropBefore);
158
- }
159
- insertDropBefore = this.updateFromDragging(parent, false, false, false);
160
- }
161
- }));
190
+ const dndCallback = ( (new CompositeBarDndCallbacks(
191
+ parent,
192
+ actionBarDiv,
193
+ this.model,
194
+ this.options.dndHandler,
195
+ this.options.orientation
196
+ )));
197
+ this._register(CompositeDragAndDropObserver.INSTANCE.registerTarget(parent, dndCallback));
162
198
  return actionBarDiv;
163
199
  }
164
- insertAtFront(element, event) {
165
- const rect = element.getBoundingClientRect();
166
- const posX = event.clientX;
167
- const posY = event.clientY;
168
- switch (this.options.orientation) {
169
- case ActionsOrientation.HORIZONTAL:
170
- return posX < rect.left;
171
- case ActionsOrientation.VERTICAL:
172
- return posY < rect.top;
173
- }
174
- }
175
- updateFromDragging(element, showFeedback, front, isDragging) {
176
- element.classList.toggle('dragged-over', isDragging);
177
- element.classList.toggle('dragged-over-head', showFeedback && front);
178
- element.classList.toggle('dragged-over-tail', showFeedback && !front);
179
- if (!showFeedback) {
180
- return undefined;
181
- }
182
- return { verticallyBefore: front, horizontallyBefore: front };
183
- }
184
200
  focus(index) {
185
201
  this.compositeSwitcherBar?.focus(index);
186
202
  }
@@ -315,14 +331,14 @@ let CompositeBar = class CompositeBar extends Widget {
315
331
  if (compositeSwitcherBar && this.dimension && this.dimension.height !== 0 && this.dimension.width !== 0) {
316
332
  const currentItemsLength = compositeSwitcherBar.viewItems.length;
317
333
  compositeSwitcherBar.push(( (items.map(composite => composite.activityAction))));
318
- items.forEach((composite, index) => this.compositeSizeInBar.set(composite.id, this.options.orientation === ActionsOrientation.VERTICAL
334
+ items.forEach((composite, index) => this.compositeSizeInBar.set(composite.id, this.options.orientation === 1
319
335
  ? compositeSwitcherBar.getHeight(currentItemsLength + index)
320
336
  : compositeSwitcherBar.getWidth(currentItemsLength + index)));
321
337
  items.forEach(() => compositeSwitcherBar.pull(compositeSwitcherBar.viewItems.length - 1));
322
338
  }
323
339
  }
324
340
  }
325
- updateCompositeSwitcher() {
341
+ updateCompositeSwitcher(donotTrigger) {
326
342
  const compositeSwitcherBar = this.compositeSwitcherBar;
327
343
  if (!compositeSwitcherBar || !this.dimension) {
328
344
  return;
@@ -332,7 +348,7 @@ let CompositeBar = class CompositeBar extends Widget {
332
348
  let maxVisible = compositesToShow.length;
333
349
  const totalComposites = compositesToShow.length;
334
350
  let size = 0;
335
- const limit = this.options.orientation === ActionsOrientation.VERTICAL ? this.dimension.height : this.dimension.width;
351
+ const limit = this.options.orientation === 1 ? this.dimension.height : this.dimension.width;
336
352
  for (let i = 0; i < compositesToShow.length; i++) {
337
353
  const compositeSize = this.compositeSizeInBar.get(compositesToShow[i]);
338
354
  if (size + compositeSize > limit) {
@@ -398,7 +414,9 @@ let CompositeBar = class CompositeBar extends Widget {
398
414
  }, this.options.getOnCompositeClickAction, this.options.colors, this.options.activityHoverOptions));
399
415
  compositeSwitcherBar.push(this.compositeOverflowAction, { label: false, icon: true });
400
416
  }
401
- this._onDidChange.fire();
417
+ if (!donotTrigger) {
418
+ this._onDidChange.fire();
419
+ }
402
420
  }
403
421
  getOverflowingComposites() {
404
422
  let overflowingIds = ( (this.model.visibleItems.filter(item => item.pinned).map(item => item.id)));
@@ -4,14 +4,12 @@ import { defaultGenerator } from 'vscode/vscode/vs/base/common/idGenerator';
4
4
  import { MutableDisposable, DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
5
5
  import { Emitter } from 'vscode/vscode/vs/base/common/event';
6
6
  import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
7
- import { prepareActions, ActionsOrientation } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
7
+ import { prepareActions } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
8
8
  import { ProgressBar } from 'vscode/vscode/vs/base/browser/ui/progressbar/progressbar';
9
9
  import { Part } from 'vscode/vscode/vs/workbench/browser/part';
10
- import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
11
10
  import { ServiceCollection } from 'vscode/vscode/vs/platform/instantiation/common/serviceCollection';
12
11
  import { IEditorProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
13
12
  import { $, show, hide, append, Dimension } from 'vscode/vscode/vs/base/browser/dom';
14
- import { AnchorAlignment } from 'vscode/vscode/vs/base/browser/ui/contextview/contextview';
15
13
  import { assertIsDefined } from 'vscode/vscode/vs/base/common/types';
16
14
  import { createActionViewItem } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
17
15
  import { ScopedProgressIndicator, AbstractProgressScope } from 'vscode/vscode/vs/workbench/services/progress/browser/progressIndicator';
@@ -40,7 +38,7 @@ class CompositePart extends Part {
40
38
  this.mapActionsBindingToComposite = ( (new Map()));
41
39
  this.instantiatedCompositeItems = ( (new Map()));
42
40
  this.actionsListener = this._register(( (new MutableDisposable())));
43
- this.lastActiveCompositeId = storageService.get(activeCompositeSettingsKey, StorageScope.WORKSPACE, this.defaultCompositeId);
41
+ this.lastActiveCompositeId = storageService.get(activeCompositeSettingsKey, 1 , this.defaultCompositeId);
44
42
  this.toolbarHoverDelegate = this._register(createInstantHoverDelegate());
45
43
  }
46
44
  openComposite(id, focus) {
@@ -116,10 +114,10 @@ class CompositePart extends Part {
116
114
  this.activeComposite = composite;
117
115
  const id = this.activeComposite.getId();
118
116
  if (id !== this.defaultCompositeId) {
119
- this.storageService.store(this.activeCompositeSettingsKey, id, StorageScope.WORKSPACE, StorageTarget.MACHINE);
117
+ this.storageService.store(this.activeCompositeSettingsKey, id, 1 , 1 );
120
118
  }
121
119
  else {
122
- this.storageService.remove(this.activeCompositeSettingsKey, StorageScope.WORKSPACE);
120
+ this.storageService.remove(this.activeCompositeSettingsKey, 1 );
123
121
  }
124
122
  this.lastActiveCompositeId = this.activeComposite.getId();
125
123
  let compositeContainer = this.mapCompositeToCompositeContainer.get(composite.getId());
@@ -190,7 +188,7 @@ class CompositePart extends Part {
190
188
  const keybinding = this.keybindingService.lookupKeybinding(compositeId);
191
189
  this.titleLabel.updateTitle(compositeId, compositeTitle, keybinding?.getLabel() ?? undefined);
192
190
  const toolBar = assertIsDefined(this.toolBar);
193
- toolBar.setAriaLabel(( localize(11159, "{0} actions", compositeTitle)));
191
+ toolBar.setAriaLabel(( localize(11271, "{0} actions", compositeTitle)));
194
192
  }
195
193
  collectCompositeActions(composite) {
196
194
  const menuIds = composite?.getMenuIds();
@@ -232,10 +230,10 @@ class CompositePart extends Part {
232
230
  const titleActionsContainer = append(titleArea, $('.title-actions'));
233
231
  this.toolBar = this._register(this.instantiationService.createInstance(WorkbenchToolBar, titleActionsContainer, {
234
232
  actionViewItemProvider: (action, options) => this.actionViewItemProvider(action, options),
235
- orientation: ActionsOrientation.HORIZONTAL,
233
+ orientation: 0 ,
236
234
  getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
237
235
  anchorAlignmentProvider: () => this.getTitleAreaDropDownAnchorAlignment(),
238
- toggleMenuTitle: ( localize(11160, "Views and More Actions...")),
236
+ toggleMenuTitle: ( localize(11272, "Views and More Actions...")),
239
237
  telemetrySource: this.nameForTelemetry,
240
238
  hoverDelegate: this.toolbarHoverDelegate
241
239
  }));
@@ -252,7 +250,7 @@ class CompositePart extends Part {
252
250
  updateTitle: (id, title, keybinding) => {
253
251
  if (!this.activeComposite || this.activeComposite.getId() === id) {
254
252
  titleLabel.innerText = title;
255
- hover.update(keybinding ? ( localize(11161, "{0} ({1})", title, keybinding)) : title);
253
+ hover.update(keybinding ? ( localize(11273, "{0} ({1})", title, keybinding)) : title);
256
254
  }
257
255
  },
258
256
  updateStyles: () => {
@@ -294,7 +292,7 @@ class CompositePart extends Part {
294
292
  return compositeItem ? compositeItem.progress : undefined;
295
293
  }
296
294
  getTitleAreaDropDownAnchorAlignment() {
297
- return AnchorAlignment.RIGHT;
295
+ return 1 ;
298
296
  }
299
297
  layout(width, height, top, left) {
300
298
  super.layout(width, height, top, left);
@@ -14,7 +14,6 @@ import { hasCustomTitlebar } from 'vscode/vscode/vs/platform/window/common/windo
14
14
  import { EditorPart } from './editorPart.js';
15
15
  import { WindowTitle } from 'vscode/vscode/vs/workbench/browser/parts/titlebar/windowTitle';
16
16
  import { IAuxiliaryWindowService } from 'vscode/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service';
17
- import { GroupsOrder, GroupDirection } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
18
17
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
19
18
  import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
20
19
  import { shouldShowCustomTitleBar } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
@@ -191,7 +190,7 @@ let AuxiliaryEditorPartImpl = class AuxiliaryEditorPartImpl extends EditorPart {
191
190
  }
192
191
  doRemoveLastGroup(preserveFocus) {
193
192
  const restoreFocus = !preserveFocus && this.shouldRestoreFocus(this.container);
194
- const mostRecentlyActiveGroups = this.editorPartsView.getGroups(GroupsOrder.MOST_RECENTLY_ACTIVE);
193
+ const mostRecentlyActiveGroups = this.editorPartsView.getGroups(1 );
195
194
  const nextActiveGroup = mostRecentlyActiveGroups[1];
196
195
  if (nextActiveGroup) {
197
196
  nextActiveGroup.groupsView.activateGroup(nextActiveGroup);
@@ -223,14 +222,14 @@ let AuxiliaryEditorPartImpl = class AuxiliaryEditorPartImpl extends EditorPart {
223
222
  return true;
224
223
  }
225
224
  let targetGroup = undefined;
226
- for (const group of this.editorPartsView.mainPart.getGroups(GroupsOrder.MOST_RECENTLY_ACTIVE)) {
225
+ for (const group of this.editorPartsView.mainPart.getGroups(1 )) {
227
226
  if (!group.isLocked) {
228
227
  targetGroup = group;
229
228
  break;
230
229
  }
231
230
  }
232
231
  if (!targetGroup) {
233
- targetGroup = this.editorPartsView.mainPart.addGroup(this.editorPartsView.mainPart.activeGroup, this.partOptions.openSideBySideDirection === 'right' ? GroupDirection.RIGHT : GroupDirection.DOWN);
232
+ targetGroup = this.editorPartsView.mainPart.addGroup(this.editorPartsView.mainPart.activeGroup, this.partOptions.openSideBySideDirection === 'right' ? 3 : 1 );
234
233
  }
235
234
  const result = this.mergeAllGroups(targetGroup);
236
235
  targetGroup.focus();