@codingame/monaco-vscode-view-title-bar-service-override 33.0.9 → 34.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-view-title-bar-service-override",
3
- "version": "33.0.9",
3
+ "version": "34.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - view-title-bar service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "33.0.9"
18
+ "@codingame/monaco-vscode-api": "34.0.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -208,13 +208,13 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
208
208
  label = that._windowTitle.fileName ?? label;
209
209
  }
210
210
  if (!label) {
211
- label = ( localize(3790, "Search"));
211
+ label = ( localize(3849, "Search"));
212
212
  }
213
213
  if (prefix) {
214
- label = ( localize(3791, "{0} {1}", prefix, label));
214
+ label = ( localize(3850, "{0} {1}", prefix, label));
215
215
  }
216
216
  if (suffix) {
217
- label = ( localize(3792, "{0} {1}", label, suffix));
217
+ label = ( localize(3851, "{0} {1}", label, suffix));
218
218
  }
219
219
  return label.replaceAll(/\r\n|\r|\n/g, "⏎");
220
220
  }
@@ -235,13 +235,13 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
235
235
  getTooltip() {
236
236
  const kb = this._keybindingService.lookupKeybinding(this.action.id)?.getLabel();
237
237
  const title = kb ? ( localize(
238
- 3793,
238
+ 3852,
239
239
  "Search {0} ({1}) — {2}",
240
240
  this._windowTitle.workspaceName,
241
241
  kb,
242
242
  this._windowTitle.value
243
243
  )) : ( localize(
244
- 3794,
244
+ 3853,
245
245
  "Search {0} — {1}",
246
246
  this._windowTitle.workspaceName,
247
247
  this._windowTitle.value
@@ -252,7 +252,7 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
252
252
  CommandCenterCenterViewItem = CommandCenterCenterViewItem_1 = ( __decorate([( __param(3, IHoverService)), ( __param(4, IKeybindingService)), ( __param(5, IInstantiationService)), ( __param(6, IEditorGroupsService)), ( __param(7, IConfigurationService))], CommandCenterCenterViewItem));
253
253
  MenuRegistry.appendMenuItem(MenuId.CommandCenter, {
254
254
  submenu: MenuId.CommandCenterCenter,
255
- title: ( localize(3795, "Command Center")),
255
+ title: ( localize(3854, "Command Center")),
256
256
  icon: Codicon.shield,
257
257
  order: 101
258
258
  });
@@ -37,7 +37,7 @@ import { GLOBAL_ACTIVITY_ID, ACCOUNTS_ACTIVITY_ID } from '@codingame/monaco-vsco
37
37
  import { SimpleGlobalActivityActionViewItem, SimpleAccountActivityActionViewItem, isAccountsActionVisible, AccountsActivityActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/globalCompositeBar';
38
38
  import { HoverPosition } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverWidget';
39
39
  import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
40
- import { ActionRunner } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
40
+ import { Separator, ActionRunner } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
41
41
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
42
42
  import { ActionsOrientation, prepareActions } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
43
43
  import { EDITOR_CORE_NAVIGATION_COMMANDS } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorCommands';
@@ -77,7 +77,7 @@ let BrowserTitleService = class BrowserTitleService extends MultiWindowParts {
77
77
  constructor() {
78
78
  super({
79
79
  id: `workbench.action.focusTitleBar`,
80
- title: ( localize2(3831, "Focus Title Bar")),
80
+ title: ( localize2(3890, "Focus Title Bar")),
81
81
  category: Categories.View,
82
82
  f1: true,
83
83
  precondition: TitleBarVisibleContext
@@ -504,10 +504,10 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
504
504
  this.instantiationService.createInstance(WorkbenchToolBar, this.actionToolBarElement, {
505
505
  contextMenu: MenuId.TitleBarContext,
506
506
  orientation: ActionsOrientation.HORIZONTAL,
507
- ariaLabel: ( localize(3832, "Title actions")),
507
+ ariaLabel: ( localize(3891, "Title actions")),
508
508
  getKeyBinding: action => this.getKeybinding(action),
509
509
  overflowBehavior: {
510
- maxItems: 9,
510
+ maxItems: 12,
511
511
  exempted: [
512
512
  ACCOUNTS_ACTIVITY_ID,
513
513
  GLOBAL_ACTIVITY_ID,
@@ -516,7 +516,7 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
516
516
  },
517
517
  anchorAlignmentProvider: () => AnchorAlignment.RIGHT,
518
518
  telemetrySource: "titlePart",
519
- highlightToggledItems: this.editorActionsEnabled || this.isAuxiliary,
519
+ highlightToggledItems: this.isAuxiliary,
520
520
  actionViewItemProvider: (action, options) => this.actionViewItemProvider(action, options),
521
521
  hoverDelegate: this.hoverDelegate
522
522
  })
@@ -543,6 +543,19 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
543
543
  primary: [],
544
544
  secondary: []
545
545
  };
546
+ if (this.globalToolbarMenu) {
547
+ const leading = {
548
+ primary: [],
549
+ secondary: []
550
+ };
551
+ fillInActionBarActions(
552
+ this.globalToolbarMenu.getActions(),
553
+ leading,
554
+ actionGroup => actionGroup === TitleBarLeadingActionsGroup
555
+ );
556
+ actions.primary.push(...leading.primary);
557
+ actions.primary.push(( new Separator()));
558
+ }
546
559
  if (this.editorActionsEnabled) {
547
560
  this.editorActionsChangeDisposable.clear();
548
561
  const activeGroup = this.editorGroupsContainer.activeGroup;
@@ -553,26 +566,15 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
553
566
  );
554
567
  actions.primary.push(...editorActions.actions.primary);
555
568
  actions.secondary.push(...editorActions.actions.secondary);
569
+ actions.primary.push(( new Separator()));
556
570
  this.editorActionsChangeDisposable.add(editorActions.onDidChange(() => updateToolBarActions()));
557
571
  }
558
572
  }
559
- if (this.globalToolbarMenu) {
560
- const leading = {
561
- primary: [],
562
- secondary: []
563
- };
564
- fillInActionBarActions(
565
- this.globalToolbarMenu.getActions(),
566
- leading,
567
- actionGroup => actionGroup === TitleBarLeadingActionsGroup
568
- );
569
- actions.primary.push(...leading.primary);
570
- }
571
573
  if (this.layoutToolbarMenu) {
572
574
  fillInActionBarActions(
573
575
  this.layoutToolbarMenu.getActions(),
574
576
  actions,
575
- () => !this.editorActionsEnabled || this.isCompact
577
+ group => group === "navigation"
576
578
  );
577
579
  }
578
580
  if (this.globalToolbarMenu) {