@codingame/monaco-vscode-view-common-service-override 10.0.0 → 10.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 +3 -3
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +21 -21
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +3 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.0.
|
|
30
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "10.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.2",
|
|
30
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "10.0.2"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -142,7 +142,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
142
142
|
constructor() {
|
|
143
143
|
super({
|
|
144
144
|
id: 'workbench.action.navigateLeft',
|
|
145
|
-
title: ( localize2(
|
|
145
|
+
title: ( localize2(4466, 'Navigate to the View on the Left')),
|
|
146
146
|
category: Categories.View,
|
|
147
147
|
f1: true
|
|
148
148
|
}, 2 );
|
|
@@ -152,7 +152,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: 'workbench.action.navigateRight',
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(4467, 'Navigate to the View on the Right')),
|
|
156
156
|
category: Categories.View,
|
|
157
157
|
f1: true
|
|
158
158
|
}, 3 );
|
|
@@ -162,7 +162,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
162
162
|
constructor() {
|
|
163
163
|
super({
|
|
164
164
|
id: 'workbench.action.navigateUp',
|
|
165
|
-
title: ( localize2(
|
|
165
|
+
title: ( localize2(4468, 'Navigate to the View Above')),
|
|
166
166
|
category: Categories.View,
|
|
167
167
|
f1: true
|
|
168
168
|
}, 0 );
|
|
@@ -172,7 +172,7 @@ registerAction2(class extends BaseNavigationAction {
|
|
|
172
172
|
constructor() {
|
|
173
173
|
super({
|
|
174
174
|
id: 'workbench.action.navigateDown',
|
|
175
|
-
title: ( localize2(
|
|
175
|
+
title: ( localize2(4469, 'Navigate to the View Below')),
|
|
176
176
|
category: Categories.View,
|
|
177
177
|
f1: true
|
|
178
178
|
}, 1 );
|
|
@@ -257,7 +257,7 @@ registerAction2(class extends BaseFocusAction {
|
|
|
257
257
|
constructor() {
|
|
258
258
|
super({
|
|
259
259
|
id: 'workbench.action.focusNextPart',
|
|
260
|
-
title: ( localize2(
|
|
260
|
+
title: ( localize2(4470, 'Focus Next Part')),
|
|
261
261
|
category: Categories.View,
|
|
262
262
|
f1: true,
|
|
263
263
|
keybinding: {
|
|
@@ -271,7 +271,7 @@ registerAction2(class extends BaseFocusAction {
|
|
|
271
271
|
constructor() {
|
|
272
272
|
super({
|
|
273
273
|
id: 'workbench.action.focusPreviousPart',
|
|
274
|
-
title: ( localize2(
|
|
274
|
+
title: ( localize2(4471, 'Focus Previous Part')),
|
|
275
275
|
category: Categories.View,
|
|
276
276
|
f1: true,
|
|
277
277
|
keybinding: {
|
|
@@ -189,11 +189,11 @@ let ActivityBarCompositeBar = class ActivityBarCompositeBar extends PaneComposit
|
|
|
189
189
|
fillContextMenuActions(actions, e) {
|
|
190
190
|
const menuBarVisibility = getMenuBarVisibility(this.configurationService);
|
|
191
191
|
if (menuBarVisibility === 'compact' || menuBarVisibility === 'hidden' || menuBarVisibility === 'toggle') {
|
|
192
|
-
actions.unshift(...[toAction({ id: 'toggleMenuVisibility', label: ( localize(
|
|
192
|
+
actions.unshift(...[toAction({ id: 'toggleMenuVisibility', label: ( localize(3758, "Menu")), checked: menuBarVisibility === 'compact', run: () => this.configurationService.updateValue('window.menuBarVisibility', menuBarVisibility === 'compact' ? 'toggle' : 'compact') }), ( (new Separator()))]);
|
|
193
193
|
}
|
|
194
194
|
if (menuBarVisibility === 'compact' && this.menuBarContainer && e?.target) {
|
|
195
195
|
if (isAncestor(e.target, this.menuBarContainer)) {
|
|
196
|
-
actions.unshift(...[toAction({ id: 'hideCompactMenu', label: ( localize(
|
|
196
|
+
actions.unshift(...[toAction({ id: 'hideCompactMenu', label: ( localize(3759, "Hide Menu")), run: () => this.configurationService.updateValue('window.menuBarVisibility', 'toggle') }), ( (new Separator()))]);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
if (this.globalCompositeBar) {
|
|
@@ -290,7 +290,7 @@ let ActivityBarCompositeBar = class ActivityBarCompositeBar extends PaneComposit
|
|
|
290
290
|
const positionActions = [];
|
|
291
291
|
createAndFillInContextMenuActions(activityBarPositionMenu, { primary: [], secondary: positionActions });
|
|
292
292
|
return [
|
|
293
|
-
( (new SubmenuAction('workbench.action.panel.position', ( localize(
|
|
293
|
+
( (new SubmenuAction('workbench.action.panel.position', ( localize(3760, "Activity Bar Position")), positionActions))),
|
|
294
294
|
toAction({ id: ToggleSidebarPositionAction.ID, label: ToggleSidebarPositionAction.getLabel(this.layoutService), run: () => this.instantiationService.invokeFunction(accessor => ( (new ToggleSidebarPositionAction())).run(accessor)) })
|
|
295
295
|
];
|
|
296
296
|
}
|
|
@@ -312,10 +312,10 @@ registerAction2(class extends Action2 {
|
|
|
312
312
|
super({
|
|
313
313
|
id: 'workbench.action.activityBarLocation.default',
|
|
314
314
|
title: {
|
|
315
|
-
...( localize2(
|
|
316
|
-
mnemonicTitle: ( localize(
|
|
315
|
+
...( localize2(3761, 'Move Activity Bar to Side')),
|
|
316
|
+
mnemonicTitle: ( localize(3762, "&&Default")),
|
|
317
317
|
},
|
|
318
|
-
shortTitle: ( localize(
|
|
318
|
+
shortTitle: ( localize(3763, "Default")),
|
|
319
319
|
category: Categories.View,
|
|
320
320
|
toggled: ( (ContextKeyExpr.equals(
|
|
321
321
|
`config.${"workbench.activityBar.location" }`,
|
|
@@ -343,10 +343,10 @@ registerAction2(class extends Action2 {
|
|
|
343
343
|
super({
|
|
344
344
|
id: 'workbench.action.activityBarLocation.top',
|
|
345
345
|
title: {
|
|
346
|
-
...( localize2(
|
|
347
|
-
mnemonicTitle: ( localize(
|
|
346
|
+
...( localize2(3764, 'Move Activity Bar to Top')),
|
|
347
|
+
mnemonicTitle: ( localize(3765, "&&Top")),
|
|
348
348
|
},
|
|
349
|
-
shortTitle: ( localize(
|
|
349
|
+
shortTitle: ( localize(3766, "Top")),
|
|
350
350
|
category: Categories.View,
|
|
351
351
|
toggled: ( (ContextKeyExpr.equals(
|
|
352
352
|
`config.${"workbench.activityBar.location" }`,
|
|
@@ -374,10 +374,10 @@ registerAction2(class extends Action2 {
|
|
|
374
374
|
super({
|
|
375
375
|
id: 'workbench.action.activityBarLocation.bottom',
|
|
376
376
|
title: {
|
|
377
|
-
...( localize2(
|
|
378
|
-
mnemonicTitle: ( localize(
|
|
377
|
+
...( localize2(3767, 'Move Activity Bar to Bottom')),
|
|
378
|
+
mnemonicTitle: ( localize(3768, "&&Bottom")),
|
|
379
379
|
},
|
|
380
|
-
shortTitle: ( localize(
|
|
380
|
+
shortTitle: ( localize(3769, "Bottom")),
|
|
381
381
|
category: Categories.View,
|
|
382
382
|
toggled: ( (ContextKeyExpr.equals(
|
|
383
383
|
`config.${"workbench.activityBar.location" }`,
|
|
@@ -405,10 +405,10 @@ registerAction2(class extends Action2 {
|
|
|
405
405
|
super({
|
|
406
406
|
id: 'workbench.action.activityBarLocation.hide',
|
|
407
407
|
title: {
|
|
408
|
-
...( localize2(
|
|
409
|
-
mnemonicTitle: ( localize(
|
|
408
|
+
...( localize2(3770, 'Hide Activity Bar')),
|
|
409
|
+
mnemonicTitle: ( localize(3771, "&&Hidden")),
|
|
410
410
|
},
|
|
411
|
-
shortTitle: ( localize(
|
|
411
|
+
shortTitle: ( localize(3772, "Hidden")),
|
|
412
412
|
category: Categories.View,
|
|
413
413
|
toggled: ( (ContextKeyExpr.equals(
|
|
414
414
|
`config.${"workbench.activityBar.location" }`,
|
|
@@ -433,13 +433,13 @@ registerAction2(class extends Action2 {
|
|
|
433
433
|
});
|
|
434
434
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
435
435
|
submenu: MenuId.ActivityBarPositionMenu,
|
|
436
|
-
title: ( localize(
|
|
436
|
+
title: ( localize(3773, "Activity Bar Position")),
|
|
437
437
|
group: '3_workbench_layout_move',
|
|
438
438
|
order: 2
|
|
439
439
|
});
|
|
440
440
|
MenuRegistry.appendMenuItem(MenuId.ViewContainerTitleContext, {
|
|
441
441
|
submenu: MenuId.ActivityBarPositionMenu,
|
|
442
|
-
title: ( localize(
|
|
442
|
+
title: ( localize(3773, "Activity Bar Position")),
|
|
443
443
|
when: ( (ContextKeyExpr.equals(
|
|
444
444
|
'viewContainerLocation',
|
|
445
445
|
ViewContainerLocationToString(0 )
|
|
@@ -449,7 +449,7 @@ MenuRegistry.appendMenuItem(MenuId.ViewContainerTitleContext, {
|
|
|
449
449
|
});
|
|
450
450
|
MenuRegistry.appendMenuItem(MenuId.ViewTitleContext, {
|
|
451
451
|
submenu: MenuId.ActivityBarPositionMenu,
|
|
452
|
-
title: ( localize(
|
|
452
|
+
title: ( localize(3773, "Activity Bar Position")),
|
|
453
453
|
when: ( (ContextKeyExpr.equals(
|
|
454
454
|
'viewLocation',
|
|
455
455
|
ViewContainerLocationToString(0 )
|
|
@@ -483,7 +483,7 @@ registerAction2(class PreviousSideBarViewAction extends SwitchSideBarViewAction
|
|
|
483
483
|
constructor() {
|
|
484
484
|
super({
|
|
485
485
|
id: 'workbench.action.previousSideBarView',
|
|
486
|
-
title: ( localize2(
|
|
486
|
+
title: ( localize2(3774, 'Previous Primary Side Bar View')),
|
|
487
487
|
category: Categories.View,
|
|
488
488
|
f1: true
|
|
489
489
|
}, -1);
|
|
@@ -493,7 +493,7 @@ registerAction2(class NextSideBarViewAction extends SwitchSideBarViewAction {
|
|
|
493
493
|
constructor() {
|
|
494
494
|
super({
|
|
495
495
|
id: 'workbench.action.nextSideBarView',
|
|
496
|
-
title: ( localize2(
|
|
496
|
+
title: ( localize2(3775, 'Next Primary Side Bar View')),
|
|
497
497
|
category: Categories.View,
|
|
498
498
|
f1: true
|
|
499
499
|
}, 1);
|
|
@@ -503,7 +503,7 @@ registerAction2(class FocusActivityBarAction extends Action2 {
|
|
|
503
503
|
constructor() {
|
|
504
504
|
super({
|
|
505
505
|
id: 'workbench.action.focusActivityBar',
|
|
506
|
-
title: ( localize2(
|
|
506
|
+
title: ( localize2(3776, 'Focus Activity Bar')),
|
|
507
507
|
category: Categories.View,
|
|
508
508
|
f1: true
|
|
509
509
|
});
|
|
@@ -137,7 +137,7 @@ let EditorParts = class EditorParts extends MultiWindowParts {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
getGroupsLabel(index) {
|
|
140
|
-
return ( localize(
|
|
140
|
+
return ( localize(3568, "Window {0}", index + 1));
|
|
141
141
|
}
|
|
142
142
|
getPart(groupOrElement) {
|
|
143
143
|
if (this._parts.size > 1) {
|
|
@@ -93,7 +93,7 @@ let PaneCompositeBar = class PaneCompositeBar extends Disposable {
|
|
|
93
93
|
const viewContainer = this.viewDescriptorService.getViewContainerById(compositeId);
|
|
94
94
|
const defaultLocation = this.viewDescriptorService.getDefaultViewContainerLocation(viewContainer);
|
|
95
95
|
if (defaultLocation !== this.viewDescriptorService.getViewContainerLocation(viewContainer)) {
|
|
96
|
-
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(
|
|
96
|
+
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(9448, "Reset Location")), run: () => this.viewDescriptorService.moveViewContainerToLocation(viewContainer, defaultLocation, undefined, 'resetLocationAction') }));
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
99
|
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
@@ -101,7 +101,7 @@ let PaneCompositeBar = class PaneCompositeBar extends Disposable {
|
|
|
101
101
|
const viewToReset = viewContainerModel.allViewDescriptors[0];
|
|
102
102
|
const defaultContainer = this.viewDescriptorService.getDefaultContainerById(viewToReset.id);
|
|
103
103
|
if (defaultContainer !== viewContainer) {
|
|
104
|
-
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(
|
|
104
|
+
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(9448, "Reset Location")), run: () => this.viewDescriptorService.moveViewsToContainer([viewToReset], defaultContainer, undefined, 'resetLocationAction') }));
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -118,9 +118,9 @@ let PanelPart = class PanelPart extends AbstractPaneCompositePart {
|
|
|
118
118
|
createAndFillInContextMenuActions(panelAlignMenu, { primary: [], secondary: alignActions });
|
|
119
119
|
actions.push(...[
|
|
120
120
|
( (new Separator())),
|
|
121
|
-
( (new SubmenuAction('workbench.action.panel.position', ( localize(
|
|
122
|
-
( (new SubmenuAction('workbench.action.panel.align', ( localize(
|
|
123
|
-
toAction({ id: TogglePanelAction.ID, label: ( localize(
|
|
121
|
+
( (new SubmenuAction('workbench.action.panel.position', ( localize(3755, "Panel Position")), positionActions))),
|
|
122
|
+
( (new SubmenuAction('workbench.action.panel.align', ( localize(3756, "Align Panel")), alignActions))),
|
|
123
|
+
toAction({ id: TogglePanelAction.ID, label: ( localize(3757, "Hide Panel")), run: () => this.commandService.executeCommand(TogglePanelAction.ID) })
|
|
124
124
|
]);
|
|
125
125
|
}
|
|
126
126
|
layout(width, height, top, left) {
|
|
@@ -257,13 +257,13 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
257
257
|
}
|
|
258
258
|
this._previewDisposable.add(value);
|
|
259
259
|
const title = this._direction === "outgoingCalls"
|
|
260
|
-
? ( localize(
|
|
261
|
-
: ( localize(
|
|
260
|
+
? ( localize(9632, "Calls from '{0}'", element.model.root.name))
|
|
261
|
+
: ( localize(9633, "Callers of '{0}'", element.model.root.name));
|
|
262
262
|
this.setTitle(title);
|
|
263
263
|
}
|
|
264
264
|
showLoading() {
|
|
265
265
|
this._parent.dataset['state'] = "loading" ;
|
|
266
|
-
this.setTitle(( localize(
|
|
266
|
+
this.setTitle(( localize(9634, "Loading...")));
|
|
267
267
|
this._show();
|
|
268
268
|
}
|
|
269
269
|
showMessage(message) {
|
|
@@ -282,8 +282,8 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
282
282
|
await this._tree.expand(root.element);
|
|
283
283
|
if (root.children.length === 0) {
|
|
284
284
|
this.showMessage(this._direction === "outgoingCalls"
|
|
285
|
-
? ( localize(
|
|
286
|
-
: ( localize(
|
|
285
|
+
? ( localize(9635, "No calls from '{0}'", model.root.name))
|
|
286
|
+
: ( localize(9636, "No callers of '{0}'", model.root.name)));
|
|
287
287
|
}
|
|
288
288
|
else {
|
|
289
289
|
this._parent.dataset['state'] = "data" ;
|
|
@@ -128,14 +128,14 @@ class AccessibilityProvider {
|
|
|
128
128
|
this.getDirection = getDirection;
|
|
129
129
|
}
|
|
130
130
|
getWidgetAriaLabel() {
|
|
131
|
-
return ( localize(
|
|
131
|
+
return ( localize(11356, "Call Hierarchy"));
|
|
132
132
|
}
|
|
133
133
|
getAriaLabel(element) {
|
|
134
134
|
if (this.getDirection() === "outgoingCalls" ) {
|
|
135
|
-
return ( localize(
|
|
135
|
+
return ( localize(11357, "calls from {0}", element.item.name));
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
|
-
return ( localize(
|
|
138
|
+
return ( localize(11358, "callers of {0}", element.item.name));
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -252,13 +252,13 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
252
252
|
}
|
|
253
253
|
this._previewDisposable.add(value);
|
|
254
254
|
const title = this._direction === "supertypes"
|
|
255
|
-
? ( localize(
|
|
256
|
-
: ( localize(
|
|
255
|
+
? ( localize(9627, "Supertypes of '{0}'", element.model.root.name))
|
|
256
|
+
: ( localize(9628, "Subtypes of '{0}'", element.model.root.name));
|
|
257
257
|
this.setTitle(title);
|
|
258
258
|
}
|
|
259
259
|
showLoading() {
|
|
260
260
|
this._parent.dataset['state'] = "loading" ;
|
|
261
|
-
this.setTitle(( localize(
|
|
261
|
+
this.setTitle(( localize(9629, "Loading...")));
|
|
262
262
|
this._show();
|
|
263
263
|
}
|
|
264
264
|
showMessage(message) {
|
|
@@ -277,8 +277,8 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
277
277
|
await this._tree.expand(root.element);
|
|
278
278
|
if (root.children.length === 0) {
|
|
279
279
|
this.showMessage(this._direction === "supertypes"
|
|
280
|
-
? ( localize(
|
|
281
|
-
: ( localize(
|
|
280
|
+
? ( localize(9630, "No supertypes of '{0}'", model.root.name))
|
|
281
|
+
: ( localize(9631, "No subtypes of '{0}'", model.root.name)));
|
|
282
282
|
}
|
|
283
283
|
else {
|
|
284
284
|
this._parent.dataset['state'] = "data" ;
|
|
@@ -116,14 +116,14 @@ class AccessibilityProvider {
|
|
|
116
116
|
this.getDirection = getDirection;
|
|
117
117
|
}
|
|
118
118
|
getWidgetAriaLabel() {
|
|
119
|
-
return ( localize(
|
|
119
|
+
return ( localize(11353, "Type Hierarchy"));
|
|
120
120
|
}
|
|
121
121
|
getAriaLabel(element) {
|
|
122
122
|
if (this.getDirection() === "supertypes" ) {
|
|
123
|
-
return ( localize(
|
|
123
|
+
return ( localize(11354, "supertypes of {0}", element.item.name));
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
126
|
-
return ( localize(
|
|
126
|
+
return ( localize(11355, "subtypes of {0}", element.item.name));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|