@codingame/monaco-vscode-view-title-bar-service-override 9.0.0 → 9.0.2
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": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -143,13 +143,13 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
|
|
|
143
143
|
label = that._windowTitle.fileName ?? label;
|
|
144
144
|
}
|
|
145
145
|
if (!label) {
|
|
146
|
-
label = ( localize(
|
|
146
|
+
label = ( localize(6926, "Search"));
|
|
147
147
|
}
|
|
148
148
|
if (prefix) {
|
|
149
|
-
label = ( localize(
|
|
149
|
+
label = ( localize(6927, "{0} {1}", prefix, label));
|
|
150
150
|
}
|
|
151
151
|
if (suffix) {
|
|
152
|
-
label = ( localize(
|
|
152
|
+
label = ( localize(6928, "{0} {1}", label, suffix));
|
|
153
153
|
}
|
|
154
154
|
return label.replaceAll(/\r\n|\r|\n/g, '\u23CE');
|
|
155
155
|
}
|
|
@@ -171,14 +171,14 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
|
|
|
171
171
|
const kb = this._keybindingService.lookupKeybinding(this.action.id)?.getLabel();
|
|
172
172
|
const title = kb
|
|
173
173
|
? ( localize(
|
|
174
|
-
|
|
174
|
+
6929,
|
|
175
175
|
"Search {0} ({1}) \u2014 {2}",
|
|
176
176
|
this._windowTitle.workspaceName,
|
|
177
177
|
kb,
|
|
178
178
|
this._windowTitle.value
|
|
179
179
|
))
|
|
180
180
|
: ( localize(
|
|
181
|
-
|
|
181
|
+
6930,
|
|
182
182
|
"Search {0} \u2014 {1}",
|
|
183
183
|
this._windowTitle.workspaceName,
|
|
184
184
|
this._windowTitle.value
|
|
@@ -194,7 +194,7 @@ CommandCenterCenterViewItem = CommandCenterCenterViewItem_1 = ( (__decorate([
|
|
|
194
194
|
], CommandCenterCenterViewItem)));
|
|
195
195
|
MenuRegistry.appendMenuItem(MenuId.CommandCenter, {
|
|
196
196
|
submenu: MenuId.CommandCenterCenter,
|
|
197
|
-
title: ( localize(
|
|
197
|
+
title: ( localize(6931, "Command Center")),
|
|
198
198
|
icon: Codicon.shield,
|
|
199
199
|
order: 101,
|
|
200
200
|
});
|
|
@@ -43,19 +43,19 @@ class ToggleConfigAction extends Action2 {
|
|
|
43
43
|
}
|
|
44
44
|
registerAction2(class ToggleCommandCenter extends ToggleConfigAction {
|
|
45
45
|
constructor() {
|
|
46
|
-
super(LayoutSettings.COMMAND_CENTER, ( localize(
|
|
46
|
+
super(LayoutSettings.COMMAND_CENTER, ( localize(6964, 'Command Center')), ( localize(6965, "Toggle visibility of the Command Center in title bar")), 1, false);
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
registerAction2(class ToggleLayoutControl extends ToggleConfigAction {
|
|
50
50
|
constructor() {
|
|
51
|
-
super('workbench.layoutControl.enabled', ( localize(
|
|
51
|
+
super('workbench.layoutControl.enabled', ( localize(6966, 'Layout Controls')), ( localize(6967, "Toggle visibility of the Layout Controls in title bar")), 2, true);
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
registerAction2(class ToggleCustomTitleBar extends Action2 {
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: `toggle.${TitleBarSetting.CUSTOM_TITLE_BAR_VISIBILITY}`,
|
|
58
|
-
title: ( localize(
|
|
58
|
+
title: ( localize(6968, 'Hide Custom Title Bar')),
|
|
59
59
|
menu: [
|
|
60
60
|
{ id: MenuId.TitleBarContext, order: 0, when: ( (ContextKeyExpr.equals(TitleBarStyleContext.key, TitlebarStyle.NATIVE))), group: '3_toggle' },
|
|
61
61
|
{ id: MenuId.TitleBarTitleContext, order: 0, when: ( (ContextKeyExpr.equals(TitleBarStyleContext.key, TitlebarStyle.NATIVE))), group: '3_toggle' },
|
|
@@ -71,7 +71,7 @@ registerAction2(class ToggleCustomTitleBarWindowed extends Action2 {
|
|
|
71
71
|
constructor() {
|
|
72
72
|
super({
|
|
73
73
|
id: `toggle.${TitleBarSetting.CUSTOM_TITLE_BAR_VISIBILITY}.windowed`,
|
|
74
|
-
title: ( localize(
|
|
74
|
+
title: ( localize(6969, 'Hide Custom Title Bar In Full Screen')),
|
|
75
75
|
menu: [
|
|
76
76
|
{ id: MenuId.TitleBarContext, order: 1, when: IsMainWindowFullscreenContext, group: '3_toggle' },
|
|
77
77
|
{ id: MenuId.TitleBarTitleContext, order: 1, when: IsMainWindowFullscreenContext, group: '3_toggle' },
|
|
@@ -87,7 +87,7 @@ class ToggleCustomTitleBar extends Action2 {
|
|
|
87
87
|
constructor() {
|
|
88
88
|
super({
|
|
89
89
|
id: `toggle.toggleCustomTitleBar`,
|
|
90
|
-
title: ( localize(
|
|
90
|
+
title: ( localize(6970, 'Custom Title Bar')),
|
|
91
91
|
toggled: TitleBarVisibleContext,
|
|
92
92
|
menu: [
|
|
93
93
|
{
|
|
@@ -138,7 +138,7 @@ registerAction2(class ShowCustomTitleBar extends Action2 {
|
|
|
138
138
|
constructor() {
|
|
139
139
|
super({
|
|
140
140
|
id: `showCustomTitleBar`,
|
|
141
|
-
title: ( localize2(
|
|
141
|
+
title: ( localize2(6971, "Show Custom Title Bar")),
|
|
142
142
|
precondition: ( (TitleBarVisibleContext.negate())),
|
|
143
143
|
f1: true
|
|
144
144
|
});
|
|
@@ -152,7 +152,7 @@ registerAction2(class HideCustomTitleBar extends Action2 {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: `hideCustomTitleBar`,
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(6972, "Hide Custom Title Bar")),
|
|
156
156
|
precondition: TitleBarVisibleContext,
|
|
157
157
|
f1: true
|
|
158
158
|
});
|
|
@@ -166,7 +166,7 @@ registerAction2(class HideCustomTitleBar extends Action2 {
|
|
|
166
166
|
constructor() {
|
|
167
167
|
super({
|
|
168
168
|
id: `hideCustomTitleBarInFullScreen`,
|
|
169
|
-
title: ( localize2(
|
|
169
|
+
title: ( localize2(6973, "Hide Custom Title Bar In Full Screen")),
|
|
170
170
|
precondition: ( (ContextKeyExpr.and(TitleBarVisibleContext, IsMainWindowFullscreenContext))),
|
|
171
171
|
f1: true
|
|
172
172
|
});
|
|
@@ -185,7 +185,7 @@ registerAction2(class ToggleEditorActions extends Action2 {
|
|
|
185
185
|
)))?.negate();
|
|
186
186
|
super({
|
|
187
187
|
id: `toggle.${ToggleEditorActions.settingsID}`,
|
|
188
|
-
title: ( localize(
|
|
188
|
+
title: ( localize(6974, 'Editor Actions')),
|
|
189
189
|
toggled: ( (( (ContextKeyExpr.equals(`config.${ToggleEditorActions.settingsID}`, 'hidden'))).negate())),
|
|
190
190
|
menu: [
|
|
191
191
|
{ id: MenuId.TitleBarContext, order: 3, when: titleBarContextCondition, group: '2_config' },
|
|
@@ -216,16 +216,16 @@ registerAction2(class ToggleEditorActions extends Action2 {
|
|
|
216
216
|
});
|
|
217
217
|
const ACCOUNTS_ACTIVITY_TILE_ACTION = {
|
|
218
218
|
id: ACCOUNTS_ACTIVITY_ID,
|
|
219
|
-
label: ( localize(
|
|
220
|
-
tooltip: ( localize(
|
|
219
|
+
label: ( localize(6975, "Accounts")),
|
|
220
|
+
tooltip: ( localize(6975, "Accounts")),
|
|
221
221
|
class: undefined,
|
|
222
222
|
enabled: true,
|
|
223
223
|
run: function () { }
|
|
224
224
|
};
|
|
225
225
|
const GLOBAL_ACTIVITY_TITLE_ACTION = {
|
|
226
226
|
id: GLOBAL_ACTIVITY_ID,
|
|
227
|
-
label: ( localize(
|
|
228
|
-
tooltip: ( localize(
|
|
227
|
+
label: ( localize(6976, "Manage")),
|
|
228
|
+
tooltip: ( localize(6976, "Manage")),
|
|
229
229
|
class: undefined,
|
|
230
230
|
enabled: true,
|
|
231
231
|
run: function () { }
|
|
@@ -72,7 +72,7 @@ let BrowserTitleService = class BrowserTitleService extends MultiWindowParts {
|
|
|
72
72
|
constructor() {
|
|
73
73
|
super({
|
|
74
74
|
id: `workbench.action.focusTitleBar`,
|
|
75
|
-
title: ( localize2(
|
|
75
|
+
title: ( localize2(3048, 'Focus Title Bar')),
|
|
76
76
|
category: Categories.View,
|
|
77
77
|
f1: true,
|
|
78
78
|
});
|
|
@@ -394,7 +394,7 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
|
|
|
394
394
|
this.actionToolBar = this.actionToolBarDisposable.add(this.instantiationService.createInstance(WorkbenchToolBar, this.actionToolBarElement, {
|
|
395
395
|
contextMenu: MenuId.TitleBarContext,
|
|
396
396
|
orientation: ActionsOrientation.HORIZONTAL,
|
|
397
|
-
ariaLabel: ( localize(
|
|
397
|
+
ariaLabel: ( localize(3049, "Title actions")),
|
|
398
398
|
getKeyBinding: action => this.getKeybinding(action),
|
|
399
399
|
overflowBehavior: { maxItems: 9, exempted: [ACCOUNTS_ACTIVITY_ID, GLOBAL_ACTIVITY_ID, ...EDITOR_CORE_NAVIGATION_COMMANDS] },
|
|
400
400
|
anchorAlignmentProvider: () => AnchorAlignment.RIGHT,
|