@codingame/monaco-vscode-view-common-service-override 8.0.0 → 8.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/api/browser/viewsExtensionPoint.js +58 -58
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +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/auxiliarybar/auxiliaryBarPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +159 -159
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +1 -1
- 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/paneCompositePart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- 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/customEditor/common/extensionPoint.js +12 -12
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +27 -27
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +12 -12
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- 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 -11
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +9 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +7 -7
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +2 -2
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +1 -1
|
@@ -55,7 +55,7 @@ class OpenMergeEditor extends Action2 {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: '_open.mergeEditor',
|
|
58
|
-
title: ( localize2(
|
|
58
|
+
title: ( localize2(9743, 'Open Merge Editor')),
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
run(accessor, ...args) {
|
|
@@ -134,7 +134,7 @@ class SetMixedLayout extends Action2 {
|
|
|
134
134
|
constructor() {
|
|
135
135
|
super({
|
|
136
136
|
id: 'merge.mixedLayout',
|
|
137
|
-
title: ( localize2(
|
|
137
|
+
title: ( localize2(9744, "Mixed Layout")),
|
|
138
138
|
toggled: ( (ctxMergeEditorLayout.isEqualTo('mixed'))),
|
|
139
139
|
menu: [
|
|
140
140
|
{
|
|
@@ -158,7 +158,7 @@ class SetColumnLayout extends Action2 {
|
|
|
158
158
|
constructor() {
|
|
159
159
|
super({
|
|
160
160
|
id: 'merge.columnLayout',
|
|
161
|
-
title: ( localize2(
|
|
161
|
+
title: ( localize2(9745, 'Column Layout')),
|
|
162
162
|
toggled: ( (ctxMergeEditorLayout.isEqualTo('columns'))),
|
|
163
163
|
menu: [{
|
|
164
164
|
id: MenuId.EditorTitle,
|
|
@@ -180,7 +180,7 @@ class ShowNonConflictingChanges extends Action2 {
|
|
|
180
180
|
constructor() {
|
|
181
181
|
super({
|
|
182
182
|
id: 'merge.showNonConflictingChanges',
|
|
183
|
-
title: ( localize2(
|
|
183
|
+
title: ( localize2(9746, "Show Non-Conflicting Changes")),
|
|
184
184
|
toggled: ( (ctxMergeEditorShowNonConflictingChanges.isEqualTo(true))),
|
|
185
185
|
menu: [
|
|
186
186
|
{
|
|
@@ -204,7 +204,7 @@ class ShowHideBase extends Action2 {
|
|
|
204
204
|
constructor() {
|
|
205
205
|
super({
|
|
206
206
|
id: 'merge.showBase',
|
|
207
|
-
title: ( localize2(
|
|
207
|
+
title: ( localize2(9747, "Show Base")),
|
|
208
208
|
toggled: ( (ctxMergeEditorShowBase.isEqualTo(true))),
|
|
209
209
|
menu: [
|
|
210
210
|
{
|
|
@@ -230,7 +230,7 @@ class ShowHideTopBase extends Action2 {
|
|
|
230
230
|
constructor() {
|
|
231
231
|
super({
|
|
232
232
|
id: 'merge.showBaseTop',
|
|
233
|
-
title: ( localize2(
|
|
233
|
+
title: ( localize2(9748, "Show Base Top")),
|
|
234
234
|
toggled: ( (ContextKeyExpr.and(ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop))),
|
|
235
235
|
menu: [
|
|
236
236
|
{
|
|
@@ -253,7 +253,7 @@ class ShowHideCenterBase extends Action2 {
|
|
|
253
253
|
constructor() {
|
|
254
254
|
super({
|
|
255
255
|
id: 'merge.showBaseCenter',
|
|
256
|
-
title: ( localize2(
|
|
256
|
+
title: ( localize2(9749, "Show Base Center")),
|
|
257
257
|
toggled: ( (ContextKeyExpr.and(
|
|
258
258
|
ctxMergeEditorShowBase,
|
|
259
259
|
(ctxMergeEditorShowBaseAtTop.negate())
|
|
@@ -275,13 +275,13 @@ class ShowHideCenterBase extends Action2 {
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
const mergeEditorCategory = ( localize2(
|
|
278
|
+
const mergeEditorCategory = ( localize2(9750, "Merge Editor"));
|
|
279
279
|
class OpenResultResource extends MergeEditorAction {
|
|
280
280
|
constructor() {
|
|
281
281
|
super({
|
|
282
282
|
id: 'merge.openResult',
|
|
283
283
|
icon: Codicon.goToFile,
|
|
284
|
-
title: ( localize2(
|
|
284
|
+
title: ( localize2(9751, "Open File")),
|
|
285
285
|
category: mergeEditorCategory,
|
|
286
286
|
menu: [{
|
|
287
287
|
id: MenuId.EditorTitle,
|
|
@@ -302,7 +302,7 @@ class GoToNextUnhandledConflict extends MergeEditorAction {
|
|
|
302
302
|
super({
|
|
303
303
|
id: 'merge.goToNextUnhandledConflict',
|
|
304
304
|
category: mergeEditorCategory,
|
|
305
|
-
title: ( localize2(
|
|
305
|
+
title: ( localize2(9752, "Go to Next Unhandled Conflict")),
|
|
306
306
|
icon: Codicon.arrowDown,
|
|
307
307
|
menu: [
|
|
308
308
|
{
|
|
@@ -326,7 +326,7 @@ class GoToPreviousUnhandledConflict extends MergeEditorAction {
|
|
|
326
326
|
super({
|
|
327
327
|
id: 'merge.goToPreviousUnhandledConflict',
|
|
328
328
|
category: mergeEditorCategory,
|
|
329
|
-
title: ( localize2(
|
|
329
|
+
title: ( localize2(9753, "Go to Previous Unhandled Conflict")),
|
|
330
330
|
icon: Codicon.arrowUp,
|
|
331
331
|
menu: [
|
|
332
332
|
{
|
|
@@ -350,7 +350,7 @@ class ToggleActiveConflictInput1 extends MergeEditorAction {
|
|
|
350
350
|
super({
|
|
351
351
|
id: 'merge.toggleActiveConflictInput1',
|
|
352
352
|
category: mergeEditorCategory,
|
|
353
|
-
title: ( localize2(
|
|
353
|
+
title: ( localize2(9754, "Toggle Current Conflict from Left")),
|
|
354
354
|
f1: true,
|
|
355
355
|
precondition: ctxIsMergeEditor,
|
|
356
356
|
});
|
|
@@ -364,7 +364,7 @@ class ToggleActiveConflictInput2 extends MergeEditorAction {
|
|
|
364
364
|
super({
|
|
365
365
|
id: 'merge.toggleActiveConflictInput2',
|
|
366
366
|
category: mergeEditorCategory,
|
|
367
|
-
title: ( localize2(
|
|
367
|
+
title: ( localize2(9755, "Toggle Current Conflict from Right")),
|
|
368
368
|
f1: true,
|
|
369
369
|
precondition: ctxIsMergeEditor,
|
|
370
370
|
});
|
|
@@ -378,8 +378,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
|
|
|
378
378
|
super({
|
|
379
379
|
id: 'mergeEditor.compareInput1WithBase',
|
|
380
380
|
category: mergeEditorCategory,
|
|
381
|
-
title: ( localize2(
|
|
382
|
-
shortTitle: ( localize(
|
|
381
|
+
title: ( localize2(9756, "Compare Input 1 With Base")),
|
|
382
|
+
shortTitle: ( localize(9757, 'Compare With Base')),
|
|
383
383
|
f1: true,
|
|
384
384
|
precondition: ctxIsMergeEditor,
|
|
385
385
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -396,8 +396,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
|
|
|
396
396
|
super({
|
|
397
397
|
id: 'mergeEditor.compareInput2WithBase',
|
|
398
398
|
category: mergeEditorCategory,
|
|
399
|
-
title: ( localize2(
|
|
400
|
-
shortTitle: ( localize(
|
|
399
|
+
title: ( localize2(9758, "Compare Input 2 With Base")),
|
|
400
|
+
shortTitle: ( localize(9757, 'Compare With Base')),
|
|
401
401
|
f1: true,
|
|
402
402
|
precondition: ctxIsMergeEditor,
|
|
403
403
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -433,7 +433,7 @@ class OpenBaseFile extends MergeEditorAction {
|
|
|
433
433
|
super({
|
|
434
434
|
id: 'merge.openBaseEditor',
|
|
435
435
|
category: mergeEditorCategory,
|
|
436
|
-
title: ( localize2(
|
|
436
|
+
title: ( localize2(9759, "Open Base File")),
|
|
437
437
|
f1: true,
|
|
438
438
|
precondition: ctxIsMergeEditor,
|
|
439
439
|
});
|
|
@@ -448,7 +448,7 @@ class AcceptAllInput1 extends MergeEditorAction {
|
|
|
448
448
|
super({
|
|
449
449
|
id: 'merge.acceptAllInput1',
|
|
450
450
|
category: mergeEditorCategory,
|
|
451
|
-
title: ( localize2(
|
|
451
|
+
title: ( localize2(9760, "Accept All Changes from Left")),
|
|
452
452
|
f1: true,
|
|
453
453
|
precondition: ctxIsMergeEditor,
|
|
454
454
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -464,7 +464,7 @@ class AcceptAllInput2 extends MergeEditorAction {
|
|
|
464
464
|
super({
|
|
465
465
|
id: 'merge.acceptAllInput2',
|
|
466
466
|
category: mergeEditorCategory,
|
|
467
|
-
title: ( localize2(
|
|
467
|
+
title: ( localize2(9761, "Accept All Changes from Right")),
|
|
468
468
|
f1: true,
|
|
469
469
|
precondition: ctxIsMergeEditor,
|
|
470
470
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -480,8 +480,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
|
|
|
480
480
|
super({
|
|
481
481
|
id: 'mergeEditor.resetResultToBaseAndAutoMerge',
|
|
482
482
|
category: mergeEditorCategory,
|
|
483
|
-
title: ( localize2(
|
|
484
|
-
shortTitle: ( localize(
|
|
483
|
+
title: ( localize2(9762, "Reset Result")),
|
|
484
|
+
shortTitle: ( localize(9763, 'Reset')),
|
|
485
485
|
f1: true,
|
|
486
486
|
precondition: ctxIsMergeEditor,
|
|
487
487
|
menu: { id: MenuId.MergeInputResultToolbar, group: 'primary' },
|
|
@@ -497,7 +497,7 @@ class ResetCloseWithConflictsChoice extends Action2 {
|
|
|
497
497
|
super({
|
|
498
498
|
id: 'mergeEditor.resetCloseWithConflictsChoice',
|
|
499
499
|
category: mergeEditorCategory,
|
|
500
|
-
title: ( localize2(
|
|
500
|
+
title: ( localize2(9764, "Reset Choice for \'Close with Conflicts\'")),
|
|
501
501
|
f1: true,
|
|
502
502
|
});
|
|
503
503
|
}
|
|
@@ -510,7 +510,7 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
510
510
|
super({
|
|
511
511
|
id: 'mergeEditor.acceptMerge',
|
|
512
512
|
category: mergeEditorCategory,
|
|
513
|
-
title: ( localize2(
|
|
513
|
+
title: ( localize2(9765, "Complete Merge")),
|
|
514
514
|
f1: false,
|
|
515
515
|
precondition: ctxIsMergeEditor
|
|
516
516
|
});
|
|
@@ -521,12 +521,12 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
521
521
|
if (viewModel.model.unhandledConflictsCount.get() > 0) {
|
|
522
522
|
const { confirmed } = await dialogService.confirm({
|
|
523
523
|
message: ( localize(
|
|
524
|
-
|
|
524
|
+
9766,
|
|
525
525
|
"Do you want to complete the merge of {0}?",
|
|
526
526
|
basename(inputModel.resultUri)
|
|
527
527
|
)),
|
|
528
|
-
detail: ( localize(
|
|
529
|
-
primaryButton: ( localize(
|
|
528
|
+
detail: ( localize(9767, "The file contains unhandled conflicts.")),
|
|
529
|
+
primaryButton: ( localize(9768, "&&Complete with Conflicts"))
|
|
530
530
|
});
|
|
531
531
|
if (!confirmed) {
|
|
532
532
|
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(9769, '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(9770, "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(9771, 'Merge Editor')),
|
|
35
|
+
message: ( localize(9772, "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(9771, 'Merge Editor')),
|
|
55
|
+
message: ( localize(9773, "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(9774, "Save Merge Editor State to Folder")),
|
|
65
65
|
icon: Codicon.layoutCentered,
|
|
66
66
|
f1: true,
|
|
67
67
|
precondition: ctxIsMergeEditor,
|
|
@@ -75,7 +75,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
75
75
|
const languageService = accessor.get(ILanguageService);
|
|
76
76
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
77
77
|
notificationService.info({
|
|
78
|
-
name: ( localize(
|
|
78
|
+
name: ( localize(9771, 'Merge Editor')),
|
|
79
79
|
message: ( localize(9772, "No active merge editor"))
|
|
80
80
|
});
|
|
81
81
|
return;
|
|
@@ -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(9775, '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(9771, 'Merge Editor')),
|
|
110
|
+
message: ( localize(9776, "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(9777, "Load Merge Editor State from Folder")),
|
|
120
120
|
icon: Codicon.layoutCentered,
|
|
121
121
|
f1: true
|
|
122
122
|
});
|
|
@@ -13,7 +13,7 @@ import { MergeEditor, MergeEditorOpenHandlerContribution, MergeEditorResolverCon
|
|
|
13
13
|
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
14
14
|
import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
15
15
|
|
|
16
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(
|
|
16
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(4363, "Merge Editor"))), [
|
|
17
17
|
( (new SyncDescriptor(MergeEditorInput)))
|
|
18
18
|
]);
|
|
19
19
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(MergeEditorInput.ID, MergeEditorSerializer);
|
|
@@ -24,8 +24,8 @@ import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
|
24
24
|
enum: ['legacy', 'advanced'],
|
|
25
25
|
default: 'advanced',
|
|
26
26
|
markdownEnumDescriptions: [
|
|
27
|
-
( localize(
|
|
28
|
-
( localize(
|
|
27
|
+
( localize(4364, "Uses the legacy diffing algorithm.")),
|
|
28
|
+
( localize(4365, "Uses the advanced diffing algorithm.")),
|
|
29
29
|
]
|
|
30
30
|
},
|
|
31
31
|
'mergeEditor.showDeletionMarkers': {
|
|
@@ -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(11198, 'The background color for changes.')));
|
|
15
|
+
registerColor('mergeEditor.change.word.background', { dark: '#9ccc2c33', light: '#9ccc2c66', hcDark: '#9ccc2c33', hcLight: '#9ccc2c66', }, ( localize(11199, 'The background color for word changes.')));
|
|
16
|
+
registerColor('mergeEditor.changeBase.background', { dark: '#4B1818FF', light: '#FFCCCCFF', hcDark: '#4B1818FF', hcLight: '#FFCCCCFF', }, ( localize(11200, 'The background color for changes in base.')));
|
|
17
|
+
registerColor('mergeEditor.changeBase.word.background', { dark: '#6F1313FF', light: '#FFA3A3FF', hcDark: '#6F1313FF', hcLight: '#FFA3A3FF', }, ( localize(11201, 'The background color for word changes in base.')));
|
|
18
|
+
registerColor('mergeEditor.conflict.unhandledUnfocused.border', { dark: '#ffa6007a', light: '#ffa600FF', hcDark: '#ffa6007a', hcLight: '#ffa6007a', }, ( localize(11202, 'The border color of unhandled unfocused conflicts.')));
|
|
19
|
+
registerColor('mergeEditor.conflict.unhandledFocused.border', '#ffa600', ( localize(11203, 'The border color of unhandled focused conflicts.')));
|
|
20
|
+
registerColor('mergeEditor.conflict.handledUnfocused.border', '#86868649', ( localize(11204, 'The border color of handled unfocused conflicts.')));
|
|
21
|
+
registerColor('mergeEditor.conflict.handledFocused.border', '#c1c1c1cc', ( localize(11205, 'The border color of handled focused conflicts.')));
|
|
22
|
+
const handledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.handled.minimapOverViewRuler', '#adaca8ee', ( localize(11206, 'The foreground color for changes in input 1.')));
|
|
23
|
+
const unhandledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.unhandled.minimapOverViewRuler', '#fcba03FF', ( localize(11207, 'The foreground color for changes in input 1.')));
|
|
24
|
+
registerColor('mergeEditor.conflictingLines.background', '#ffea0047', ( localize(11208, '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(11209, 'The background color of decorations in input 1.')));
|
|
27
|
+
registerColor('mergeEditor.conflict.input2.background', ( (transparent(mergeIncomingHeaderBackground, contentTransparency))), ( localize(11210, 'The background color of decorations in input 2.')));
|
|
28
28
|
|
|
29
29
|
export { handledConflictMinimapOverViewRulerColor, unhandledConflictMinimapOverViewRulerColor };
|
|
@@ -123,7 +123,7 @@ class ActionsSource {
|
|
|
123
123
|
}, ( localize(11488, 'Remove {0} from the result document.', model.input1.title))));
|
|
124
124
|
}
|
|
125
125
|
if (state.includesInput2) {
|
|
126
|
-
stateToggles.push(command(( localize(
|
|
126
|
+
stateToggles.push(command(( localize(11487, 'Remove {0}', model.input2.title)), async () => {
|
|
127
127
|
transaction((tx) => {
|
|
128
128
|
model.setState(modifiedBaseRange, state.withInputValue(2, false), true, tx);
|
|
129
129
|
model.telemetry.reportRemoveInvoked(2, state.includesInput(1));
|
|
@@ -211,7 +211,7 @@ class ActionsSource {
|
|
|
211
211
|
model.telemetry.reportSmartCombinationInvoked(state.includesInput(otherInputNumber));
|
|
212
212
|
});
|
|
213
213
|
}, ( localize(
|
|
214
|
-
|
|
214
|
+
11495,
|
|
215
215
|
"Accept an automatic combination of both sides in the result document."
|
|
216
216
|
))));
|
|
217
217
|
}
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js
CHANGED
|
@@ -115,16 +115,16 @@ let BaseCodeEditorView = class BaseCodeEditorView extends CodeEditorView {
|
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
117
|
this.editor.setModel(vm.model.base);
|
|
118
|
-
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(
|
|
118
|
+
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(11194, 'Base'))));
|
|
119
119
|
const baseShowDiffAgainst = vm.baseShowDiffAgainst.read(reader);
|
|
120
120
|
let node = undefined;
|
|
121
121
|
if (baseShowDiffAgainst) {
|
|
122
122
|
const label = ( localize(
|
|
123
|
-
|
|
123
|
+
11195,
|
|
124
124
|
'Comparing with {0}',
|
|
125
125
|
baseShowDiffAgainst === 1 ? vm.model.input1.title : vm.model.input2.title
|
|
126
126
|
));
|
|
127
|
-
const tooltip = ( localize(
|
|
127
|
+
const tooltip = ( localize(11196, 'Differences are highlighted with a background color.'));
|
|
128
128
|
node = h('span', { title: tooltip }, [label]).root;
|
|
129
129
|
}
|
|
130
130
|
reset(this.htmlElements.description, ...(node ? [node] : []));
|
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(11211, 'Input 1'))
|
|
163
|
+
: vm.model.input2.title || ( localize(11212, '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(11213, '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(11213, '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(11214, '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(11215, '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(11216, '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
|
-
[InputState.excluded]: { icon: undefined, checked: false, title: ( localize(
|
|
301
|
-
[InputState.unrecognized]: { icon: Codicon.circleFilled, checked: false, title: ( localize(
|
|
302
|
-
[InputState.first]: { icon: Codicon.check, checked: true, title: ( localize(
|
|
303
|
-
[InputState.second]: { icon: Codicon.checkAll, checked: true, title: ( localize(
|
|
300
|
+
[InputState.excluded]: { icon: undefined, checked: false, title: ( localize(11217, "Accept")) },
|
|
301
|
+
[InputState.unrecognized]: { icon: Codicon.circleFilled, checked: false, title: ( localize(11218, "Accept (result is dirty)")) },
|
|
302
|
+
[InputState.first]: { icon: Codicon.check, checked: true, title: ( localize(11219, "Undo accept")) },
|
|
303
|
+
[InputState.second]: { icon: Codicon.checkAll, checked: true, title: ( localize(11220, "Undo accept (currently second)")) },
|
|
304
304
|
};
|
|
305
305
|
const state = iconMap[value];
|
|
306
306
|
checkBox.setIcon(state.icon);
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js
CHANGED
|
@@ -131,7 +131,7 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
this.editor.setModel(vm.model.resultTextModel);
|
|
134
|
-
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(
|
|
134
|
+
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(11221, 'Result'))));
|
|
135
135
|
reset(this.htmlElements.description, ...renderLabelWithIcons(this._labelService.getUriLabel(vm.model.resultTextModel.uri, { relative: true })));
|
|
136
136
|
}));
|
|
137
137
|
const remainingConflictsActionBar = this._register(( (new ActionBar(this.htmlElements.detail))));
|
|
@@ -146,8 +146,8 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
146
146
|
}
|
|
147
147
|
const count = model.unhandledConflictsCount.read(reader);
|
|
148
148
|
const text = count === 1
|
|
149
|
-
? ( localize(
|
|
150
|
-
: ( localize(
|
|
149
|
+
? ( localize(11222, '{0} Conflict Remaining', count))
|
|
150
|
+
: ( localize(11223, '{0} Conflicts Remaining ', count));
|
|
151
151
|
remainingConflictsActionBar.clear();
|
|
152
152
|
remainingConflictsActionBar.push({
|
|
153
153
|
class: undefined,
|
|
@@ -159,8 +159,8 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
159
159
|
vm.goToNextModifiedBaseRange(m => !model.isHandled(m).get());
|
|
160
160
|
},
|
|
161
161
|
tooltip: count > 0
|
|
162
|
-
? ( localize(
|
|
163
|
-
: ( localize(
|
|
162
|
+
? ( localize(11224, 'Go to next conflict'))
|
|
163
|
+
: ( localize(11225, 'All conflicts handled, the merge can be completed now.')),
|
|
164
164
|
});
|
|
165
165
|
}));
|
|
166
166
|
this._register(applyObservableDecorations(this.editor, this.decorations));
|
|
@@ -126,7 +126,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
126
126
|
if (this.input) {
|
|
127
127
|
return this.input.getName();
|
|
128
128
|
}
|
|
129
|
-
return ( localize(
|
|
129
|
+
return ( localize(9778, "Text Merge Editor"));
|
|
130
130
|
}
|
|
131
131
|
createEditorControl(parent, initialOptions) {
|
|
132
132
|
this.rootHtmlElement = parent;
|
|
@@ -205,7 +205,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
|
|
|
205
205
|
toggleActiveConflict(inputNumber) {
|
|
206
206
|
const activeModifiedBaseRange = this.activeModifiedBaseRange.get();
|
|
207
207
|
if (!activeModifiedBaseRange) {
|
|
208
|
-
this.notificationService.error(( localize(
|
|
208
|
+
this.notificationService.error(( localize(11197, "There is currently no conflict focused that can be toggled.")));
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
transaction(tx => {
|
|
@@ -23,11 +23,11 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
23
23
|
this.keyboardLayoutService = keyboardLayoutService;
|
|
24
24
|
this.statusbarService = statusbarService;
|
|
25
25
|
this.pickerElement = this._register(( (new MutableDisposable())));
|
|
26
|
-
const name = ( localize(
|
|
26
|
+
const name = ( localize(4379, "Keyboard Layout"));
|
|
27
27
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
28
28
|
if (layout) {
|
|
29
29
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
30
|
-
const text = ( localize(
|
|
30
|
+
const text = ( localize(4380, "Layout: {0}", layoutInfo.label));
|
|
31
31
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
32
32
|
name,
|
|
33
33
|
text,
|
|
@@ -39,7 +39,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
39
39
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
40
40
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
41
41
|
if (this.pickerElement.value) {
|
|
42
|
-
const text = ( localize(
|
|
42
|
+
const text = ( localize(4380, "Layout: {0}", layoutInfo.label));
|
|
43
43
|
this.pickerElement.value.update({
|
|
44
44
|
name,
|
|
45
45
|
text,
|
|
@@ -48,7 +48,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
else {
|
|
51
|
-
const text = ( localize(
|
|
51
|
+
const text = ( localize(4380, "Layout: {0}", layoutInfo.label));
|
|
52
52
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
53
53
|
name,
|
|
54
54
|
text,
|
|
@@ -66,11 +66,11 @@ KeyboardLayoutPickerContribution = ( (__decorate([
|
|
|
66
66
|
registerWorkbenchContribution2(KeyboardLayoutPickerContribution.ID, KeyboardLayoutPickerContribution, WorkbenchPhase.BlockStartup);
|
|
67
67
|
const DEFAULT_CONTENT = [
|
|
68
68
|
`// ${( localize(
|
|
69
|
-
|
|
69
|
+
4381,
|
|
70
70
|
'Defines the keyboard layout used in VS Code in the browser environment.'
|
|
71
71
|
))}`,
|
|
72
72
|
`// ${( localize(
|
|
73
|
-
|
|
73
|
+
4382,
|
|
74
74
|
'Open VS Code and run "Developer: Inspect Key Mappings (JSON)" from Command Palette.'
|
|
75
75
|
))}`,
|
|
76
76
|
``,
|
|
@@ -81,7 +81,7 @@ registerAction2(class extends Action2 {
|
|
|
81
81
|
constructor() {
|
|
82
82
|
super({
|
|
83
83
|
id: KEYBOARD_LAYOUT_OPEN_PICKER,
|
|
84
|
-
title: ( localize2(
|
|
84
|
+
title: ( localize2(4383, "Change Keyboard Layout")),
|
|
85
85
|
f1: true
|
|
86
86
|
});
|
|
87
87
|
}
|
|
@@ -111,17 +111,17 @@ registerAction2(class extends Action2 {
|
|
|
111
111
|
});
|
|
112
112
|
if (picks.length > 0) {
|
|
113
113
|
const platform = isMacintosh ? 'Mac' : isWindows ? 'Win' : 'Linux';
|
|
114
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
114
|
+
picks.unshift({ type: 'separator', label: ( localize(4384, "Keyboard Layouts ({0})", platform)) });
|
|
115
115
|
}
|
|
116
|
-
const configureKeyboardLayout = { label: ( localize(
|
|
116
|
+
const configureKeyboardLayout = { label: ( localize(4385, "Configure Keyboard Layout")) };
|
|
117
117
|
picks.unshift(configureKeyboardLayout);
|
|
118
118
|
const autoDetectMode = {
|
|
119
|
-
label: ( localize(
|
|
119
|
+
label: ( localize(4386, "Auto Detect")),
|
|
120
120
|
description: isAutoDetect ? `Current: ${parseKeyboardLayoutDescription(currentLayout).label}` : undefined,
|
|
121
121
|
picked: isAutoDetect ? true : undefined
|
|
122
122
|
};
|
|
123
123
|
picks.unshift(autoDetectMode);
|
|
124
|
-
const pick = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
124
|
+
const pick = await quickInputService.pick(picks, { placeHolder: ( localize(4387, "Select Keyboard Layout")), matchOnDescription: true });
|
|
125
125
|
if (!pick) {
|
|
126
126
|
return;
|
|
127
127
|
}
|
|
@@ -144,7 +144,7 @@ registerAction2(class extends Action2 {
|
|
|
144
144
|
});
|
|
145
145
|
}, (error) => {
|
|
146
146
|
throw ( (new Error(
|
|
147
|
-
localize(
|
|
147
|
+
localize(4388, "Unable to create '{0}' ({1}).", ( (file.toString())), error)
|
|
148
148
|
)));
|
|
149
149
|
});
|
|
150
150
|
return Promise.resolve();
|
|
@@ -19,7 +19,7 @@ import { isIOS } from 'vscode/vscode/vs/base/common/platform';
|
|
|
19
19
|
minimum: 1,
|
|
20
20
|
maximum: 20,
|
|
21
21
|
description: ( localize(
|
|
22
|
-
|
|
22
|
+
4377,
|
|
23
23
|
"Controls the feedback area size in pixels of the dragging area in between views/editors. Set it to a larger value if you feel it's hard to resize views using the mouse."
|
|
24
24
|
))
|
|
25
25
|
},
|
|
@@ -29,7 +29,7 @@ import { isIOS } from 'vscode/vscode/vs/base/common/platform';
|
|
|
29
29
|
minimum: 0,
|
|
30
30
|
maximum: 2000,
|
|
31
31
|
description: ( localize(
|
|
32
|
-
|
|
32
|
+
4378,
|
|
33
33
|
"Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
|
|
34
34
|
))
|
|
35
35
|
},
|