@codingame/monaco-vscode-view-title-bar-service-override 37.6.1 → 38.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": "
|
|
3
|
+
"version": "38.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": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "38.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(
|
|
211
|
+
label = ( localize(7668, "Search"));
|
|
212
212
|
}
|
|
213
213
|
if (prefix) {
|
|
214
|
-
label = ( localize(
|
|
214
|
+
label = ( localize(7669, "{0} {1}", prefix, label));
|
|
215
215
|
}
|
|
216
216
|
if (suffix) {
|
|
217
|
-
label = ( localize(
|
|
217
|
+
label = ( localize(7670, "{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
|
-
|
|
238
|
+
7671,
|
|
239
239
|
"Search {0} ({1}) — {2}",
|
|
240
240
|
this._windowTitle.workspaceName,
|
|
241
241
|
kb,
|
|
242
242
|
this._windowTitle.value
|
|
243
243
|
)) : ( localize(
|
|
244
|
-
|
|
244
|
+
7672,
|
|
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(
|
|
255
|
+
title: ( localize(7673, "Command Center")),
|
|
256
256
|
icon: Codicon.shield,
|
|
257
257
|
order: 101
|
|
258
258
|
});
|
|
@@ -78,7 +78,7 @@ let BrowserTitleService = class BrowserTitleService extends MultiWindowParts {
|
|
|
78
78
|
constructor() {
|
|
79
79
|
super({
|
|
80
80
|
id: `workbench.action.focusTitleBar`,
|
|
81
|
-
title: ( localize2(
|
|
81
|
+
title: ( localize2(7710, "Focus Title Bar")),
|
|
82
82
|
category: Categories.View,
|
|
83
83
|
f1: true,
|
|
84
84
|
precondition: TitleBarVisibleContext
|
|
@@ -320,11 +320,15 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
|
|
|
320
320
|
this.menubar = append(this.leftContent, $("div.menubar"));
|
|
321
321
|
this.menubar.setAttribute("role", "menubar");
|
|
322
322
|
this.customMenubarDisposables.add(customMenubar.onVisibilityChange(e => this.onMenubarVisibilityChanged(e)));
|
|
323
|
+
this.customMenubarDisposables.add(
|
|
324
|
+
customMenubar.onFocusStateChange(focused => this.element.classList.toggle("menubar-focused", focused))
|
|
325
|
+
);
|
|
323
326
|
customMenubar.create(this.menubar);
|
|
324
327
|
}
|
|
325
328
|
uninstallMenubar() {
|
|
326
329
|
this.customMenubarDisposables.clear();
|
|
327
330
|
this.customMenubar.clear();
|
|
331
|
+
this.element.classList.remove("menubar-focused");
|
|
328
332
|
this.menubar?.remove();
|
|
329
333
|
this.menubar = undefined;
|
|
330
334
|
this.onMenubarVisibilityChanged(false);
|
|
@@ -419,15 +423,20 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
|
|
|
419
423
|
primaryWindowControlsLocation === "left" ? this.leftContent : this.rightContent,
|
|
420
424
|
$("div.window-controls-container")
|
|
421
425
|
);
|
|
422
|
-
if (
|
|
426
|
+
if (isWCOEnabled()) {
|
|
427
|
+
this.windowControlsContainer.classList.add("wco-enabled");
|
|
428
|
+
if (isWeb || isLinux) {
|
|
429
|
+
append(
|
|
430
|
+
primaryWindowControlsLocation === "left" ? this.rightContent : this.leftContent,
|
|
431
|
+
$("div.window-controls-container.wco-enabled")
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
} else if (isWeb) {
|
|
423
435
|
append(
|
|
424
436
|
primaryWindowControlsLocation === "left" ? this.rightContent : this.leftContent,
|
|
425
437
|
$("div.window-controls-container")
|
|
426
438
|
);
|
|
427
439
|
}
|
|
428
|
-
if (isWCOEnabled()) {
|
|
429
|
-
this.windowControlsContainer.classList.add("wco-enabled");
|
|
430
|
-
}
|
|
431
440
|
}
|
|
432
441
|
}
|
|
433
442
|
{
|
|
@@ -524,7 +533,7 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
|
|
|
524
533
|
this.instantiationService.createInstance(WorkbenchToolBar, this.actionToolBarElement, {
|
|
525
534
|
contextMenu: MenuId.TitleBarContext,
|
|
526
535
|
orientation: ActionsOrientation.HORIZONTAL,
|
|
527
|
-
ariaLabel: ( localize(
|
|
536
|
+
ariaLabel: ( localize(7711, "Title actions")),
|
|
528
537
|
getKeyBinding: action => this.getKeybinding(action),
|
|
529
538
|
overflowBehavior: {
|
|
530
539
|
maxItems: 12,
|