@codingame/monaco-vscode-view-common-service-override 10.0.1 → 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/parts/activitybar/activitybarPart.js +21 -21
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
- 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/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +27 -27
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
- 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/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +1 -1
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
|
}
|
|
@@ -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
|
});
|
|
@@ -24,22 +24,22 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
24
24
|
static { this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
25
25
|
{
|
|
26
26
|
id: 'workbench.input.interactive',
|
|
27
|
-
label: ( localize(
|
|
27
|
+
label: ( localize(9837, 'Interactive Window')),
|
|
28
28
|
priority: RegisteredEditorPriority.builtin
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
id: 'mainThreadWebview-markdown.preview',
|
|
32
|
-
label: ( localize(
|
|
32
|
+
label: ( localize(9838, "Markdown Preview")),
|
|
33
33
|
priority: RegisteredEditorPriority.builtin
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
id: 'mainThreadWebview-simpleBrowser.view',
|
|
37
|
-
label: ( localize(
|
|
37
|
+
label: ( localize(9839, "Simple Browser")),
|
|
38
38
|
priority: RegisteredEditorPriority.builtin
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
id: 'mainThreadWebview-browserPreview',
|
|
42
|
-
label: ( localize(
|
|
42
|
+
label: ( localize(9840, "Live Preview")),
|
|
43
43
|
priority: RegisteredEditorPriority.builtin
|
|
44
44
|
}
|
|
45
45
|
]; }
|
|
@@ -84,7 +84,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
84
84
|
'workbench.editor.autoLockGroups': {
|
|
85
85
|
type: 'object',
|
|
86
86
|
description: ( localize(
|
|
87
|
-
|
|
87
|
+
9841,
|
|
88
88
|
"If an editor matching one of the listed types is opened as the first in an editor group and more than one group is open, the group is automatically locked. Locked groups will only be used for opening editors when explicitly chosen by a user gesture (for example drag and drop), but not by default. Consequently, the active editor in a locked group is less likely to be replaced accidentally with a different editor."
|
|
89
89
|
)),
|
|
90
90
|
properties: autoLockGroupConfiguration,
|
|
@@ -102,7 +102,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
102
102
|
default: '',
|
|
103
103
|
enum: [...binaryEditorCandidates, ''],
|
|
104
104
|
description: ( localize(
|
|
105
|
-
|
|
105
|
+
9842,
|
|
106
106
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
107
107
|
)),
|
|
108
108
|
}
|
|
@@ -115,7 +115,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
115
115
|
'workbench.editorAssociations': {
|
|
116
116
|
type: 'object',
|
|
117
117
|
markdownDescription: ( localize(
|
|
118
|
-
|
|
118
|
+
9843,
|
|
119
119
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
120
120
|
)),
|
|
121
121
|
patternProperties: {
|
|
@@ -137,7 +137,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
137
137
|
minimum: 1,
|
|
138
138
|
scope: 4 ,
|
|
139
139
|
markdownDescription: ( localize(
|
|
140
|
-
|
|
140
|
+
9844,
|
|
141
141
|
"Controls the minimum size of a file in MB before asking for confirmation when opening in the editor. Note that this setting may not apply to all editor types and environments."
|
|
142
142
|
)),
|
|
143
143
|
}
|
|
@@ -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
|
}
|
|
@@ -30,7 +30,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
30
30
|
this.add(( (new CustomEditorInfo({
|
|
31
31
|
id: webviewEditorContribution.viewType,
|
|
32
32
|
displayName: webviewEditorContribution.displayName,
|
|
33
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
33
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(9615, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
34
34
|
selector: webviewEditorContribution.selector || [],
|
|
35
35
|
priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
|
|
36
36
|
}))));
|
|
@@ -5,7 +5,7 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from 'v
|
|
|
5
5
|
|
|
6
6
|
const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( (new RawContextKey('activeCustomEditorId', '', {
|
|
7
7
|
type: 'string',
|
|
8
|
-
description: ( localize(
|
|
8
|
+
description: ( localize(9614, "The viewType of the currently active custom editor.")),
|
|
9
9
|
})));
|
|
10
10
|
const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( (new RawContextKey('focusedCustomEditorIsEditable', false)));
|
|
11
11
|
class CustomEditorInfo {
|
|
@@ -54,7 +54,7 @@ class OpenMergeEditor extends Action2 {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super({
|
|
56
56
|
id: '_open.mergeEditor',
|
|
57
|
-
title: ( localize2(
|
|
57
|
+
title: ( localize2(9850, 'Open Merge Editor')),
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
run(accessor, ...args) {
|
|
@@ -133,7 +133,7 @@ class SetMixedLayout extends Action2 {
|
|
|
133
133
|
constructor() {
|
|
134
134
|
super({
|
|
135
135
|
id: 'merge.mixedLayout',
|
|
136
|
-
title: ( localize2(
|
|
136
|
+
title: ( localize2(9851, "Mixed Layout")),
|
|
137
137
|
toggled: ( (ctxMergeEditorLayout.isEqualTo('mixed'))),
|
|
138
138
|
menu: [
|
|
139
139
|
{
|
|
@@ -157,7 +157,7 @@ class SetColumnLayout extends Action2 {
|
|
|
157
157
|
constructor() {
|
|
158
158
|
super({
|
|
159
159
|
id: 'merge.columnLayout',
|
|
160
|
-
title: ( localize2(
|
|
160
|
+
title: ( localize2(9852, 'Column Layout')),
|
|
161
161
|
toggled: ( (ctxMergeEditorLayout.isEqualTo('columns'))),
|
|
162
162
|
menu: [{
|
|
163
163
|
id: MenuId.EditorTitle,
|
|
@@ -179,7 +179,7 @@ class ShowNonConflictingChanges extends Action2 {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super({
|
|
181
181
|
id: 'merge.showNonConflictingChanges',
|
|
182
|
-
title: ( localize2(
|
|
182
|
+
title: ( localize2(9853, "Show Non-Conflicting Changes")),
|
|
183
183
|
toggled: ( (ctxMergeEditorShowNonConflictingChanges.isEqualTo(true))),
|
|
184
184
|
menu: [
|
|
185
185
|
{
|
|
@@ -203,7 +203,7 @@ class ShowHideBase extends Action2 {
|
|
|
203
203
|
constructor() {
|
|
204
204
|
super({
|
|
205
205
|
id: 'merge.showBase',
|
|
206
|
-
title: ( localize2(
|
|
206
|
+
title: ( localize2(9854, "Show Base")),
|
|
207
207
|
toggled: ( (ctxMergeEditorShowBase.isEqualTo(true))),
|
|
208
208
|
menu: [
|
|
209
209
|
{
|
|
@@ -229,7 +229,7 @@ class ShowHideTopBase extends Action2 {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: 'merge.showBaseTop',
|
|
232
|
-
title: ( localize2(
|
|
232
|
+
title: ( localize2(9855, "Show Base Top")),
|
|
233
233
|
toggled: ( (ContextKeyExpr.and(ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop))),
|
|
234
234
|
menu: [
|
|
235
235
|
{
|
|
@@ -252,7 +252,7 @@ class ShowHideCenterBase extends Action2 {
|
|
|
252
252
|
constructor() {
|
|
253
253
|
super({
|
|
254
254
|
id: 'merge.showBaseCenter',
|
|
255
|
-
title: ( localize2(
|
|
255
|
+
title: ( localize2(9856, "Show Base Center")),
|
|
256
256
|
toggled: ( (ContextKeyExpr.and(
|
|
257
257
|
ctxMergeEditorShowBase,
|
|
258
258
|
(ctxMergeEditorShowBaseAtTop.negate())
|
|
@@ -274,13 +274,13 @@ class ShowHideCenterBase extends Action2 {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
const mergeEditorCategory = ( localize2(
|
|
277
|
+
const mergeEditorCategory = ( localize2(9857, "Merge Editor"));
|
|
278
278
|
class OpenResultResource extends MergeEditorAction {
|
|
279
279
|
constructor() {
|
|
280
280
|
super({
|
|
281
281
|
id: 'merge.openResult',
|
|
282
282
|
icon: Codicon.goToFile,
|
|
283
|
-
title: ( localize2(
|
|
283
|
+
title: ( localize2(9858, "Open File")),
|
|
284
284
|
category: mergeEditorCategory,
|
|
285
285
|
menu: [{
|
|
286
286
|
id: MenuId.EditorTitle,
|
|
@@ -301,7 +301,7 @@ class GoToNextUnhandledConflict extends MergeEditorAction {
|
|
|
301
301
|
super({
|
|
302
302
|
id: 'merge.goToNextUnhandledConflict',
|
|
303
303
|
category: mergeEditorCategory,
|
|
304
|
-
title: ( localize2(
|
|
304
|
+
title: ( localize2(9859, "Go to Next Unhandled Conflict")),
|
|
305
305
|
icon: Codicon.arrowDown,
|
|
306
306
|
menu: [
|
|
307
307
|
{
|
|
@@ -325,7 +325,7 @@ class GoToPreviousUnhandledConflict extends MergeEditorAction {
|
|
|
325
325
|
super({
|
|
326
326
|
id: 'merge.goToPreviousUnhandledConflict',
|
|
327
327
|
category: mergeEditorCategory,
|
|
328
|
-
title: ( localize2(
|
|
328
|
+
title: ( localize2(9860, "Go to Previous Unhandled Conflict")),
|
|
329
329
|
icon: Codicon.arrowUp,
|
|
330
330
|
menu: [
|
|
331
331
|
{
|
|
@@ -349,7 +349,7 @@ class ToggleActiveConflictInput1 extends MergeEditorAction {
|
|
|
349
349
|
super({
|
|
350
350
|
id: 'merge.toggleActiveConflictInput1',
|
|
351
351
|
category: mergeEditorCategory,
|
|
352
|
-
title: ( localize2(
|
|
352
|
+
title: ( localize2(9861, "Toggle Current Conflict from Left")),
|
|
353
353
|
f1: true,
|
|
354
354
|
precondition: ctxIsMergeEditor,
|
|
355
355
|
});
|
|
@@ -363,7 +363,7 @@ class ToggleActiveConflictInput2 extends MergeEditorAction {
|
|
|
363
363
|
super({
|
|
364
364
|
id: 'merge.toggleActiveConflictInput2',
|
|
365
365
|
category: mergeEditorCategory,
|
|
366
|
-
title: ( localize2(
|
|
366
|
+
title: ( localize2(9862, "Toggle Current Conflict from Right")),
|
|
367
367
|
f1: true,
|
|
368
368
|
precondition: ctxIsMergeEditor,
|
|
369
369
|
});
|
|
@@ -377,8 +377,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
|
|
|
377
377
|
super({
|
|
378
378
|
id: 'mergeEditor.compareInput1WithBase',
|
|
379
379
|
category: mergeEditorCategory,
|
|
380
|
-
title: ( localize2(
|
|
381
|
-
shortTitle: ( localize(
|
|
380
|
+
title: ( localize2(9863, "Compare Input 1 With Base")),
|
|
381
|
+
shortTitle: ( localize(9864, 'Compare With Base')),
|
|
382
382
|
f1: true,
|
|
383
383
|
precondition: ctxIsMergeEditor,
|
|
384
384
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -395,8 +395,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
|
|
|
395
395
|
super({
|
|
396
396
|
id: 'mergeEditor.compareInput2WithBase',
|
|
397
397
|
category: mergeEditorCategory,
|
|
398
|
-
title: ( localize2(
|
|
399
|
-
shortTitle: ( localize(
|
|
398
|
+
title: ( localize2(9865, "Compare Input 2 With Base")),
|
|
399
|
+
shortTitle: ( localize(9864, 'Compare With Base')),
|
|
400
400
|
f1: true,
|
|
401
401
|
precondition: ctxIsMergeEditor,
|
|
402
402
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -432,7 +432,7 @@ class OpenBaseFile extends MergeEditorAction {
|
|
|
432
432
|
super({
|
|
433
433
|
id: 'merge.openBaseEditor',
|
|
434
434
|
category: mergeEditorCategory,
|
|
435
|
-
title: ( localize2(
|
|
435
|
+
title: ( localize2(9866, "Open Base File")),
|
|
436
436
|
f1: true,
|
|
437
437
|
precondition: ctxIsMergeEditor,
|
|
438
438
|
});
|
|
@@ -447,7 +447,7 @@ class AcceptAllInput1 extends MergeEditorAction {
|
|
|
447
447
|
super({
|
|
448
448
|
id: 'merge.acceptAllInput1',
|
|
449
449
|
category: mergeEditorCategory,
|
|
450
|
-
title: ( localize2(
|
|
450
|
+
title: ( localize2(9867, "Accept All Changes from Left")),
|
|
451
451
|
f1: true,
|
|
452
452
|
precondition: ctxIsMergeEditor,
|
|
453
453
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -463,7 +463,7 @@ class AcceptAllInput2 extends MergeEditorAction {
|
|
|
463
463
|
super({
|
|
464
464
|
id: 'merge.acceptAllInput2',
|
|
465
465
|
category: mergeEditorCategory,
|
|
466
|
-
title: ( localize2(
|
|
466
|
+
title: ( localize2(9868, "Accept All Changes from Right")),
|
|
467
467
|
f1: true,
|
|
468
468
|
precondition: ctxIsMergeEditor,
|
|
469
469
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -479,8 +479,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
|
|
|
479
479
|
super({
|
|
480
480
|
id: 'mergeEditor.resetResultToBaseAndAutoMerge',
|
|
481
481
|
category: mergeEditorCategory,
|
|
482
|
-
title: ( localize2(
|
|
483
|
-
shortTitle: ( localize(
|
|
482
|
+
title: ( localize2(9869, "Reset Result")),
|
|
483
|
+
shortTitle: ( localize(9870, 'Reset')),
|
|
484
484
|
f1: true,
|
|
485
485
|
precondition: ctxIsMergeEditor,
|
|
486
486
|
menu: { id: MenuId.MergeInputResultToolbar, group: 'primary' },
|
|
@@ -496,7 +496,7 @@ class ResetCloseWithConflictsChoice extends Action2 {
|
|
|
496
496
|
super({
|
|
497
497
|
id: 'mergeEditor.resetCloseWithConflictsChoice',
|
|
498
498
|
category: mergeEditorCategory,
|
|
499
|
-
title: ( localize2(
|
|
499
|
+
title: ( localize2(9871, "Reset Choice for \'Close with Conflicts\'")),
|
|
500
500
|
f1: true,
|
|
501
501
|
});
|
|
502
502
|
}
|
|
@@ -509,7 +509,7 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
509
509
|
super({
|
|
510
510
|
id: 'mergeEditor.acceptMerge',
|
|
511
511
|
category: mergeEditorCategory,
|
|
512
|
-
title: ( localize2(
|
|
512
|
+
title: ( localize2(9872, "Complete Merge")),
|
|
513
513
|
f1: false,
|
|
514
514
|
precondition: ctxIsMergeEditor
|
|
515
515
|
});
|
|
@@ -520,12 +520,12 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
520
520
|
if (viewModel.model.unhandledConflictsCount.get() > 0) {
|
|
521
521
|
const { confirmed } = await dialogService.confirm({
|
|
522
522
|
message: ( localize(
|
|
523
|
-
|
|
523
|
+
9873,
|
|
524
524
|
"Do you want to complete the merge of {0}?",
|
|
525
525
|
basename(inputModel.resultUri)
|
|
526
526
|
)),
|
|
527
|
-
detail: ( localize(
|
|
528
|
-
primaryButton: ( localize(
|
|
527
|
+
detail: ( localize(9874, "The file contains unhandled conflicts.")),
|
|
528
|
+
primaryButton: ( localize(9875, "&&Complete with Conflicts"))
|
|
529
529
|
});
|
|
530
530
|
if (!confirmed) {
|
|
531
531
|
return {
|
|
@@ -13,13 +13,13 @@ import { MergeEditor } from '../view/mergeEditor.js';
|
|
|
13
13
|
import { ctxIsMergeEditor } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor';
|
|
14
14
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
15
15
|
|
|
16
|
-
const MERGE_EDITOR_CATEGORY = ( localize2(
|
|
16
|
+
const MERGE_EDITOR_CATEGORY = ( localize2(9876, 'Merge Editor (Dev)'));
|
|
17
17
|
class MergeEditorCopyContentsToJSON extends Action2 {
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: 'merge.dev.copyContentsJson',
|
|
21
21
|
category: MERGE_EDITOR_CATEGORY,
|
|
22
|
-
title: ( localize2(
|
|
22
|
+
title: ( localize2(9877, "Copy Merge Editor State as JSON")),
|
|
23
23
|
icon: Codicon.layoutCentered,
|
|
24
24
|
f1: true,
|
|
25
25
|
precondition: ctxIsMergeEditor,
|
|
@@ -31,8 +31,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
|
|
|
31
31
|
const notificationService = accessor.get(INotificationService);
|
|
32
32
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
33
33
|
notificationService.info({
|
|
34
|
-
name: ( localize(
|
|
35
|
-
message: ( localize(
|
|
34
|
+
name: ( localize(9878, 'Merge Editor')),
|
|
35
|
+
message: ( localize(9879, "No active merge editor"))
|
|
36
36
|
});
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
@@ -51,8 +51,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
|
|
|
51
51
|
const jsonStr = JSON.stringify(contents, undefined, 4);
|
|
52
52
|
clipboardService.writeText(jsonStr);
|
|
53
53
|
notificationService.info({
|
|
54
|
-
name: ( localize(
|
|
55
|
-
message: ( localize(
|
|
54
|
+
name: ( localize(9878, 'Merge Editor')),
|
|
55
|
+
message: ( localize(9880, "Successfully copied merge editor state")),
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -61,7 +61,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
61
61
|
super({
|
|
62
62
|
id: 'merge.dev.saveContentsToFolder',
|
|
63
63
|
category: MERGE_EDITOR_CATEGORY,
|
|
64
|
-
title: ( localize2(
|
|
64
|
+
title: ( localize2(9881, "Save Merge Editor State to Folder")),
|
|
65
65
|
icon: Codicon.layoutCentered,
|
|
66
66
|
f1: true,
|
|
67
67
|
precondition: ctxIsMergeEditor,
|
|
@@ -75,8 +75,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
75
75
|
const languageService = accessor.get(ILanguageService);
|
|
76
76
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
77
77
|
notificationService.info({
|
|
78
|
-
name: ( localize(
|
|
79
|
-
message: ( localize(
|
|
78
|
+
name: ( localize(9878, 'Merge Editor')),
|
|
79
|
+
message: ( localize(9879, "No active merge editor"))
|
|
80
80
|
});
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
@@ -88,7 +88,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
88
88
|
canSelectFiles: false,
|
|
89
89
|
canSelectFolders: true,
|
|
90
90
|
canSelectMany: false,
|
|
91
|
-
title: ( localize(
|
|
91
|
+
title: ( localize(9882, 'Select folder to save to'))
|
|
92
92
|
});
|
|
93
93
|
if (!result) {
|
|
94
94
|
return;
|
|
@@ -106,8 +106,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
106
106
|
write('initialResult', model.getInitialResultValue()),
|
|
107
107
|
]);
|
|
108
108
|
notificationService.info({
|
|
109
|
-
name: ( localize(
|
|
110
|
-
message: ( localize(
|
|
109
|
+
name: ( localize(9878, 'Merge Editor')),
|
|
110
|
+
message: ( localize(9883, "Successfully saved merge editor state to folder")),
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -116,7 +116,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
116
116
|
super({
|
|
117
117
|
id: 'merge.dev.loadContentsFromFolder',
|
|
118
118
|
category: MERGE_EDITOR_CATEGORY,
|
|
119
|
-
title: ( localize2(
|
|
119
|
+
title: ( localize2(9884, "Load Merge Editor State from Folder")),
|
|
120
120
|
icon: Codicon.layoutCentered,
|
|
121
121
|
f1: true
|
|
122
122
|
});
|
|
@@ -135,7 +135,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
135
135
|
canSelectFiles: false,
|
|
136
136
|
canSelectFolders: true,
|
|
137
137
|
canSelectMany: false,
|
|
138
|
-
title: ( localize(
|
|
138
|
+
title: ( localize(9882, 'Select folder to save to'))
|
|
139
139
|
});
|
|
140
140
|
if (!result) {
|
|
141
141
|
return;
|
|
@@ -11,19 +11,19 @@ import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
|
11
11
|
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
12
12
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
13
13
|
|
|
14
|
-
registerColor('mergeEditor.change.background', '#9bb95533', ( localize(
|
|
15
|
-
registerColor('mergeEditor.change.word.background', { dark: '#9ccc2c33', light: '#9ccc2c66', hcDark: '#9ccc2c33', hcLight: '#9ccc2c66', }, ( localize(
|
|
16
|
-
registerColor('mergeEditor.changeBase.background', { dark: '#4B1818FF', light: '#FFCCCCFF', hcDark: '#4B1818FF', hcLight: '#FFCCCCFF', }, ( localize(
|
|
17
|
-
registerColor('mergeEditor.changeBase.word.background', { dark: '#6F1313FF', light: '#FFA3A3FF', hcDark: '#6F1313FF', hcLight: '#FFA3A3FF', }, ( localize(
|
|
18
|
-
registerColor('mergeEditor.conflict.unhandledUnfocused.border', { dark: '#ffa6007a', light: '#ffa600FF', hcDark: '#ffa6007a', hcLight: '#ffa6007a', }, ( localize(
|
|
19
|
-
registerColor('mergeEditor.conflict.unhandledFocused.border', '#ffa600', ( localize(
|
|
20
|
-
registerColor('mergeEditor.conflict.handledUnfocused.border', '#86868649', ( localize(
|
|
21
|
-
registerColor('mergeEditor.conflict.handledFocused.border', '#c1c1c1cc', ( localize(
|
|
22
|
-
const handledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.handled.minimapOverViewRuler', '#adaca8ee', ( localize(
|
|
23
|
-
const unhandledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.unhandled.minimapOverViewRuler', '#fcba03FF', ( localize(
|
|
24
|
-
registerColor('mergeEditor.conflictingLines.background', '#ffea0047', ( localize(
|
|
14
|
+
registerColor('mergeEditor.change.background', '#9bb95533', ( localize(11369, 'The background color for changes.')));
|
|
15
|
+
registerColor('mergeEditor.change.word.background', { dark: '#9ccc2c33', light: '#9ccc2c66', hcDark: '#9ccc2c33', hcLight: '#9ccc2c66', }, ( localize(11370, 'The background color for word changes.')));
|
|
16
|
+
registerColor('mergeEditor.changeBase.background', { dark: '#4B1818FF', light: '#FFCCCCFF', hcDark: '#4B1818FF', hcLight: '#FFCCCCFF', }, ( localize(11371, 'The background color for changes in base.')));
|
|
17
|
+
registerColor('mergeEditor.changeBase.word.background', { dark: '#6F1313FF', light: '#FFA3A3FF', hcDark: '#6F1313FF', hcLight: '#FFA3A3FF', }, ( localize(11372, 'The background color for word changes in base.')));
|
|
18
|
+
registerColor('mergeEditor.conflict.unhandledUnfocused.border', { dark: '#ffa6007a', light: '#ffa600FF', hcDark: '#ffa6007a', hcLight: '#ffa6007a', }, ( localize(11373, 'The border color of unhandled unfocused conflicts.')));
|
|
19
|
+
registerColor('mergeEditor.conflict.unhandledFocused.border', '#ffa600', ( localize(11374, 'The border color of unhandled focused conflicts.')));
|
|
20
|
+
registerColor('mergeEditor.conflict.handledUnfocused.border', '#86868649', ( localize(11375, 'The border color of handled unfocused conflicts.')));
|
|
21
|
+
registerColor('mergeEditor.conflict.handledFocused.border', '#c1c1c1cc', ( localize(11376, 'The border color of handled focused conflicts.')));
|
|
22
|
+
const handledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.handled.minimapOverViewRuler', '#adaca8ee', ( localize(11377, 'The foreground color for changes in input 1.')));
|
|
23
|
+
const unhandledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.unhandled.minimapOverViewRuler', '#fcba03FF', ( localize(11378, 'The foreground color for changes in input 1.')));
|
|
24
|
+
registerColor('mergeEditor.conflictingLines.background', '#ffea0047', ( localize(11379, 'The background of the "Conflicting Lines" text.')));
|
|
25
25
|
const contentTransparency = 0.4;
|
|
26
|
-
registerColor('mergeEditor.conflict.input1.background', ( (transparent(mergeCurrentHeaderBackground, contentTransparency))), ( localize(
|
|
27
|
-
registerColor('mergeEditor.conflict.input2.background', ( (transparent(mergeIncomingHeaderBackground, contentTransparency))), ( localize(
|
|
26
|
+
registerColor('mergeEditor.conflict.input1.background', ( (transparent(mergeCurrentHeaderBackground, contentTransparency))), ( localize(11380, 'The background color of decorations in input 1.')));
|
|
27
|
+
registerColor('mergeEditor.conflict.input2.background', ( (transparent(mergeIncomingHeaderBackground, contentTransparency))), ( localize(11381, 'The background color of decorations in input 2.')));
|
|
28
28
|
|
|
29
29
|
export { handledConflictMinimapOverViewRulerColor, unhandledConflictMinimapOverViewRulerColor };
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js
CHANGED
|
@@ -159,8 +159,8 @@ let InputCodeEditorView = class InputCodeEditorView extends CodeEditorView {
|
|
|
159
159
|
}
|
|
160
160
|
this.editor.setModel(this.inputNumber === 1 ? vm.model.input1.textModel : vm.model.input2.textModel);
|
|
161
161
|
const title = this.inputNumber === 1
|
|
162
|
-
? vm.model.input1.title || ( localize(
|
|
163
|
-
: vm.model.input2.title || ( localize(
|
|
162
|
+
? vm.model.input1.title || ( localize(11382, 'Input 1'))
|
|
163
|
+
: vm.model.input2.title || ( localize(11383, 'Input 2'));
|
|
164
164
|
const description = this.inputNumber === 1
|
|
165
165
|
? vm.model.input1.description
|
|
166
166
|
: vm.model.input2.description;
|
|
@@ -242,19 +242,19 @@ class ModifiedBaseRangeGutterItemModel {
|
|
|
242
242
|
const both = state.includesInput1 && state.includesInput2;
|
|
243
243
|
return [
|
|
244
244
|
this.baseRange.input1Diffs.length > 0
|
|
245
|
-
? action('mergeEditor.acceptInput1', ( localize(
|
|
245
|
+
? action('mergeEditor.acceptInput1', ( localize(11384, 'Accept {0}', this.model.input1.title)), state.toggle(1), state.includesInput1)
|
|
246
246
|
: undefined,
|
|
247
247
|
this.baseRange.input2Diffs.length > 0
|
|
248
|
-
? action('mergeEditor.acceptInput2', ( localize(
|
|
248
|
+
? action('mergeEditor.acceptInput2', ( localize(11384, 'Accept {0}', this.model.input2.title)), state.toggle(2), state.includesInput2)
|
|
249
249
|
: undefined,
|
|
250
250
|
this.baseRange.isConflicting
|
|
251
|
-
? setFields(action('mergeEditor.acceptBoth', ( localize(
|
|
251
|
+
? setFields(action('mergeEditor.acceptBoth', ( localize(11385, 'Accept Both')), state.withInputValue(1, !both).withInputValue(2, !both), both), { enabled: this.baseRange.canBeCombined })
|
|
252
252
|
: undefined,
|
|
253
253
|
( (new Separator())),
|
|
254
254
|
this.baseRange.isConflicting
|
|
255
|
-
? setFields(action('mergeEditor.swap', ( localize(
|
|
255
|
+
? setFields(action('mergeEditor.swap', ( localize(11386, 'Swap')), state.swap(), false), { enabled: !state.kind && (!both || this.baseRange.isOrderRelevant) })
|
|
256
256
|
: undefined,
|
|
257
|
-
setFields(( (new Action('mergeEditor.markAsHandled', ( localize(
|
|
257
|
+
setFields(( (new Action('mergeEditor.markAsHandled', ( localize(11387, 'Mark as Handled')), undefined, true, () => {
|
|
258
258
|
transaction((tx) => {
|
|
259
259
|
this.model.setHandled(this.baseRange, !handled, tx);
|
|
260
260
|
});
|
|
@@ -297,10 +297,10 @@ class MergeConflictGutterItemView extends Disposable {
|
|
|
297
297
|
const item = this.item.read(reader);
|
|
298
298
|
const value = item.toggleState.read(reader);
|
|
299
299
|
const iconMap = {
|
|
300
|
-
[0 ]: { icon: undefined, checked: false, title: ( localize(
|
|
301
|
-
[3 ]: { icon: Codicon.circleFilled, checked: false, title: ( localize(
|
|
302
|
-
[1 ]: { icon: Codicon.check, checked: true, title: ( localize(
|
|
303
|
-
[2 ]: { icon: Codicon.checkAll, checked: true, title: ( localize(
|
|
300
|
+
[0 ]: { icon: undefined, checked: false, title: ( localize(11388, "Accept")) },
|
|
301
|
+
[3 ]: { icon: Codicon.circleFilled, checked: false, title: ( localize(11389, "Accept (result is dirty)")) },
|
|
302
|
+
[1 ]: { icon: Codicon.check, checked: true, title: ( localize(11390, "Undo accept")) },
|
|
303
|
+
[2 ]: { icon: Codicon.checkAll, checked: true, title: ( localize(11391, "Undo accept (currently second)")) },
|
|
304
304
|
};
|
|
305
305
|
const state = iconMap[value];
|
|
306
306
|
checkBox.setIcon(state.icon);
|
|
@@ -122,7 +122,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
122
122
|
if (this.input) {
|
|
123
123
|
return this.input.getName();
|
|
124
124
|
}
|
|
125
|
-
return ( localize(
|
|
125
|
+
return ( localize(9885, "Text Merge Editor"));
|
|
126
126
|
}
|
|
127
127
|
createEditorControl(parent, initialOptions) {
|
|
128
128
|
this.rootHtmlElement = parent;
|
|
@@ -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
|
}
|
|
@@ -157,7 +157,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
157
157
|
this._hasFindResult.fire(didFind);
|
|
158
158
|
}));
|
|
159
159
|
this._register(this.on('fatal-error', (e) => {
|
|
160
|
-
notificationService.error(( localize(
|
|
160
|
+
notificationService.error(( localize(9619, "Error loading webview: {0}", e.message)));
|
|
161
161
|
this._onFatalError.fire({ message: e.message });
|
|
162
162
|
}));
|
|
163
163
|
this._register(this.on('did-keydown', (data) => {
|
|
@@ -15,7 +15,7 @@ const webviewActiveContextKeyExpr = ( (ContextKeyExpr.and(
|
|
|
15
15
|
)));
|
|
16
16
|
class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
17
17
|
static { this.ID = 'editor.action.webvieweditor.showFind'; }
|
|
18
|
-
static { this.LABEL = ( localize(
|
|
18
|
+
static { this.LABEL = ( localize(9845, "Show find")); }
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: ShowWebViewEditorFindWidgetAction.ID,
|
|
@@ -36,7 +36,7 @@ class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
|
36
36
|
}
|
|
37
37
|
class HideWebViewEditorFindCommand extends Action2 {
|
|
38
38
|
static { this.ID = 'editor.action.webvieweditor.hideFind'; }
|
|
39
|
-
static { this.LABEL = ( localize(
|
|
39
|
+
static { this.LABEL = ( localize(9846, "Stop find")); }
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: HideWebViewEditorFindCommand.ID,
|
|
@@ -57,7 +57,7 @@ class HideWebViewEditorFindCommand extends Action2 {
|
|
|
57
57
|
}
|
|
58
58
|
class WebViewEditorFindNextCommand extends Action2 {
|
|
59
59
|
static { this.ID = 'editor.action.webvieweditor.findNext'; }
|
|
60
|
-
static { this.LABEL = ( localize(
|
|
60
|
+
static { this.LABEL = ( localize(9847, 'Find next')); }
|
|
61
61
|
constructor() {
|
|
62
62
|
super({
|
|
63
63
|
id: WebViewEditorFindNextCommand.ID,
|
|
@@ -78,7 +78,7 @@ class WebViewEditorFindNextCommand extends Action2 {
|
|
|
78
78
|
}
|
|
79
79
|
class WebViewEditorFindPreviousCommand extends Action2 {
|
|
80
80
|
static { this.ID = 'editor.action.webvieweditor.findPrevious'; }
|
|
81
|
-
static { this.LABEL = ( localize(
|
|
81
|
+
static { this.LABEL = ( localize(9848, 'Find previous')); }
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: WebViewEditorFindPreviousCommand.ID,
|
|
@@ -99,7 +99,7 @@ class WebViewEditorFindPreviousCommand extends Action2 {
|
|
|
99
99
|
}
|
|
100
100
|
class ReloadWebviewAction extends Action2 {
|
|
101
101
|
static { this.ID = 'workbench.action.webview.reloadWebviewAction'; }
|
|
102
|
-
static { this.LABEL = ( localize2(
|
|
102
|
+
static { this.LABEL = ( localize2(9849, "Reload Webviews")); }
|
|
103
103
|
constructor() {
|
|
104
104
|
super({
|
|
105
105
|
id: ReloadWebviewAction.ID,
|
|
@@ -23,7 +23,7 @@ registerAction2(class extends Action2 {
|
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
25
25
|
id: '_workbench.output.showViewsLog',
|
|
26
|
-
title: ( localize2(
|
|
26
|
+
title: ( localize2(9613, "Show Views Log")),
|
|
27
27
|
category: Categories.Developer,
|
|
28
28
|
f1: true
|
|
29
29
|
});
|