@codingame/monaco-vscode-view-common-service-override 26.0.0 → 26.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +20 -20
- 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 +10 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +3 -3
- 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/scrollLocking/browser/scrollLocking.js +7 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +3 -3
- 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/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +8 -8
- 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 +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-common service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "26.
|
|
19
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "26.
|
|
18
|
+
"@codingame/monaco-vscode-api": "26.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "26.1.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -65,7 +65,7 @@ class OpenMergeEditor extends Action2 {
|
|
|
65
65
|
constructor() {
|
|
66
66
|
super({
|
|
67
67
|
id: "_open.mergeEditor",
|
|
68
|
-
title: ( localize2(
|
|
68
|
+
title: ( localize2(9389, "Open Merge Editor"))
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
run(accessor, ...args) {
|
|
@@ -152,7 +152,7 @@ class SetMixedLayout extends Action2 {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: "merge.mixedLayout",
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(9390, "Mixed Layout")),
|
|
156
156
|
toggled: ( ctxMergeEditorLayout.isEqualTo("mixed")),
|
|
157
157
|
menu: [{
|
|
158
158
|
id: MenuId.EditorTitle,
|
|
@@ -176,7 +176,7 @@ class SetColumnLayout extends Action2 {
|
|
|
176
176
|
constructor() {
|
|
177
177
|
super({
|
|
178
178
|
id: "merge.columnLayout",
|
|
179
|
-
title: ( localize2(
|
|
179
|
+
title: ( localize2(9391, "Column Layout")),
|
|
180
180
|
toggled: ( ctxMergeEditorLayout.isEqualTo("columns")),
|
|
181
181
|
menu: [{
|
|
182
182
|
id: MenuId.EditorTitle,
|
|
@@ -200,7 +200,7 @@ class ShowNonConflictingChanges extends Action2 {
|
|
|
200
200
|
constructor() {
|
|
201
201
|
super({
|
|
202
202
|
id: "merge.showNonConflictingChanges",
|
|
203
|
-
title: ( localize2(
|
|
203
|
+
title: ( localize2(9392, "Show Non-Conflicting Changes")),
|
|
204
204
|
toggled: ( ctxMergeEditorShowNonConflictingChanges.isEqualTo(true)),
|
|
205
205
|
menu: [{
|
|
206
206
|
id: MenuId.EditorTitle,
|
|
@@ -224,7 +224,7 @@ class ShowHideBase extends Action2 {
|
|
|
224
224
|
constructor() {
|
|
225
225
|
super({
|
|
226
226
|
id: "merge.showBase",
|
|
227
|
-
title: ( localize2(
|
|
227
|
+
title: ( localize2(9393, "Show Base")),
|
|
228
228
|
toggled: ( ctxMergeEditorShowBase.isEqualTo(true)),
|
|
229
229
|
menu: [{
|
|
230
230
|
id: MenuId.EditorTitle,
|
|
@@ -247,7 +247,7 @@ class ShowHideTopBase extends Action2 {
|
|
|
247
247
|
constructor() {
|
|
248
248
|
super({
|
|
249
249
|
id: "merge.showBaseTop",
|
|
250
|
-
title: ( localize2(
|
|
250
|
+
title: ( localize2(9394, "Show Base Top")),
|
|
251
251
|
toggled: ( ContextKeyExpr.and(ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop)),
|
|
252
252
|
menu: [{
|
|
253
253
|
id: MenuId.EditorTitle,
|
|
@@ -270,7 +270,7 @@ class ShowHideCenterBase extends Action2 {
|
|
|
270
270
|
constructor() {
|
|
271
271
|
super({
|
|
272
272
|
id: "merge.showBaseCenter",
|
|
273
|
-
title: ( localize2(
|
|
273
|
+
title: ( localize2(9395, "Show Base Center")),
|
|
274
274
|
toggled: ( ContextKeyExpr.and(ctxMergeEditorShowBase, ( ctxMergeEditorShowBaseAtTop.negate()))),
|
|
275
275
|
menu: [{
|
|
276
276
|
id: MenuId.EditorTitle,
|
|
@@ -289,13 +289,13 @@ class ShowHideCenterBase extends Action2 {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
const mergeEditorCategory = ( localize2(
|
|
292
|
+
const mergeEditorCategory = ( localize2(9396, "Merge Editor"));
|
|
293
293
|
class OpenResultResource extends MergeEditorAction {
|
|
294
294
|
constructor() {
|
|
295
295
|
super({
|
|
296
296
|
id: "merge.openResult",
|
|
297
297
|
icon: Codicon.goToFile,
|
|
298
|
-
title: ( localize2(
|
|
298
|
+
title: ( localize2(9397, "Open File")),
|
|
299
299
|
category: mergeEditorCategory,
|
|
300
300
|
menu: [{
|
|
301
301
|
id: MenuId.EditorTitle,
|
|
@@ -318,7 +318,7 @@ class GoToNextUnhandledConflict extends MergeEditorAction {
|
|
|
318
318
|
super({
|
|
319
319
|
id: "merge.goToNextUnhandledConflict",
|
|
320
320
|
category: mergeEditorCategory,
|
|
321
|
-
title: ( localize2(
|
|
321
|
+
title: ( localize2(9398, "Go to Next Unhandled Conflict")),
|
|
322
322
|
icon: Codicon.arrowDown,
|
|
323
323
|
menu: [{
|
|
324
324
|
id: MenuId.EditorTitle,
|
|
@@ -340,7 +340,7 @@ class GoToPreviousUnhandledConflict extends MergeEditorAction {
|
|
|
340
340
|
super({
|
|
341
341
|
id: "merge.goToPreviousUnhandledConflict",
|
|
342
342
|
category: mergeEditorCategory,
|
|
343
|
-
title: ( localize2(
|
|
343
|
+
title: ( localize2(9399, "Go to Previous Unhandled Conflict")),
|
|
344
344
|
icon: Codicon.arrowUp,
|
|
345
345
|
menu: [{
|
|
346
346
|
id: MenuId.EditorTitle,
|
|
@@ -362,7 +362,7 @@ class ToggleActiveConflictInput1 extends MergeEditorAction {
|
|
|
362
362
|
super({
|
|
363
363
|
id: "merge.toggleActiveConflictInput1",
|
|
364
364
|
category: mergeEditorCategory,
|
|
365
|
-
title: ( localize2(
|
|
365
|
+
title: ( localize2(9400, "Toggle Current Conflict from Left")),
|
|
366
366
|
f1: true,
|
|
367
367
|
precondition: ctxIsMergeEditor
|
|
368
368
|
});
|
|
@@ -376,7 +376,7 @@ class ToggleActiveConflictInput2 extends MergeEditorAction {
|
|
|
376
376
|
super({
|
|
377
377
|
id: "merge.toggleActiveConflictInput2",
|
|
378
378
|
category: mergeEditorCategory,
|
|
379
|
-
title: ( localize2(
|
|
379
|
+
title: ( localize2(9401, "Toggle Current Conflict from Right")),
|
|
380
380
|
f1: true,
|
|
381
381
|
precondition: ctxIsMergeEditor
|
|
382
382
|
});
|
|
@@ -390,8 +390,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
|
|
|
390
390
|
super({
|
|
391
391
|
id: "mergeEditor.compareInput1WithBase",
|
|
392
392
|
category: mergeEditorCategory,
|
|
393
|
-
title: ( localize2(
|
|
394
|
-
shortTitle: ( localize(
|
|
393
|
+
title: ( localize2(9402, "Compare Input 1 With Base")),
|
|
394
|
+
shortTitle: ( localize(9403, "Compare With Base")),
|
|
395
395
|
f1: true,
|
|
396
396
|
precondition: ctxIsMergeEditor,
|
|
397
397
|
menu: {
|
|
@@ -411,8 +411,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
|
|
|
411
411
|
super({
|
|
412
412
|
id: "mergeEditor.compareInput2WithBase",
|
|
413
413
|
category: mergeEditorCategory,
|
|
414
|
-
title: ( localize2(
|
|
415
|
-
shortTitle: ( localize(
|
|
414
|
+
title: ( localize2(9404, "Compare Input 2 With Base")),
|
|
415
|
+
shortTitle: ( localize(9403, "Compare With Base")),
|
|
416
416
|
f1: true,
|
|
417
417
|
precondition: ctxIsMergeEditor,
|
|
418
418
|
menu: {
|
|
@@ -457,7 +457,7 @@ class OpenBaseFile extends MergeEditorAction {
|
|
|
457
457
|
super({
|
|
458
458
|
id: "merge.openBaseEditor",
|
|
459
459
|
category: mergeEditorCategory,
|
|
460
|
-
title: ( localize2(
|
|
460
|
+
title: ( localize2(9405, "Open Base File")),
|
|
461
461
|
f1: true,
|
|
462
462
|
precondition: ctxIsMergeEditor
|
|
463
463
|
});
|
|
@@ -472,7 +472,7 @@ class AcceptAllInput1 extends MergeEditorAction {
|
|
|
472
472
|
super({
|
|
473
473
|
id: "merge.acceptAllInput1",
|
|
474
474
|
category: mergeEditorCategory,
|
|
475
|
-
title: ( localize2(
|
|
475
|
+
title: ( localize2(9406, "Accept All Incoming Changes from Left")),
|
|
476
476
|
f1: true,
|
|
477
477
|
precondition: ctxIsMergeEditor,
|
|
478
478
|
menu: {
|
|
@@ -491,7 +491,7 @@ class AcceptAllInput2 extends MergeEditorAction {
|
|
|
491
491
|
super({
|
|
492
492
|
id: "merge.acceptAllInput2",
|
|
493
493
|
category: mergeEditorCategory,
|
|
494
|
-
title: ( localize2(
|
|
494
|
+
title: ( localize2(9407, "Accept All Current Changes from Right")),
|
|
495
495
|
f1: true,
|
|
496
496
|
precondition: ctxIsMergeEditor,
|
|
497
497
|
menu: {
|
|
@@ -510,8 +510,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
|
|
|
510
510
|
super({
|
|
511
511
|
id: "mergeEditor.resetResultToBaseAndAutoMerge",
|
|
512
512
|
category: mergeEditorCategory,
|
|
513
|
-
title: ( localize2(
|
|
514
|
-
shortTitle: ( localize(
|
|
513
|
+
title: ( localize2(9408, "Reset Result")),
|
|
514
|
+
shortTitle: ( localize(9409, "Reset")),
|
|
515
515
|
f1: true,
|
|
516
516
|
precondition: ctxIsMergeEditor,
|
|
517
517
|
menu: {
|
|
@@ -530,7 +530,7 @@ class ResetCloseWithConflictsChoice extends Action2 {
|
|
|
530
530
|
super({
|
|
531
531
|
id: "mergeEditor.resetCloseWithConflictsChoice",
|
|
532
532
|
category: mergeEditorCategory,
|
|
533
|
-
title: ( localize2(
|
|
533
|
+
title: ( localize2(9410, "Reset Choice for 'Close with Conflicts'")),
|
|
534
534
|
f1: true
|
|
535
535
|
});
|
|
536
536
|
}
|
|
@@ -543,7 +543,7 @@ class AcceptAllCombination extends MergeEditorAction2 {
|
|
|
543
543
|
super({
|
|
544
544
|
id: "mergeEditor.acceptAllCombination",
|
|
545
545
|
category: mergeEditorCategory,
|
|
546
|
-
title: ( localize2(
|
|
546
|
+
title: ( localize2(9411, "Accept All Combination")),
|
|
547
547
|
f1: true
|
|
548
548
|
});
|
|
549
549
|
}
|
|
@@ -572,7 +572,7 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
572
572
|
super({
|
|
573
573
|
id: "mergeEditor.acceptMerge",
|
|
574
574
|
category: mergeEditorCategory,
|
|
575
|
-
title: ( localize2(
|
|
575
|
+
title: ( localize2(9412, "Complete Merge")),
|
|
576
576
|
f1: true,
|
|
577
577
|
precondition: ctxIsMergeEditor,
|
|
578
578
|
keybinding: [{
|
|
@@ -597,12 +597,12 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
597
597
|
confirmed
|
|
598
598
|
} = await dialogService.confirm({
|
|
599
599
|
message: ( localize(
|
|
600
|
-
|
|
600
|
+
9413,
|
|
601
601
|
"Do you want to complete the merge of {0}?",
|
|
602
602
|
basename(inputModel.resultUri)
|
|
603
603
|
)),
|
|
604
|
-
detail: ( localize(
|
|
605
|
-
primaryButton: ( localize(
|
|
604
|
+
detail: ( localize(9414, "The file contains unhandled conflicts.")),
|
|
605
|
+
primaryButton: ( localize(9415, "&&Complete with Conflicts"))
|
|
606
606
|
});
|
|
607
607
|
if (!confirmed) {
|
|
608
608
|
return {
|
|
@@ -622,7 +622,7 @@ class ToggleBetweenInputs extends MergeEditorAction2 {
|
|
|
622
622
|
super({
|
|
623
623
|
id: "mergeEditor.toggleBetweenInputs",
|
|
624
624
|
category: mergeEditorCategory,
|
|
625
|
-
title: ( localize2(
|
|
625
|
+
title: ( localize2(9416, "Toggle Between Merge Editor Inputs")),
|
|
626
626
|
f1: true,
|
|
627
627
|
precondition: ctxIsMergeEditor,
|
|
628
628
|
keybinding: [{
|
|
@@ -14,13 +14,13 @@ import { MergeEditor } from '../view/mergeEditor.js';
|
|
|
14
14
|
import { ctxIsMergeEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor';
|
|
15
15
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
16
16
|
|
|
17
|
-
const MERGE_EDITOR_CATEGORY = ( localize2(
|
|
17
|
+
const MERGE_EDITOR_CATEGORY = ( localize2(9417, "Merge Editor (Dev)"));
|
|
18
18
|
class MergeEditorCopyContentsToJSON extends Action2 {
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: "merge.dev.copyContentsJson",
|
|
22
22
|
category: MERGE_EDITOR_CATEGORY,
|
|
23
|
-
title: ( localize2(
|
|
23
|
+
title: ( localize2(9418, "Copy Merge Editor State as JSON")),
|
|
24
24
|
icon: Codicon.layoutCentered,
|
|
25
25
|
f1: true,
|
|
26
26
|
precondition: ctxIsMergeEditor
|
|
@@ -34,8 +34,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
|
|
|
34
34
|
const notificationService = accessor.get(INotificationService);
|
|
35
35
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
36
36
|
notificationService.info({
|
|
37
|
-
name: ( localize(
|
|
38
|
-
message: ( localize(
|
|
37
|
+
name: ( localize(9419, "Merge Editor")),
|
|
38
|
+
message: ( localize(9420, "No active merge editor"))
|
|
39
39
|
});
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
@@ -54,8 +54,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
|
|
|
54
54
|
const jsonStr = JSON.stringify(contents, undefined, 4);
|
|
55
55
|
clipboardService.writeText(jsonStr);
|
|
56
56
|
notificationService.info({
|
|
57
|
-
name: ( localize(
|
|
58
|
-
message: ( localize(
|
|
57
|
+
name: ( localize(9419, "Merge Editor")),
|
|
58
|
+
message: ( localize(9421, "Successfully copied merge editor state"))
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -64,7 +64,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
64
64
|
super({
|
|
65
65
|
id: "merge.dev.saveContentsToFolder",
|
|
66
66
|
category: MERGE_EDITOR_CATEGORY,
|
|
67
|
-
title: ( localize2(
|
|
67
|
+
title: ( localize2(9422, "Save Merge Editor State to Folder")),
|
|
68
68
|
icon: Codicon.layoutCentered,
|
|
69
69
|
f1: true,
|
|
70
70
|
precondition: ctxIsMergeEditor
|
|
@@ -80,8 +80,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
80
80
|
const languageService = accessor.get(ILanguageService);
|
|
81
81
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
82
82
|
notificationService.info({
|
|
83
|
-
name: ( localize(
|
|
84
|
-
message: ( localize(
|
|
83
|
+
name: ( localize(9419, "Merge Editor")),
|
|
84
|
+
message: ( localize(9420, "No active merge editor"))
|
|
85
85
|
});
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
@@ -93,7 +93,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
93
93
|
canSelectFiles: false,
|
|
94
94
|
canSelectFolders: true,
|
|
95
95
|
canSelectMany: false,
|
|
96
|
-
title: ( localize(
|
|
96
|
+
title: ( localize(9423, "Select folder to save to"))
|
|
97
97
|
});
|
|
98
98
|
if (!result) {
|
|
99
99
|
return;
|
|
@@ -115,8 +115,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
115
115
|
write("initialResult", model.getInitialResultValue())
|
|
116
116
|
]);
|
|
117
117
|
notificationService.info({
|
|
118
|
-
name: ( localize(
|
|
119
|
-
message: ( localize(
|
|
118
|
+
name: ( localize(9419, "Merge Editor")),
|
|
119
|
+
message: ( localize(9424, "Successfully saved merge editor state to folder"))
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
}
|
|
@@ -125,7 +125,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
125
125
|
super({
|
|
126
126
|
id: "merge.dev.loadContentsFromFolder",
|
|
127
127
|
category: MERGE_EDITOR_CATEGORY,
|
|
128
|
-
title: ( localize2(
|
|
128
|
+
title: ( localize2(9425, "Load Merge Editor State from Folder")),
|
|
129
129
|
icon: Codicon.layoutCentered,
|
|
130
130
|
f1: true
|
|
131
131
|
});
|
|
@@ -144,7 +144,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
144
144
|
canSelectFiles: false,
|
|
145
145
|
canSelectFolders: true,
|
|
146
146
|
canSelectMany: false,
|
|
147
|
-
title: ( localize(
|
|
147
|
+
title: ( localize(9423, "Select folder to save to"))
|
|
148
148
|
});
|
|
149
149
|
if (!result) {
|
|
150
150
|
return;
|
|
@@ -16,7 +16,7 @@ import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
|
16
16
|
import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
17
17
|
import { MergeEditorAccessibilityHelpProvider } from './mergeEditorAccessibilityHelp.js';
|
|
18
18
|
|
|
19
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(
|
|
19
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(9426, "Merge Editor"))), [( new SyncDescriptor(MergeEditorInput))]);
|
|
20
20
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(MergeEditorInput.ID, MergeEditorSerializer);
|
|
21
21
|
( Registry.as(Extensions.Configuration)).registerConfiguration({
|
|
22
22
|
properties: {
|
|
@@ -24,7 +24,7 @@ import { MergeEditorAccessibilityHelpProvider } from './mergeEditorAccessibility
|
|
|
24
24
|
type: "string",
|
|
25
25
|
enum: ["legacy", "advanced"],
|
|
26
26
|
default: "advanced",
|
|
27
|
-
markdownEnumDescriptions: [( localize(
|
|
27
|
+
markdownEnumDescriptions: [( localize(9427, "Uses the legacy diffing algorithm.")), ( localize(9428, "Uses the advanced diffing algorithm."))]
|
|
28
28
|
},
|
|
29
29
|
"mergeEditor.showDeletionMarkers": {
|
|
30
30
|
type: "boolean",
|
|
@@ -18,18 +18,18 @@ class MergeEditorAccessibilityHelpProvider {
|
|
|
18
18
|
if (!codeEditor) {
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
const content = [( localize(
|
|
22
|
-
|
|
21
|
+
const content = [( localize(9429, "You are in a merge editor.")), ( localize(
|
|
22
|
+
9430,
|
|
23
23
|
"Navigate between merge conflicts using the commands Go to Next Unhandled Conflict{0} and Go to Previous Unhandled Conflict{1}.",
|
|
24
24
|
"<keybinding:merge.goToNextUnhandledConflict>",
|
|
25
25
|
"<keybinding:merge.goToPreviousUnhandledConflict>"
|
|
26
26
|
)), ( localize(
|
|
27
|
-
|
|
27
|
+
9431,
|
|
28
28
|
"Run the command Merge Editor: Accept All Incoming Changes from the Left{0} and Merge Editor: Accept All Current Changes from the Right{1}",
|
|
29
29
|
"<keybinding:merge.acceptAllInput1>",
|
|
30
30
|
"<keybinding:merge.acceptAllInput2>"
|
|
31
|
-
)), ( localize(
|
|
32
|
-
|
|
31
|
+
)), ( localize(9432, "Complete the Merge{0}.", "<keybinding:mergeEditor.acceptMerge>")), ( localize(
|
|
32
|
+
9433,
|
|
33
33
|
"Toggle between merge editor inputs, incoming and current changes {0}.",
|
|
34
34
|
"<keybinding:mergeEditor.toggleBetweenInputs>"
|
|
35
35
|
))];
|
|
@@ -12,51 +12,51 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/misc
|
|
|
12
12
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
13
13
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
14
14
|
|
|
15
|
-
registerColor("mergeEditor.change.background", "#9bb95533", ( localize(
|
|
15
|
+
registerColor("mergeEditor.change.background", "#9bb95533", ( localize(9469, "The background color for changes.")));
|
|
16
16
|
registerColor("mergeEditor.change.word.background", {
|
|
17
17
|
dark: "#9ccc2c33",
|
|
18
18
|
light: "#9ccc2c66",
|
|
19
19
|
hcDark: "#9ccc2c33",
|
|
20
20
|
hcLight: "#9ccc2c66"
|
|
21
|
-
}, ( localize(
|
|
21
|
+
}, ( localize(9470, "The background color for word changes.")));
|
|
22
22
|
registerColor("mergeEditor.changeBase.background", {
|
|
23
23
|
dark: "#4B1818FF",
|
|
24
24
|
light: "#FFCCCCFF",
|
|
25
25
|
hcDark: "#4B1818FF",
|
|
26
26
|
hcLight: "#FFCCCCFF"
|
|
27
|
-
}, ( localize(
|
|
27
|
+
}, ( localize(9471, "The background color for changes in base.")));
|
|
28
28
|
registerColor("mergeEditor.changeBase.word.background", {
|
|
29
29
|
dark: "#6F1313FF",
|
|
30
30
|
light: "#FFA3A3FF",
|
|
31
31
|
hcDark: "#6F1313FF",
|
|
32
32
|
hcLight: "#FFA3A3FF"
|
|
33
|
-
}, ( localize(
|
|
33
|
+
}, ( localize(9472, "The background color for word changes in base.")));
|
|
34
34
|
registerColor("mergeEditor.conflict.unhandledUnfocused.border", {
|
|
35
35
|
dark: "#ffa6007a",
|
|
36
36
|
light: "#ffa600FF",
|
|
37
37
|
hcDark: "#ffa6007a",
|
|
38
38
|
hcLight: "#ffa6007a"
|
|
39
|
-
}, ( localize(
|
|
40
|
-
registerColor("mergeEditor.conflict.unhandledFocused.border", "#ffa600", ( localize(
|
|
39
|
+
}, ( localize(9473, "The border color of unhandled unfocused conflicts.")));
|
|
40
|
+
registerColor("mergeEditor.conflict.unhandledFocused.border", "#ffa600", ( localize(9474, "The border color of unhandled focused conflicts.")));
|
|
41
41
|
registerColor(
|
|
42
42
|
"mergeEditor.conflict.handledUnfocused.border",
|
|
43
43
|
"#86868649",
|
|
44
|
-
( localize(
|
|
44
|
+
( localize(9475, "The border color of handled unfocused conflicts."))
|
|
45
45
|
);
|
|
46
|
-
registerColor("mergeEditor.conflict.handledFocused.border", "#c1c1c1cc", ( localize(
|
|
46
|
+
registerColor("mergeEditor.conflict.handledFocused.border", "#c1c1c1cc", ( localize(9476, "The border color of handled focused conflicts.")));
|
|
47
47
|
const handledConflictMinimapOverViewRulerColor = registerColor(
|
|
48
48
|
"mergeEditor.conflict.handled.minimapOverViewRuler",
|
|
49
49
|
"#adaca8ee",
|
|
50
|
-
( localize(
|
|
50
|
+
( localize(9477, "The foreground color for changes in input 1."))
|
|
51
51
|
);
|
|
52
52
|
const unhandledConflictMinimapOverViewRulerColor = registerColor(
|
|
53
53
|
"mergeEditor.conflict.unhandled.minimapOverViewRuler",
|
|
54
54
|
"#fcba03FF",
|
|
55
|
-
( localize(
|
|
55
|
+
( localize(9478, "The foreground color for changes in input 1."))
|
|
56
56
|
);
|
|
57
|
-
registerColor("mergeEditor.conflictingLines.background", "#ffea0047", ( localize(
|
|
57
|
+
registerColor("mergeEditor.conflictingLines.background", "#ffea0047", ( localize(9479, "The background of the \"Conflicting Lines\" text.")));
|
|
58
58
|
const contentTransparency = 0.4;
|
|
59
|
-
registerColor("mergeEditor.conflict.input1.background", ( transparent(mergeCurrentHeaderBackground, contentTransparency)), ( localize(
|
|
60
|
-
registerColor("mergeEditor.conflict.input2.background", ( transparent(mergeIncomingHeaderBackground, contentTransparency)), ( localize(
|
|
59
|
+
registerColor("mergeEditor.conflict.input1.background", ( transparent(mergeCurrentHeaderBackground, contentTransparency)), ( localize(9480, "The background color of decorations in input 1.")));
|
|
60
|
+
registerColor("mergeEditor.conflict.input2.background", ( transparent(mergeIncomingHeaderBackground, contentTransparency)), ( localize(9481, "The background color of decorations in input 2.")));
|
|
61
61
|
|
|
62
62
|
export { handledConflictMinimapOverViewRulerColor, unhandledConflictMinimapOverViewRulerColor };
|
|
@@ -92,14 +92,14 @@ class ActionsSource {
|
|
|
92
92
|
const result = [];
|
|
93
93
|
if (state.kind === ModifiedBaseRangeStateKind.unrecognized) {
|
|
94
94
|
result.push({
|
|
95
|
-
text: ( localize(
|
|
96
|
-
tooltip: ( localize(
|
|
95
|
+
text: ( localize(9482, "Manual Resolution")),
|
|
96
|
+
tooltip: ( localize(9483, "This conflict has been resolved manually."))
|
|
97
97
|
});
|
|
98
98
|
} else if (state.kind === ModifiedBaseRangeStateKind.base) {
|
|
99
99
|
result.push({
|
|
100
|
-
text: ( localize(
|
|
100
|
+
text: ( localize(9484, "No Changes Accepted")),
|
|
101
101
|
tooltip: ( localize(
|
|
102
|
-
|
|
102
|
+
9485,
|
|
103
103
|
"The current resolution of this conflict equals the common ancestor of both the right and left changes."
|
|
104
104
|
))
|
|
105
105
|
});
|
|
@@ -120,33 +120,33 @@ class ActionsSource {
|
|
|
120
120
|
}
|
|
121
121
|
const stateToggles = [];
|
|
122
122
|
if (state.includesInput1) {
|
|
123
|
-
stateToggles.push(command(( localize(
|
|
123
|
+
stateToggles.push(command(( localize(9486, "Remove {0}", model.input1.title)), async () => {
|
|
124
124
|
transaction(tx => {
|
|
125
125
|
model.setState(modifiedBaseRange, state.withInputValue(1, false), true, tx);
|
|
126
126
|
model.telemetry.reportRemoveInvoked(1, state.includesInput(2));
|
|
127
127
|
});
|
|
128
|
-
}, ( localize(
|
|
128
|
+
}, ( localize(9487, "Remove {0} from the result document.", model.input1.title))));
|
|
129
129
|
}
|
|
130
130
|
if (state.includesInput2) {
|
|
131
|
-
stateToggles.push(command(( localize(
|
|
131
|
+
stateToggles.push(command(( localize(9486, "Remove {0}", model.input2.title)), async () => {
|
|
132
132
|
transaction(tx => {
|
|
133
133
|
model.setState(modifiedBaseRange, state.withInputValue(2, false), true, tx);
|
|
134
134
|
model.telemetry.reportRemoveInvoked(2, state.includesInput(1));
|
|
135
135
|
});
|
|
136
|
-
}, ( localize(
|
|
136
|
+
}, ( localize(9487, "Remove {0} from the result document.", model.input2.title))));
|
|
137
137
|
}
|
|
138
138
|
if (state.kind === ModifiedBaseRangeStateKind.both && state.firstInput === 2) {
|
|
139
139
|
stateToggles.reverse();
|
|
140
140
|
}
|
|
141
141
|
result.push(...stateToggles);
|
|
142
142
|
if (state.kind === ModifiedBaseRangeStateKind.unrecognized) {
|
|
143
|
-
result.push(command(( localize(
|
|
143
|
+
result.push(command(( localize(9488, "Reset to base")), async () => {
|
|
144
144
|
transaction(tx => {
|
|
145
145
|
model.setState(modifiedBaseRange, ModifiedBaseRangeState.base, true, tx);
|
|
146
146
|
model.telemetry.reportResetToBaseInvoked();
|
|
147
147
|
});
|
|
148
148
|
}, ( localize(
|
|
149
|
-
|
|
149
|
+
9489,
|
|
150
150
|
"Reset this conflict to the common ancestor of both the right and left changes."
|
|
151
151
|
))));
|
|
152
152
|
}
|
|
@@ -178,7 +178,7 @@ class ActionsSource {
|
|
|
178
178
|
const otherInputNumber = inputNumber === 1 ? 2 : 1;
|
|
179
179
|
if (state.kind !== ModifiedBaseRangeStateKind.unrecognized && !state.isInputIncluded(inputNumber)) {
|
|
180
180
|
if (!state.isInputIncluded(otherInputNumber) || !this.viewModel.shouldUseAppendInsteadOfAccept.read(reader)) {
|
|
181
|
-
result.push(command(( localize(
|
|
181
|
+
result.push(command(( localize(9490, "Accept {0}", inputData.title)), async () => {
|
|
182
182
|
transaction(tx => {
|
|
183
183
|
model.setState(
|
|
184
184
|
modifiedBaseRange,
|
|
@@ -188,9 +188,9 @@ class ActionsSource {
|
|
|
188
188
|
);
|
|
189
189
|
model.telemetry.reportAcceptInvoked(inputNumber, state.includesInput(otherInputNumber));
|
|
190
190
|
});
|
|
191
|
-
}, ( localize(
|
|
191
|
+
}, ( localize(9491, "Accept {0} in the result document.", inputData.title))));
|
|
192
192
|
if (modifiedBaseRange.canBeCombined) {
|
|
193
|
-
const commandName = modifiedBaseRange.isOrderRelevant ? ( localize(
|
|
193
|
+
const commandName = modifiedBaseRange.isOrderRelevant ? ( localize(9492, "Accept Combination ({0} First)", inputData.title)) : ( localize(9493, "Accept Combination"));
|
|
194
194
|
result.push(command(commandName, async () => {
|
|
195
195
|
transaction(tx => {
|
|
196
196
|
model.setState(
|
|
@@ -202,12 +202,12 @@ class ActionsSource {
|
|
|
202
202
|
model.telemetry.reportSmartCombinationInvoked(state.includesInput(otherInputNumber));
|
|
203
203
|
});
|
|
204
204
|
}, ( localize(
|
|
205
|
-
|
|
205
|
+
9494,
|
|
206
206
|
"Accept an automatic combination of both sides in the result document."
|
|
207
207
|
))));
|
|
208
208
|
}
|
|
209
209
|
} else {
|
|
210
|
-
result.push(command(( localize(
|
|
210
|
+
result.push(command(( localize(9495, "Append {0}", inputData.title)), async () => {
|
|
211
211
|
transaction(tx => {
|
|
212
212
|
model.setState(
|
|
213
213
|
modifiedBaseRange,
|
|
@@ -217,9 +217,9 @@ class ActionsSource {
|
|
|
217
217
|
);
|
|
218
218
|
model.telemetry.reportAcceptInvoked(inputNumber, state.includesInput(otherInputNumber));
|
|
219
219
|
});
|
|
220
|
-
}, ( localize(
|
|
220
|
+
}, ( localize(9496, "Append {0} to the result document.", inputData.title))));
|
|
221
221
|
if (modifiedBaseRange.canBeCombined) {
|
|
222
|
-
result.push(command(( localize(
|
|
222
|
+
result.push(command(( localize(9497, "Accept Combination", inputData.title)), async () => {
|
|
223
223
|
transaction(tx => {
|
|
224
224
|
model.setState(
|
|
225
225
|
modifiedBaseRange,
|
|
@@ -230,17 +230,17 @@ class ActionsSource {
|
|
|
230
230
|
model.telemetry.reportSmartCombinationInvoked(state.includesInput(otherInputNumber));
|
|
231
231
|
});
|
|
232
232
|
}, ( localize(
|
|
233
|
-
|
|
233
|
+
9494,
|
|
234
234
|
"Accept an automatic combination of both sides in the result document."
|
|
235
235
|
))));
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
if (!model.isInputHandled(modifiedBaseRange, inputNumber).read(reader)) {
|
|
239
|
-
result.push(command(( localize(
|
|
239
|
+
result.push(command(( localize(9498, "Ignore")), async () => {
|
|
240
240
|
transaction(tx => {
|
|
241
241
|
model.setInputHandled(modifiedBaseRange, inputNumber, true, tx);
|
|
242
242
|
});
|
|
243
|
-
}, ( localize(
|
|
243
|
+
}, ( localize(9499, "Don't take this side of the conflict."))));
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
return result;
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js
CHANGED
|
@@ -122,16 +122,16 @@ let BaseCodeEditorView = class BaseCodeEditorView extends CodeEditorView {
|
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
124
|
this.editor.setModel(vm.model.base);
|
|
125
|
-
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(
|
|
125
|
+
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(9500, "Base"))));
|
|
126
126
|
const baseShowDiffAgainst = vm.baseShowDiffAgainst.read(reader);
|
|
127
127
|
let node = undefined;
|
|
128
128
|
if (baseShowDiffAgainst) {
|
|
129
129
|
const label = ( localize(
|
|
130
|
-
|
|
130
|
+
9501,
|
|
131
131
|
"Comparing with {0}",
|
|
132
132
|
baseShowDiffAgainst === 1 ? vm.model.input1.title : vm.model.input2.title
|
|
133
133
|
));
|
|
134
|
-
const tooltip = ( localize(
|
|
134
|
+
const tooltip = ( localize(9502, "Differences are highlighted with a background color."));
|
|
135
135
|
node = h("span", {
|
|
136
136
|
title: tooltip
|
|
137
137
|
}, [label]).root;
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js
CHANGED
|
@@ -178,7 +178,7 @@ let InputCodeEditorView = class InputCodeEditorView extends CodeEditorView {
|
|
|
178
178
|
this.editor.setModel(
|
|
179
179
|
this.inputNumber === 1 ? vm.model.input1.textModel : vm.model.input2.textModel
|
|
180
180
|
);
|
|
181
|
-
const title = this.inputNumber === 1 ? vm.model.input1.title || ( localize(
|
|
181
|
+
const title = this.inputNumber === 1 ? vm.model.input1.title || ( localize(9503, "Input 1")) : vm.model.input2.title || ( localize(9504, "Input 2"));
|
|
182
182
|
const description = this.inputNumber === 1 ? vm.model.input1.description : vm.model.input2.description;
|
|
183
183
|
const detail = this.inputNumber === 1 ? vm.model.input1.detail : vm.model.input2.detail;
|
|
184
184
|
reset(this.htmlElements.title, ...renderLabelWithIcons(title));
|
|
@@ -255,16 +255,16 @@ class ModifiedBaseRangeGutterItemModel {
|
|
|
255
255
|
}
|
|
256
256
|
const both = state.includesInput1 && state.includesInput2;
|
|
257
257
|
return [
|
|
258
|
-
this.baseRange.input1Diffs.length > 0 ? action("mergeEditor.acceptInput1", ( localize(
|
|
259
|
-
this.baseRange.input2Diffs.length > 0 ? action("mergeEditor.acceptInput2", ( localize(
|
|
260
|
-
this.baseRange.isConflicting ? setFields(action("mergeEditor.acceptBoth", ( localize(
|
|
258
|
+
this.baseRange.input1Diffs.length > 0 ? action("mergeEditor.acceptInput1", ( localize(9505, "Accept {0}", this.model.input1.title)), state.toggle(1), state.includesInput1) : undefined,
|
|
259
|
+
this.baseRange.input2Diffs.length > 0 ? action("mergeEditor.acceptInput2", ( localize(9505, "Accept {0}", this.model.input2.title)), state.toggle(2), state.includesInput2) : undefined,
|
|
260
|
+
this.baseRange.isConflicting ? setFields(action("mergeEditor.acceptBoth", ( localize(9506, "Accept Both")), state.withInputValue(1, !both).withInputValue(2, !both), both), {
|
|
261
261
|
enabled: this.baseRange.canBeCombined
|
|
262
262
|
}) : undefined,
|
|
263
263
|
( new Separator()),
|
|
264
|
-
this.baseRange.isConflicting ? setFields(action("mergeEditor.swap", ( localize(
|
|
264
|
+
this.baseRange.isConflicting ? setFields(action("mergeEditor.swap", ( localize(9507, "Swap")), state.swap(), false), {
|
|
265
265
|
enabled: !state.kind && (!both || this.baseRange.isOrderRelevant)
|
|
266
266
|
}) : undefined,
|
|
267
|
-
setFields(( new Action("mergeEditor.markAsHandled", ( localize(
|
|
267
|
+
setFields(( new Action("mergeEditor.markAsHandled", ( localize(9508, "Mark as Handled")), undefined, true, () => {
|
|
268
268
|
transaction(tx => {
|
|
269
269
|
this.model.setHandled(this.baseRange, !handled, tx);
|
|
270
270
|
});
|
|
@@ -311,22 +311,22 @@ class MergeConflictGutterItemView extends Disposable {
|
|
|
311
311
|
[InputState.excluded]: {
|
|
312
312
|
icon: undefined,
|
|
313
313
|
checked: false,
|
|
314
|
-
title: ( localize(
|
|
314
|
+
title: ( localize(9509, "Accept"))
|
|
315
315
|
},
|
|
316
316
|
[InputState.unrecognized]: {
|
|
317
317
|
icon: Codicon.circleFilled,
|
|
318
318
|
checked: false,
|
|
319
|
-
title: ( localize(
|
|
319
|
+
title: ( localize(9510, "Accept (result is dirty)"))
|
|
320
320
|
},
|
|
321
321
|
[InputState.first]: {
|
|
322
322
|
icon: Codicon.check,
|
|
323
323
|
checked: true,
|
|
324
|
-
title: ( localize(
|
|
324
|
+
title: ( localize(9511, "Undo accept"))
|
|
325
325
|
},
|
|
326
326
|
[InputState.second]: {
|
|
327
327
|
icon: Codicon.checkAll,
|
|
328
328
|
checked: true,
|
|
329
|
-
title: ( localize(
|
|
329
|
+
title: ( localize(9512, "Undo accept (currently second)"))
|
|
330
330
|
}
|
|
331
331
|
};
|
|
332
332
|
const state = iconMap[value];
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js
CHANGED
|
@@ -139,7 +139,7 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
this.editor.setModel(vm.model.resultTextModel);
|
|
142
|
-
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(
|
|
142
|
+
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(9513, "Result"))));
|
|
143
143
|
reset(
|
|
144
144
|
this.htmlElements.description,
|
|
145
145
|
...renderLabelWithIcons(this._labelService.getUriLabel(vm.model.resultTextModel.uri, {
|
|
@@ -158,7 +158,7 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
158
158
|
return;
|
|
159
159
|
}
|
|
160
160
|
const count = model.unhandledConflictsCount.read(reader);
|
|
161
|
-
const text = count === 1 ? ( localize(
|
|
161
|
+
const text = count === 1 ? ( localize(9514, "{0} Conflict Remaining", count)) : ( localize(9515, "{0} Conflicts Remaining ", count));
|
|
162
162
|
remainingConflictsActionBar.clear();
|
|
163
163
|
remainingConflictsActionBar.push({
|
|
164
164
|
class: undefined,
|
|
@@ -169,7 +169,7 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
169
169
|
vm.model.telemetry.reportConflictCounterClicked();
|
|
170
170
|
vm.goToNextModifiedBaseRange(m => !model.isHandled(m).read(undefined));
|
|
171
171
|
},
|
|
172
|
-
tooltip: count > 0 ? ( localize(
|
|
172
|
+
tooltip: count > 0 ? ( localize(9516, "Go to next conflict")) : ( localize(9517, "All conflicts handled, the merge can be completed now."))
|
|
173
173
|
});
|
|
174
174
|
}));
|
|
175
175
|
this._register(applyObservableDecorations(this.editor, this.decorations));
|
|
@@ -149,7 +149,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
149
149
|
if (this.input) {
|
|
150
150
|
return this.input.getName();
|
|
151
151
|
}
|
|
152
|
-
return localize(
|
|
152
|
+
return localize(9518, "Text Merge Editor");
|
|
153
153
|
}
|
|
154
154
|
createEditorControl(parent, initialOptions) {
|
|
155
155
|
this.rootHtmlElement = parent;
|
|
@@ -238,7 +238,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
|
|
|
238
238
|
toggleActiveConflict(inputNumber) {
|
|
239
239
|
const activeModifiedBaseRange = this.activeModifiedBaseRange.get();
|
|
240
240
|
if (!activeModifiedBaseRange) {
|
|
241
|
-
this.notificationService.error(( localize(
|
|
241
|
+
this.notificationService.error(( localize(9519, "There is currently no conflict focused that can be toggled.")));
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
244
|
transaction(tx => {
|
|
@@ -26,11 +26,11 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
26
26
|
this.keyboardLayoutService = keyboardLayoutService;
|
|
27
27
|
this.statusbarService = statusbarService;
|
|
28
28
|
this.pickerElement = this._register(( new MutableDisposable()));
|
|
29
|
-
const name = ( localize(
|
|
29
|
+
const name = ( localize(10193, "Keyboard Layout"));
|
|
30
30
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
31
31
|
if (layout) {
|
|
32
32
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
33
|
-
const text = ( localize(
|
|
33
|
+
const text = ( localize(10194, "Layout: {0}", layoutInfo.label));
|
|
34
34
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
35
35
|
name,
|
|
36
36
|
text,
|
|
@@ -42,7 +42,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
42
42
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
43
43
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
44
44
|
if (this.pickerElement.value) {
|
|
45
|
-
const text = ( localize(
|
|
45
|
+
const text = ( localize(10194, "Layout: {0}", layoutInfo.label));
|
|
46
46
|
this.pickerElement.value.update({
|
|
47
47
|
name,
|
|
48
48
|
text,
|
|
@@ -50,7 +50,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
50
50
|
command: KEYBOARD_LAYOUT_OPEN_PICKER
|
|
51
51
|
});
|
|
52
52
|
} else {
|
|
53
|
-
const text = ( localize(
|
|
53
|
+
const text = ( localize(10194, "Layout: {0}", layoutInfo.label));
|
|
54
54
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
55
55
|
name,
|
|
56
56
|
text,
|
|
@@ -68,17 +68,17 @@ registerWorkbenchContribution2(
|
|
|
68
68
|
WorkbenchPhase.BlockStartup
|
|
69
69
|
);
|
|
70
70
|
const DEFAULT_CONTENT = [`// ${( localize(
|
|
71
|
-
|
|
71
|
+
10195,
|
|
72
72
|
"Defines the keyboard layout used in VS Code in the browser environment."
|
|
73
73
|
))}`, `// ${( localize(
|
|
74
|
-
|
|
74
|
+
10196,
|
|
75
75
|
"Open VS Code and run \"Developer: Inspect Key Mappings (JSON)\" from Command Palette."
|
|
76
76
|
))}`, ``, `// Once you have the keyboard layout info, please paste it below.`, "\n"].join("\n");
|
|
77
77
|
registerAction2(class extends Action2 {
|
|
78
78
|
constructor() {
|
|
79
79
|
super({
|
|
80
80
|
id: KEYBOARD_LAYOUT_OPEN_PICKER,
|
|
81
|
-
title: ( localize2(
|
|
81
|
+
title: ( localize2(10197, "Change Keyboard Layout")),
|
|
82
82
|
f1: true
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -113,21 +113,21 @@ registerAction2(class extends Action2 {
|
|
|
113
113
|
const platform = isMacintosh ? "Mac" : isWindows ? "Win" : "Linux";
|
|
114
114
|
picks.unshift({
|
|
115
115
|
type: "separator",
|
|
116
|
-
label: ( localize(
|
|
116
|
+
label: ( localize(10198, "Keyboard Layouts ({0})", platform))
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
const configureKeyboardLayout = {
|
|
120
|
-
label: ( localize(
|
|
120
|
+
label: ( localize(10199, "Configure Keyboard Layout"))
|
|
121
121
|
};
|
|
122
122
|
picks.unshift(configureKeyboardLayout);
|
|
123
123
|
const autoDetectMode = {
|
|
124
|
-
label: ( localize(
|
|
124
|
+
label: ( localize(10200, "Auto Detect")),
|
|
125
125
|
description: isAutoDetect ? `Current: ${parseKeyboardLayoutDescription(currentLayout).label}` : undefined,
|
|
126
126
|
picked: isAutoDetect ? true : undefined
|
|
127
127
|
};
|
|
128
128
|
picks.unshift(autoDetectMode);
|
|
129
129
|
const pick = await quickInputService.pick(picks, {
|
|
130
|
-
placeHolder: ( localize(
|
|
130
|
+
placeHolder: ( localize(10201, "Select Keyboard Layout")),
|
|
131
131
|
matchOnDescription: true
|
|
132
132
|
});
|
|
133
133
|
if (!pick) {
|
|
@@ -153,7 +153,7 @@ registerAction2(class extends Action2 {
|
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
155
|
}, error => {
|
|
156
|
-
throw ( new Error(( localize(
|
|
156
|
+
throw ( new Error(( localize(10202, "Unable to create '{0}' ({1}).", (file.toString()), error))));
|
|
157
157
|
});
|
|
158
158
|
return Promise.resolve();
|
|
159
159
|
}
|
|
@@ -21,7 +21,7 @@ registerWorkbenchContribution2(
|
|
|
21
21
|
minimum: 1,
|
|
22
22
|
maximum: 20,
|
|
23
23
|
description: ( localize(
|
|
24
|
-
|
|
24
|
+
10753,
|
|
25
25
|
"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."
|
|
26
26
|
))
|
|
27
27
|
},
|
|
@@ -31,7 +31,7 @@ registerWorkbenchContribution2(
|
|
|
31
31
|
minimum: 0,
|
|
32
32
|
maximum: 2000,
|
|
33
33
|
description: ( localize(
|
|
34
|
-
|
|
34
|
+
10754,
|
|
35
35
|
"Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
|
|
36
36
|
))
|
|
37
37
|
}
|
|
@@ -122,8 +122,8 @@ let SyncScroll = class SyncScroll extends Disposable {
|
|
|
122
122
|
toggleStatusbarItem(active) {
|
|
123
123
|
if (active) {
|
|
124
124
|
if (!this.statusBarEntry.value) {
|
|
125
|
-
const text = ( localize(
|
|
126
|
-
const tooltip = ( localize(
|
|
125
|
+
const text = ( localize(10971, "Scrolling Locked"));
|
|
126
|
+
const tooltip = ( localize(10972, "Lock Scrolling Enabled"));
|
|
127
127
|
this.statusBarEntry.value = this.statusbarService.addEntry({
|
|
128
128
|
name: text,
|
|
129
129
|
text,
|
|
@@ -148,13 +148,13 @@ let SyncScroll = class SyncScroll extends Disposable {
|
|
|
148
148
|
super({
|
|
149
149
|
id: "workbench.action.toggleLockedScrolling",
|
|
150
150
|
title: {
|
|
151
|
-
...( localize2(
|
|
152
|
-
mnemonicTitle: ( localize(
|
|
151
|
+
...( localize2(10973, "Toggle Locked Scrolling Across Editors")),
|
|
152
|
+
mnemonicTitle: ( localize(10974, "Locked Scrolling"))
|
|
153
153
|
},
|
|
154
154
|
category: Categories.View,
|
|
155
155
|
f1: true,
|
|
156
156
|
metadata: {
|
|
157
|
-
description: ( localize(
|
|
157
|
+
description: ( localize(10975, "Synchronize Scrolling Editors"))
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
160
|
}
|
|
@@ -167,8 +167,8 @@ let SyncScroll = class SyncScroll extends Disposable {
|
|
|
167
167
|
super({
|
|
168
168
|
id: "workbench.action.holdLockedScrolling",
|
|
169
169
|
title: {
|
|
170
|
-
...( localize2(
|
|
171
|
-
mnemonicTitle: ( localize(
|
|
170
|
+
...( localize2(10976, "Hold Locked Scrolling Across Editors")),
|
|
171
|
+
mnemonicTitle: ( localize(10977, "Locked Scrolling"))
|
|
172
172
|
},
|
|
173
173
|
category: Categories.View
|
|
174
174
|
});
|
|
@@ -22,11 +22,11 @@ import { TypeHierarchyTreePeekWidget } from './typeHierarchyPeek.js';
|
|
|
22
22
|
import { TypeHierarchyDirection, TypeHierarchyProviderRegistry, TypeHierarchyModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
|
|
23
23
|
|
|
24
24
|
var TypeHierarchyController_1;
|
|
25
|
-
const _ctxHasTypeHierarchyProvider = ( new RawContextKey("editorHasTypeHierarchyProvider", false, ( localize(
|
|
26
|
-
const _ctxTypeHierarchyVisible = ( new RawContextKey("typeHierarchyVisible", false, ( localize(
|
|
25
|
+
const _ctxHasTypeHierarchyProvider = ( new RawContextKey("editorHasTypeHierarchyProvider", false, ( localize(13199, "Whether a type hierarchy provider is available"))));
|
|
26
|
+
const _ctxTypeHierarchyVisible = ( new RawContextKey("typeHierarchyVisible", false, ( localize(13200, "Whether type hierarchy peek is currently showing"))));
|
|
27
27
|
const _ctxTypeHierarchyDirection = ( new RawContextKey("typeHierarchyDirection", undefined, {
|
|
28
28
|
type: "string",
|
|
29
|
-
description: ( localize(
|
|
29
|
+
description: ( localize(13201, "whether type hierarchy shows super types or subtypes"))
|
|
30
30
|
}));
|
|
31
31
|
function sanitizedDirection(candidate) {
|
|
32
32
|
return candidate === TypeHierarchyDirection.Subtypes || candidate === TypeHierarchyDirection.Supertypes ? candidate : TypeHierarchyDirection.Subtypes;
|
|
@@ -121,14 +121,14 @@ let TypeHierarchyController = class TypeHierarchyController {
|
|
|
121
121
|
this._sessionDisposables.add(model);
|
|
122
122
|
this._widget.showModel(model);
|
|
123
123
|
} else {
|
|
124
|
-
this._widget.showMessage(( localize(
|
|
124
|
+
this._widget.showMessage(( localize(13202, "No results")));
|
|
125
125
|
}
|
|
126
126
|
}).catch(err => {
|
|
127
127
|
if (isCancellationError(err)) {
|
|
128
128
|
this.endTypeHierarchy();
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
this._widget.showMessage(( localize(
|
|
131
|
+
this._widget.showMessage(( localize(13203, "Failed to show type hierarchy")));
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
async startTypeHierarchyFromTypeHierarchy() {
|
|
@@ -179,7 +179,7 @@ registerAction2(class PeekTypeHierarchyAction extends EditorAction2 {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super({
|
|
181
181
|
id: "editor.showTypeHierarchy",
|
|
182
|
-
title: ( localize2(
|
|
182
|
+
title: ( localize2(13204, "Peek Type Hierarchy")),
|
|
183
183
|
menu: {
|
|
184
184
|
id: MenuId.EditorContextPeek,
|
|
185
185
|
group: "navigation",
|
|
@@ -198,7 +198,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
198
198
|
constructor() {
|
|
199
199
|
super({
|
|
200
200
|
id: "editor.showSupertypes",
|
|
201
|
-
title: ( localize2(
|
|
201
|
+
title: ( localize2(13205, "Show Supertypes")),
|
|
202
202
|
icon: Codicon.typeHierarchySuper,
|
|
203
203
|
precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Subtypes)))),
|
|
204
204
|
keybinding: {
|
|
@@ -220,7 +220,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
220
220
|
constructor() {
|
|
221
221
|
super({
|
|
222
222
|
id: "editor.showSubtypes",
|
|
223
|
-
title: ( localize2(
|
|
223
|
+
title: ( localize2(13206, "Show Subtypes")),
|
|
224
224
|
icon: Codicon.typeHierarchySub,
|
|
225
225
|
precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Supertypes)))),
|
|
226
226
|
keybinding: {
|
|
@@ -242,7 +242,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
242
242
|
constructor() {
|
|
243
243
|
super({
|
|
244
244
|
id: "editor.refocusTypeHierarchy",
|
|
245
|
-
title: ( localize2(
|
|
245
|
+
title: ( localize2(13207, "Refocus Type Hierarchy")),
|
|
246
246
|
precondition: _ctxTypeHierarchyVisible,
|
|
247
247
|
keybinding: {
|
|
248
248
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -258,7 +258,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
258
258
|
constructor() {
|
|
259
259
|
super({
|
|
260
260
|
id: "editor.closeTypeHierarchy",
|
|
261
|
-
title: ( localize(
|
|
261
|
+
title: ( localize(13208, "Close")),
|
|
262
262
|
icon: Codicon.close,
|
|
263
263
|
precondition: _ctxTypeHierarchyVisible,
|
|
264
264
|
keybinding: {
|
|
@@ -326,12 +326,12 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
326
326
|
this._previewDisposable.add(toDisposable(() => decorationsCollection.clear()));
|
|
327
327
|
}
|
|
328
328
|
this._previewDisposable.add(value);
|
|
329
|
-
const title = this._direction === TypeHierarchyDirection.Supertypes ? ( localize(
|
|
329
|
+
const title = this._direction === TypeHierarchyDirection.Supertypes ? ( localize(13209, "Supertypes of '{0}'", element.model.root.name)) : ( localize(13210, "Subtypes of '{0}'", element.model.root.name));
|
|
330
330
|
this.setTitle(title);
|
|
331
331
|
}
|
|
332
332
|
showLoading() {
|
|
333
333
|
this._parent.dataset["state"] = State.Loading;
|
|
334
|
-
this.setTitle(( localize(
|
|
334
|
+
this.setTitle(( localize(13211, "Loading...")));
|
|
335
335
|
this._show();
|
|
336
336
|
}
|
|
337
337
|
showMessage(message) {
|
|
@@ -349,7 +349,7 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
349
349
|
const root = this._tree.getNode(model).children[0];
|
|
350
350
|
await this._tree.expand(root.element);
|
|
351
351
|
if (root.children.length === 0) {
|
|
352
|
-
this.showMessage(this._direction === TypeHierarchyDirection.Supertypes ? ( localize(
|
|
352
|
+
this.showMessage(this._direction === TypeHierarchyDirection.Supertypes ? ( localize(13212, "No supertypes of '{0}'", model.root.name)) : ( localize(13213, "No subtypes of '{0}'", model.root.name)));
|
|
353
353
|
} else {
|
|
354
354
|
this._parent.dataset["state"] = State.Data;
|
|
355
355
|
if (!viewState || this._tree.getFocus().length === 0) {
|
|
@@ -122,13 +122,13 @@ class AccessibilityProvider {
|
|
|
122
122
|
this.getDirection = getDirection;
|
|
123
123
|
}
|
|
124
124
|
getWidgetAriaLabel() {
|
|
125
|
-
return localize(
|
|
125
|
+
return localize(13214, "Type Hierarchy");
|
|
126
126
|
}
|
|
127
127
|
getAriaLabel(element) {
|
|
128
128
|
if (this.getDirection() === TypeHierarchyDirection.Supertypes) {
|
|
129
|
-
return localize(
|
|
129
|
+
return localize(13215, "supertypes of {0}", element.item.name);
|
|
130
130
|
} else {
|
|
131
|
-
return localize(
|
|
131
|
+
return localize(13216, "subtypes of {0}", element.item.name);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -202,7 +202,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
202
202
|
this._hasFindResult.fire(didFind);
|
|
203
203
|
}));
|
|
204
204
|
this._register(this.on("fatal-error", e => {
|
|
205
|
-
notificationService.error(( localize(
|
|
205
|
+
notificationService.error(( localize(13521, "Error loading webview: {0}", e.message)));
|
|
206
206
|
this._onFatalError.fire({
|
|
207
207
|
message: e.message
|
|
208
208
|
});
|
|
@@ -18,7 +18,7 @@ class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
|
18
18
|
this.ID = "editor.action.webvieweditor.showFind";
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
|
-
this.LABEL = ( localize(
|
|
21
|
+
this.LABEL = ( localize(13522, "Show find"));
|
|
22
22
|
}
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
@@ -43,7 +43,7 @@ class HideWebViewEditorFindCommand extends Action2 {
|
|
|
43
43
|
this.ID = "editor.action.webvieweditor.hideFind";
|
|
44
44
|
}
|
|
45
45
|
static {
|
|
46
|
-
this.LABEL = ( localize(
|
|
46
|
+
this.LABEL = ( localize(13523, "Stop find"));
|
|
47
47
|
}
|
|
48
48
|
constructor() {
|
|
49
49
|
super({
|
|
@@ -68,7 +68,7 @@ class WebViewEditorFindNextCommand extends Action2 {
|
|
|
68
68
|
this.ID = "editor.action.webvieweditor.findNext";
|
|
69
69
|
}
|
|
70
70
|
static {
|
|
71
|
-
this.LABEL = ( localize(
|
|
71
|
+
this.LABEL = ( localize(13524, "Find next"));
|
|
72
72
|
}
|
|
73
73
|
constructor() {
|
|
74
74
|
super({
|
|
@@ -93,7 +93,7 @@ class WebViewEditorFindPreviousCommand extends Action2 {
|
|
|
93
93
|
this.ID = "editor.action.webvieweditor.findPrevious";
|
|
94
94
|
}
|
|
95
95
|
static {
|
|
96
|
-
this.LABEL = ( localize(
|
|
96
|
+
this.LABEL = ( localize(13525, "Find previous"));
|
|
97
97
|
}
|
|
98
98
|
constructor() {
|
|
99
99
|
super({
|
|
@@ -118,7 +118,7 @@ class ReloadWebviewAction extends Action2 {
|
|
|
118
118
|
this.ID = "workbench.action.webview.reloadWebviewAction";
|
|
119
119
|
}
|
|
120
120
|
static {
|
|
121
|
-
this.LABEL = ( localize2(
|
|
121
|
+
this.LABEL = ( localize2(13526, "Reload Webviews"));
|
|
122
122
|
}
|
|
123
123
|
constructor() {
|
|
124
124
|
super({
|
|
@@ -19,7 +19,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ins
|
|
|
19
19
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
20
20
|
|
|
21
21
|
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(
|
|
22
|
-
EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(
|
|
22
|
+
EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(13528, "webview editor"))),
|
|
23
23
|
[( new SyncDescriptor(WebviewInput))]
|
|
24
24
|
);
|
|
25
25
|
let WebviewPanelContribution = class WebviewPanelContribution extends Disposable {
|
|
@@ -560,8 +560,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
560
560
|
if (storedChoices[globForResource]?.find(editorID => editorID === currentEditor.editorId)) {
|
|
561
561
|
return;
|
|
562
562
|
}
|
|
563
|
-
const handle = this.notificationService.prompt(Severity.Warning, ( localize(
|
|
564
|
-
label: ( localize(
|
|
563
|
+
const handle = this.notificationService.prompt(Severity.Warning, ( localize(14271, "There are multiple default editors available for the resource.")), [{
|
|
564
|
+
label: ( localize(14272, "Configure Default")),
|
|
565
565
|
run: async () => {
|
|
566
566
|
const picked = await this.doPickEditor(untypedInput, true);
|
|
567
567
|
if (!picked) {
|
|
@@ -579,7 +579,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
579
579
|
}]);
|
|
580
580
|
}
|
|
581
581
|
}, {
|
|
582
|
-
label: ( localize(
|
|
582
|
+
label: ( localize(14273, "Keep {0}", editorName)),
|
|
583
583
|
run: writeCurrentEditorsToStorage
|
|
584
584
|
}]);
|
|
585
585
|
const onCloseListener = handle.onDidClose(() => {
|
|
@@ -602,9 +602,9 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
602
602
|
}
|
|
603
603
|
});
|
|
604
604
|
const quickPickEntries = [];
|
|
605
|
-
const currentlyActiveLabel = ( localize(
|
|
606
|
-
const currentDefaultLabel = ( localize(
|
|
607
|
-
const currentDefaultAndActiveLabel = ( localize(
|
|
605
|
+
const currentlyActiveLabel = ( localize(14274, "Active"));
|
|
606
|
+
const currentDefaultLabel = ( localize(14275, "Default"));
|
|
607
|
+
const currentDefaultAndActiveLabel = ( localize(14276, "Active and Default"));
|
|
608
608
|
let defaultViewType = defaultSetting;
|
|
609
609
|
if (!defaultViewType && registeredEditors.length > 2 && registeredEditors[1]?.editorInfo.priority !== RegisteredEditorPriority.option) {
|
|
610
610
|
defaultViewType = registeredEditors[1]?.editorInfo.id;
|
|
@@ -631,7 +631,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
631
631
|
quickPickEntries.push(separator);
|
|
632
632
|
const configureDefaultEntry = {
|
|
633
633
|
id: EditorResolverService_1.configureDefaultID,
|
|
634
|
-
label: ( localize(
|
|
634
|
+
label: ( localize(14277, "Configure default editor for '{0}'...", `*${extname(resource)}`))
|
|
635
635
|
};
|
|
636
636
|
quickPickEntries.push(configureDefaultEntry);
|
|
637
637
|
}
|
|
@@ -651,7 +651,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
651
651
|
const editorPicker = disposables.add(this.quickInputService.createQuickPick({
|
|
652
652
|
useSeparators: true
|
|
653
653
|
}));
|
|
654
|
-
const placeHolderMessage = showDefaultPicker ? ( localize(
|
|
654
|
+
const placeHolderMessage = showDefaultPicker ? ( localize(14278, "Select new default editor for '{0}'", `*${extname(resource)}`)) : ( localize(14279, "Select editor for '{0}'", basename(resource)));
|
|
655
655
|
editorPicker.placeholder = placeHolderMessage;
|
|
656
656
|
editorPicker.canAcceptInBackground = true;
|
|
657
657
|
editorPicker.items = editorPicks;
|
|
@@ -101,33 +101,33 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
101
101
|
return matcher;
|
|
102
102
|
})));
|
|
103
103
|
this.editorHelper = this.instantiationService.createInstance(EditorHelper);
|
|
104
|
-
this.canNavigateBackContextKey = ( new RawContextKey("canNavigateBack", false, ( localize(
|
|
105
|
-
this.canNavigateForwardContextKey = ( new RawContextKey("canNavigateForward", false, ( localize(
|
|
104
|
+
this.canNavigateBackContextKey = ( new RawContextKey("canNavigateBack", false, ( localize(14493, "Whether it is possible to navigate back in editor history")))).bindTo(this.contextKeyService);
|
|
105
|
+
this.canNavigateForwardContextKey = ( new RawContextKey("canNavigateForward", false, ( localize(14494, "Whether it is possible to navigate forward in editor history")))).bindTo(this.contextKeyService);
|
|
106
106
|
this.canNavigateBackInNavigationsContextKey = ( new RawContextKey("canNavigateBackInNavigationLocations", false, ( localize(
|
|
107
|
-
|
|
107
|
+
14495,
|
|
108
108
|
"Whether it is possible to navigate back in editor navigation locations history"
|
|
109
109
|
)))).bindTo(this.contextKeyService);
|
|
110
110
|
this.canNavigateForwardInNavigationsContextKey = ( new RawContextKey("canNavigateForwardInNavigationLocations", false, ( localize(
|
|
111
|
-
|
|
111
|
+
14496,
|
|
112
112
|
"Whether it is possible to navigate forward in editor navigation locations history"
|
|
113
113
|
)))).bindTo(this.contextKeyService);
|
|
114
114
|
this.canNavigateToLastNavigationLocationContextKey = ( new RawContextKey("canNavigateToLastNavigationLocation", false, ( localize(
|
|
115
|
-
|
|
115
|
+
14497,
|
|
116
116
|
"Whether it is possible to navigate to the last editor navigation location"
|
|
117
117
|
)))).bindTo(this.contextKeyService);
|
|
118
118
|
this.canNavigateBackInEditsContextKey = ( new RawContextKey("canNavigateBackInEditLocations", false, ( localize(
|
|
119
|
-
|
|
119
|
+
14498,
|
|
120
120
|
"Whether it is possible to navigate back in editor edit locations history"
|
|
121
121
|
)))).bindTo(this.contextKeyService);
|
|
122
122
|
this.canNavigateForwardInEditsContextKey = ( new RawContextKey("canNavigateForwardInEditLocations", false, ( localize(
|
|
123
|
-
|
|
123
|
+
14499,
|
|
124
124
|
"Whether it is possible to navigate forward in editor edit locations history"
|
|
125
125
|
)))).bindTo(this.contextKeyService);
|
|
126
126
|
this.canNavigateToLastEditLocationContextKey = ( new RawContextKey("canNavigateToLastEditLocation", false, ( localize(
|
|
127
|
-
|
|
127
|
+
14500,
|
|
128
128
|
"Whether it is possible to navigate to the last editor edit location"
|
|
129
129
|
)))).bindTo(this.contextKeyService);
|
|
130
|
-
this.canReopenClosedEditorContextKey = ( new RawContextKey("canReopenClosedEditor", false, ( localize(
|
|
130
|
+
this.canReopenClosedEditorContextKey = ( new RawContextKey("canReopenClosedEditor", false, ( localize(14501, "Whether it is possible to reopen the last closed editor")))).bindTo(this.contextKeyService);
|
|
131
131
|
this.registerListeners();
|
|
132
132
|
if (this.editorService.activeEditorPane) {
|
|
133
133
|
this.onDidActiveEditorChange();
|
|
@@ -170,20 +170,20 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
170
170
|
let title;
|
|
171
171
|
const source = options.source && typeof options.source !== "string" ? options.source.label : options.source;
|
|
172
172
|
if (progressTitle && progressMessage) {
|
|
173
|
-
text = ( localize(
|
|
174
|
-
title = source ? ( localize(
|
|
173
|
+
text = ( localize(14630, "{0}: {1}", progressTitle, progressMessage));
|
|
174
|
+
title = source ? ( localize(14631, "[{0}] {1}: {2}", source, progressTitle, progressMessage)) : text;
|
|
175
175
|
} else if (progressTitle) {
|
|
176
176
|
text = progressTitle;
|
|
177
|
-
title = source ? ( localize(
|
|
177
|
+
title = source ? ( localize(14632, "[{0}]: {1}", source, progressTitle)) : text;
|
|
178
178
|
} else if (progressMessage) {
|
|
179
179
|
text = progressMessage;
|
|
180
|
-
title = source ? ( localize(
|
|
180
|
+
title = source ? ( localize(14632, "[{0}]: {1}", source, progressMessage)) : text;
|
|
181
181
|
} else {
|
|
182
182
|
this.updateWindowProgress(idx + 1);
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
const statusEntryProperties = {
|
|
186
|
-
name: ( localize(
|
|
186
|
+
name: ( localize(14633, "Progress Message")),
|
|
187
187
|
text,
|
|
188
188
|
showProgress: options.type || true,
|
|
189
189
|
ariaLabel: text,
|
|
@@ -289,7 +289,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
289
289
|
constructor() {
|
|
290
290
|
super(
|
|
291
291
|
"progress.cancel",
|
|
292
|
-
typeof options.cancellable === "string" ? options.cancellable : ( localize(
|
|
292
|
+
typeof options.cancellable === "string" ? options.cancellable : ( localize(14634, "Cancel")),
|
|
293
293
|
undefined,
|
|
294
294
|
true
|
|
295
295
|
);
|
|
@@ -481,7 +481,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
481
481
|
const buttons = options.buttons || [];
|
|
482
482
|
if (!options.sticky) {
|
|
483
483
|
buttons.push(
|
|
484
|
-
options.cancellable ? (typeof options.cancellable === "boolean" ? ( localize(
|
|
484
|
+
options.cancellable ? (typeof options.cancellable === "boolean" ? ( localize(14634, "Cancel")) : options.cancellable) : ( localize(14635, "Dismiss"))
|
|
485
485
|
);
|
|
486
486
|
}
|
|
487
487
|
dialog = ( new Dialog(
|
|
@@ -458,7 +458,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
458
458
|
mergeViewWithContainerWhenSingleView: true
|
|
459
459
|
}])),
|
|
460
460
|
title: {
|
|
461
|
-
value: ( localize(
|
|
461
|
+
value: ( localize(15009, "User View Container")),
|
|
462
462
|
original: "User View Container"
|
|
463
463
|
},
|
|
464
464
|
icon: location === ViewContainerLocation.Sidebar ? defaultViewIcon : undefined,
|
|
@@ -765,7 +765,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
765
765
|
title: viewDescriptor.name,
|
|
766
766
|
metadata: {
|
|
767
767
|
description: ( localize2(
|
|
768
|
-
|
|
768
|
+
15010,
|
|
769
769
|
"Toggles the visibility of the {0} view if the view container it is located in is visible",
|
|
770
770
|
viewDescriptor.name.value
|
|
771
771
|
))
|
|
@@ -796,10 +796,10 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
796
796
|
super({
|
|
797
797
|
id: `${viewDescriptor.id}.removeView`,
|
|
798
798
|
viewPaneContainerId: viewContainerModel.viewContainer.id,
|
|
799
|
-
title: ( localize(
|
|
799
|
+
title: ( localize(15011, "Hide '{0}'", viewDescriptor.name.value)),
|
|
800
800
|
metadata: {
|
|
801
801
|
description: ( localize2(
|
|
802
|
-
|
|
802
|
+
15012,
|
|
803
803
|
"Hides the {0} view if it is visible and the view container it is located in is visible",
|
|
804
804
|
viewDescriptor.name.value
|
|
805
805
|
))
|
|
@@ -829,7 +829,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
829
829
|
constructor() {
|
|
830
830
|
super({
|
|
831
831
|
id: `${viewContainer.id}.resetViewContainerLocation`,
|
|
832
|
-
title: ( localize2(
|
|
832
|
+
title: ( localize2(15013, "Reset Location")),
|
|
833
833
|
menu: [{
|
|
834
834
|
id: MenuId.ViewContainerTitleContext,
|
|
835
835
|
group: "1_viewActions",
|