@codingame/monaco-vscode-view-title-bar-service-override 26.2.2 → 27.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": "26.2.2",
3
+ "version": "27.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": "26.2.2"
18
+ "@codingame/monaco-vscode-api": "27.0.0"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -178,13 +178,13 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
178
178
  label = that._windowTitle.fileName ?? label;
179
179
  }
180
180
  if (!label) {
181
- label = ( localize(3649, "Search"));
181
+ label = ( localize(3712, "Search"));
182
182
  }
183
183
  if (prefix) {
184
- label = ( localize(3650, "{0} {1}", prefix, label));
184
+ label = ( localize(3713, "{0} {1}", prefix, label));
185
185
  }
186
186
  if (suffix) {
187
- label = ( localize(3651, "{0} {1}", label, suffix));
187
+ label = ( localize(3714, "{0} {1}", label, suffix));
188
188
  }
189
189
  return label.replaceAll(/\r\n|\r|\n/g, "⏎");
190
190
  }
@@ -205,13 +205,13 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
205
205
  getTooltip() {
206
206
  const kb = this._keybindingService.lookupKeybinding(this.action.id)?.getLabel();
207
207
  const title = kb ? ( localize(
208
- 3652,
208
+ 3715,
209
209
  "Search {0} ({1}) — {2}",
210
210
  this._windowTitle.workspaceName,
211
211
  kb,
212
212
  this._windowTitle.value
213
213
  )) : ( localize(
214
- 3653,
214
+ 3716,
215
215
  "Search {0} — {1}",
216
216
  this._windowTitle.workspaceName,
217
217
  this._windowTitle.value
@@ -222,7 +222,7 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
222
222
  CommandCenterCenterViewItem = CommandCenterCenterViewItem_1 = ( __decorate([( __param(3, IHoverService)), ( __param(4, IKeybindingService)), ( __param(5, IInstantiationService)), ( __param(6, IEditorGroupsService))], CommandCenterCenterViewItem));
223
223
  MenuRegistry.appendMenuItem(MenuId.CommandCenter, {
224
224
  submenu: MenuId.CommandCenterCenter,
225
- title: ( localize(3654, "Command Center")),
225
+ title: ( localize(3717, "Command Center")),
226
226
  icon: Codicon.shield,
227
227
  order: 101
228
228
  });
@@ -146,6 +146,10 @@
146
146
  visibility: hidden;
147
147
  }
148
148
 
149
+ .monaco-workbench .part.titlebar.inactive > * {
150
+ opacity: 0.3;
151
+ }
152
+
149
153
  .monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center > .monaco-toolbar > .monaco-action-bar > .actions-container > .action-item > .action-label,
150
154
  .monaco-workbench .part.titlebar > .titlebar-container > .titlebar-center > .window-title > .command-center > .monaco-toolbar > .monaco-action-bar > .actions-container > .action-item.monaco-dropdown-with-primary .action-label {
151
155
  color: var(--vscode-titleBar-activeForeground);
@@ -40,7 +40,7 @@ import { ActionRunner } from '@codingame/monaco-vscode-api/vscode/vs/base/common
40
40
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
41
41
  import { ActionsOrientation, prepareActions } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
42
42
  import { EDITOR_CORE_NAVIGATION_COMMANDS } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorCommands';
43
- import { AnchorAlignment } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/contextview/contextview';
43
+ import '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/contextview/contextview';
44
44
  import { EditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane';
45
45
  import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
46
46
  import { EditorCommandsContextActionRunner } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorTabsControl';
@@ -50,6 +50,7 @@ import { createInstantHoverDelegate } from '@codingame/monaco-vscode-api/vscode/
50
50
  import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
51
51
  import { safeIntl } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
52
52
  import { TitleBarVisibleContext, IsCompactTitleBarContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
53
+ import { AnchorAlignment } from '@codingame/monaco-vscode-api/vscode/vs/base/common/layout';
53
54
 
54
55
  var AuxiliaryBrowserTitlebarPart_1;
55
56
  registerCss(titlebarpart);
@@ -74,7 +75,7 @@ let BrowserTitleService = class BrowserTitleService extends MultiWindowParts {
74
75
  constructor() {
75
76
  super({
76
77
  id: `workbench.action.focusTitleBar`,
77
- title: ( localize2(3688, "Focus Title Bar")),
78
+ title: ( localize2(3753, "Focus Title Bar")),
78
79
  category: Categories.View,
79
80
  f1: true,
80
81
  precondition: TitleBarVisibleContext
@@ -464,7 +465,7 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
464
465
  this.instantiationService.createInstance(WorkbenchToolBar, this.actionToolBarElement, {
465
466
  contextMenu: MenuId.TitleBarContext,
466
467
  orientation: ActionsOrientation.HORIZONTAL,
467
- ariaLabel: ( localize(3689, "Title actions")),
468
+ ariaLabel: ( localize(3754, "Title actions")),
468
469
  getKeyBinding: action => this.getKeybinding(action),
469
470
  overflowBehavior: {
470
471
  maxItems: 9,
@@ -516,9 +517,6 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
516
517
  this.editorActionsChangeDisposable.add(editorActions.onDidChange(() => updateToolBarActions()));
517
518
  }
518
519
  }
519
- if (this.globalToolbarMenu) {
520
- fillInActionBarActions(this.globalToolbarMenu.getActions(), actions);
521
- }
522
520
  if (this.layoutToolbarMenu) {
523
521
  fillInActionBarActions(
524
522
  this.layoutToolbarMenu.getActions(),
@@ -526,6 +524,9 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
526
524
  () => !this.editorActionsEnabled || this.isCompact
527
525
  );
528
526
  }
527
+ if (this.globalToolbarMenu) {
528
+ fillInActionBarActions(this.globalToolbarMenu.getActions(), actions);
529
+ }
529
530
  if (this.activityActionsEnabled) {
530
531
  if (isAccountsActionVisible(this.storageService)) {
531
532
  actions.primary.push(ACCOUNTS_ACTIVITY_TILE_ACTION);