@codingame/monaco-vscode-view-common-service-override 8.0.1 → 8.0.3
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/editor/editor.contribution.js +159 -159
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
- 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/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- 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 +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.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/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 +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
|
@@ -24,22 +24,22 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
24
24
|
static { this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
25
25
|
{
|
|
26
26
|
id: 'workbench.input.interactive',
|
|
27
|
-
label: ( localize(
|
|
27
|
+
label: ( localize(9730, 'Interactive Window')),
|
|
28
28
|
priority: RegisteredEditorPriority.builtin
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
id: 'mainThreadWebview-markdown.preview',
|
|
32
|
-
label: ( localize(
|
|
32
|
+
label: ( localize(9731, "Markdown Preview")),
|
|
33
33
|
priority: RegisteredEditorPriority.builtin
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
id: 'mainThreadWebview-simpleBrowser.view',
|
|
37
|
-
label: ( localize(
|
|
37
|
+
label: ( localize(9732, "Simple Browser")),
|
|
38
38
|
priority: RegisteredEditorPriority.builtin
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
id: 'mainThreadWebview-browserPreview',
|
|
42
|
-
label: ( localize(
|
|
42
|
+
label: ( localize(9733, "Live Preview")),
|
|
43
43
|
priority: RegisteredEditorPriority.builtin
|
|
44
44
|
}
|
|
45
45
|
]; }
|
|
@@ -84,7 +84,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
84
84
|
'workbench.editor.autoLockGroups': {
|
|
85
85
|
type: 'object',
|
|
86
86
|
description: ( localize(
|
|
87
|
-
|
|
87
|
+
9734,
|
|
88
88
|
"If an editor matching one of the listed types is opened as the first in an editor group and more than one group is open, the group is automatically locked. Locked groups will only be used for opening editors when explicitly chosen by a user gesture (for example drag and drop), but not by default. Consequently, the active editor in a locked group is less likely to be replaced accidentally with a different editor."
|
|
89
89
|
)),
|
|
90
90
|
properties: autoLockGroupConfiguration,
|
|
@@ -102,7 +102,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
102
102
|
default: '',
|
|
103
103
|
enum: [...binaryEditorCandidates, ''],
|
|
104
104
|
description: ( localize(
|
|
105
|
-
|
|
105
|
+
9735,
|
|
106
106
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
107
107
|
)),
|
|
108
108
|
}
|
|
@@ -115,7 +115,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
115
115
|
'workbench.editorAssociations': {
|
|
116
116
|
type: 'object',
|
|
117
117
|
markdownDescription: ( localize(
|
|
118
|
-
|
|
118
|
+
9736,
|
|
119
119
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
120
120
|
)),
|
|
121
121
|
patternProperties: {
|
|
@@ -137,7 +137,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
137
137
|
minimum: 1,
|
|
138
138
|
scope: ConfigurationScope.RESOURCE,
|
|
139
139
|
markdownDescription: ( localize(
|
|
140
|
-
|
|
140
|
+
9737,
|
|
141
141
|
"Controls the minimum size of a file in MB before asking for confirmation when opening in the editor. Note that this setting may not apply to all editor types and environments."
|
|
142
142
|
)),
|
|
143
143
|
}
|
|
@@ -23,12 +23,12 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
|
|
|
23
23
|
import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
24
24
|
|
|
25
25
|
var CallHierarchyController_1;
|
|
26
|
-
const _ctxHasCallHierarchyProvider = ( (new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(
|
|
27
|
-
const _ctxCallHierarchyVisible = ( (new RawContextKey('callHierarchyVisible', false, ( localize(
|
|
26
|
+
const _ctxHasCallHierarchyProvider = ( (new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4151, 'Whether a call hierarchy provider is available')))));
|
|
27
|
+
const _ctxCallHierarchyVisible = ( (new RawContextKey('callHierarchyVisible', false, ( localize(4152, 'Whether call hierarchy peek is currently showing')))));
|
|
28
28
|
const _ctxCallHierarchyDirection = ( (new RawContextKey(
|
|
29
29
|
'callHierarchyDirection',
|
|
30
30
|
undefined,
|
|
31
|
-
{ type: 'string', description: ( localize(
|
|
31
|
+
{ type: 'string', description: ( localize(4153, 'Whether call hierarchy shows incoming or outgoing calls')) }
|
|
32
32
|
)));
|
|
33
33
|
function sanitizedDirection(candidate) {
|
|
34
34
|
return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo
|
|
@@ -116,14 +116,14 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
116
116
|
this._widget.showModel(model);
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
119
|
-
this._widget.showMessage(( localize(
|
|
119
|
+
this._widget.showMessage(( localize(4154, "No results")));
|
|
120
120
|
}
|
|
121
121
|
}).catch(err => {
|
|
122
122
|
if (isCancellationError(err)) {
|
|
123
123
|
this.endCallHierarchy();
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
|
-
this._widget.showMessage(( localize(
|
|
126
|
+
this._widget.showMessage(( localize(4155, "Failed to show call hierarchy")));
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
showOutgoingCalls() {
|
|
@@ -151,7 +151,7 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: 'editor.showCallHierarchy',
|
|
154
|
-
title: ( localize2(
|
|
154
|
+
title: ( localize2(4156, 'Peek Call Hierarchy')),
|
|
155
155
|
menu: {
|
|
156
156
|
id: MenuId.EditorContextPeek,
|
|
157
157
|
group: 'navigation',
|
|
@@ -179,8 +179,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super({
|
|
181
181
|
id: 'editor.showIncomingCalls',
|
|
182
|
-
title: ( localize2(
|
|
183
|
-
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(
|
|
182
|
+
title: ( localize2(4157, 'Show Incoming Calls')),
|
|
183
|
+
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4158, 'Icon for incoming calls in the call hierarchy view.'))),
|
|
184
184
|
precondition: ( (ContextKeyExpr.and(
|
|
185
185
|
_ctxCallHierarchyVisible,
|
|
186
186
|
(_ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom))
|
|
@@ -204,8 +204,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
204
204
|
constructor() {
|
|
205
205
|
super({
|
|
206
206
|
id: 'editor.showOutgoingCalls',
|
|
207
|
-
title: ( localize2(
|
|
208
|
-
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(
|
|
207
|
+
title: ( localize2(4159, 'Show Outgoing Calls')),
|
|
208
|
+
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4160, 'Icon for outgoing calls in the call hierarchy view.'))),
|
|
209
209
|
precondition: ( (ContextKeyExpr.and(
|
|
210
210
|
_ctxCallHierarchyVisible,
|
|
211
211
|
(_ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo))
|
|
@@ -229,7 +229,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: 'editor.refocusCallHierarchy',
|
|
232
|
-
title: ( localize2(
|
|
232
|
+
title: ( localize2(4161, 'Refocus Call Hierarchy')),
|
|
233
233
|
precondition: _ctxCallHierarchyVisible,
|
|
234
234
|
keybinding: {
|
|
235
235
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -245,7 +245,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
245
245
|
constructor() {
|
|
246
246
|
super({
|
|
247
247
|
id: 'editor.closeCallHierarchy',
|
|
248
|
-
title: ( localize(
|
|
248
|
+
title: ( localize(4162, 'Close')),
|
|
249
249
|
icon: Codicon.close,
|
|
250
250
|
precondition: _ctxCallHierarchyVisible,
|
|
251
251
|
keybinding: {
|
|
@@ -267,13 +267,13 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
267
267
|
}
|
|
268
268
|
this._previewDisposable.add(value);
|
|
269
269
|
const title = this._direction === CallHierarchyDirection.CallsFrom
|
|
270
|
-
? ( localize(
|
|
271
|
-
: ( localize(
|
|
270
|
+
? ( localize(9527, "Calls from '{0}'", element.model.root.name))
|
|
271
|
+
: ( localize(9528, "Callers of '{0}'", element.model.root.name));
|
|
272
272
|
this.setTitle(title);
|
|
273
273
|
}
|
|
274
274
|
showLoading() {
|
|
275
275
|
this._parent.dataset['state'] = State.Loading;
|
|
276
|
-
this.setTitle(( localize(
|
|
276
|
+
this.setTitle(( localize(9529, "Loading...")));
|
|
277
277
|
this._show();
|
|
278
278
|
}
|
|
279
279
|
showMessage(message) {
|
|
@@ -292,8 +292,8 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
292
292
|
await this._tree.expand(root.element);
|
|
293
293
|
if (root.children.length === 0) {
|
|
294
294
|
this.showMessage(this._direction === CallHierarchyDirection.CallsFrom
|
|
295
|
-
? ( localize(
|
|
296
|
-
: ( localize(
|
|
295
|
+
? ( localize(9530, "No calls from '{0}'", model.root.name))
|
|
296
|
+
: ( localize(9531, "No callers of '{0}'", model.root.name)));
|
|
297
297
|
}
|
|
298
298
|
else {
|
|
299
299
|
this._parent.dataset['state'] = State.Data;
|
|
@@ -31,7 +31,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
31
31
|
this.add(( (new CustomEditorInfo({
|
|
32
32
|
id: webviewEditorContribution.viewType,
|
|
33
33
|
displayName: webviewEditorContribution.displayName,
|
|
34
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
34
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(9515, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
35
35
|
selector: webviewEditorContribution.selector || [],
|
|
36
36
|
priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
|
|
37
37
|
}))));
|
|
@@ -5,7 +5,7 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from 'v
|
|
|
5
5
|
|
|
6
6
|
const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( (new RawContextKey('activeCustomEditorId', '', {
|
|
7
7
|
type: 'string',
|
|
8
|
-
description: ( localize(
|
|
8
|
+
description: ( localize(9514, "The viewType of the currently active custom editor.")),
|
|
9
9
|
})));
|
|
10
10
|
const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( (new RawContextKey('focusedCustomEditorIsEditable', false)));
|
|
11
11
|
var CustomEditorPriority;
|
package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js
CHANGED
|
@@ -179,8 +179,8 @@ let LanguageStatus = class LanguageStatus {
|
|
|
179
179
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
180
180
|
}
|
|
181
181
|
const props = {
|
|
182
|
-
name: ( localize(
|
|
183
|
-
ariaLabel: ( localize(
|
|
182
|
+
name: ( localize(4355, "Editor Language Status")),
|
|
183
|
+
ariaLabel: ( localize(4356, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
|
|
184
184
|
tooltip: element,
|
|
185
185
|
command: ShowTooltipCommand,
|
|
186
186
|
text: isOneBusy ? `${text}\u00A0\u00A0$(sync~spin)` : text,
|
|
@@ -280,7 +280,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
280
280
|
store.add(actionBar);
|
|
281
281
|
let action;
|
|
282
282
|
if (!isPinned) {
|
|
283
|
-
action = ( (new Action('pin', ( localize(
|
|
283
|
+
action = ( (new Action('pin', ( localize(4357, "Add to Status Bar")), ThemeIcon.asClassName(Codicon.pin), true, () => {
|
|
284
284
|
this._dedicated.add(status.id);
|
|
285
285
|
this._statusBarService.updateEntryVisibility(status.id, true);
|
|
286
286
|
this._update();
|
|
@@ -288,7 +288,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
288
288
|
})));
|
|
289
289
|
}
|
|
290
290
|
else {
|
|
291
|
-
action = ( (new Action('unpin', ( localize(
|
|
291
|
+
action = ( (new Action('unpin', ( localize(4358, "Remove from Status Bar")), ThemeIcon.asClassName(Codicon.pinned), true, () => {
|
|
292
292
|
this._dedicated.delete(status.id);
|
|
293
293
|
this._statusBarService.updateEntryVisibility(status.id, false);
|
|
294
294
|
this._update();
|
|
@@ -330,10 +330,10 @@ let LanguageStatus = class LanguageStatus {
|
|
|
330
330
|
}
|
|
331
331
|
const textValue = typeof status.label === 'string' ? status.label : status.label.value;
|
|
332
332
|
if (status.detail) {
|
|
333
|
-
return { label: ( localize(
|
|
333
|
+
return { label: ( localize(4359, '{0}, {1}', textValue, status.detail)) };
|
|
334
334
|
}
|
|
335
335
|
else {
|
|
336
|
-
return { label: ( localize(
|
|
336
|
+
return { label: ( localize(4360, '{0}', textValue)) };
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
static _asStatusbarEntry(item) {
|
|
@@ -346,7 +346,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
346
346
|
}
|
|
347
347
|
const textValue = typeof item.label === 'string' ? item.label : item.label.shortValue;
|
|
348
348
|
return {
|
|
349
|
-
name: ( localize(
|
|
349
|
+
name: ( localize(4361, '{0} (Language Status)', item.name)),
|
|
350
350
|
text: item.busy ? `${textValue}\u00A0\u00A0$(sync~spin)` : textValue,
|
|
351
351
|
ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
|
|
352
352
|
role: item.accessibilityInfo?.role,
|
|
@@ -369,7 +369,7 @@ registerAction2(class extends Action2 {
|
|
|
369
369
|
constructor() {
|
|
370
370
|
super({
|
|
371
371
|
id: 'editor.inlayHints.Reset',
|
|
372
|
-
title: ( localize2(
|
|
372
|
+
title: ( localize2(4362, "Reset Language Status Interaction Counter")),
|
|
373
373
|
category: Categories.View,
|
|
374
374
|
f1: true
|
|
375
375
|
});
|
package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js
CHANGED
|
@@ -12,7 +12,7 @@ import { FoldingController } from 'vscode/vscode/vs/editor/contrib/folding/brows
|
|
|
12
12
|
import { ColorDetector } from 'vscode/vscode/vs/editor/contrib/colorPicker/browser/colorDetector';
|
|
13
13
|
|
|
14
14
|
const openSettingsCommand = 'workbench.action.openSettings';
|
|
15
|
-
const configureSettingsLabel = ( localize(
|
|
15
|
+
const configureSettingsLabel = ( localize(4369, "Configure"));
|
|
16
16
|
let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
|
|
17
17
|
constructor(editorService, languageStatusService) {
|
|
18
18
|
super();
|
|
@@ -42,9 +42,9 @@ LimitIndicatorContribution = ( (__decorate([
|
|
|
42
42
|
class ColorDecorationAccessor {
|
|
43
43
|
constructor() {
|
|
44
44
|
this.id = 'decoratorsLimitInfo';
|
|
45
|
-
this.name = ( localize(
|
|
46
|
-
this.label = ( localize(
|
|
47
|
-
this.source = ( localize(
|
|
45
|
+
this.name = ( localize(4370, 'Color Decorator Status'));
|
|
46
|
+
this.label = ( localize(4371, 'Color Decorators'));
|
|
47
|
+
this.source = ( localize(4372, 'Color Decorators'));
|
|
48
48
|
this.settingsId = 'editor.colorDecoratorsLimit';
|
|
49
49
|
}
|
|
50
50
|
getLimitReporter(editor) {
|
|
@@ -54,9 +54,9 @@ class ColorDecorationAccessor {
|
|
|
54
54
|
class FoldingRangeAccessor {
|
|
55
55
|
constructor() {
|
|
56
56
|
this.id = 'foldingLimitInfo';
|
|
57
|
-
this.name = ( localize(
|
|
58
|
-
this.label = ( localize(
|
|
59
|
-
this.source = ( localize(
|
|
57
|
+
this.name = ( localize(4373, 'Folding Status'));
|
|
58
|
+
this.label = ( localize(4374, 'Folding Ranges'));
|
|
59
|
+
this.source = ( localize(4375, 'Folding'));
|
|
60
60
|
this.settingsId = 'editor.foldingMaximumRegions';
|
|
61
61
|
}
|
|
62
62
|
getLimitReporter(editor) {
|
|
@@ -98,7 +98,7 @@ class LanguageStatusEntry {
|
|
|
98
98
|
name: this.accessor.name,
|
|
99
99
|
severity: Severity$1.Warning,
|
|
100
100
|
label: this.accessor.label,
|
|
101
|
-
detail: ( localize(
|
|
101
|
+
detail: ( localize(4376, 'only {0} shown for performance reasons', info.limited)),
|
|
102
102
|
command: { id: openSettingsCommand, arguments: [this.accessor.settingsId], title: configureSettingsLabel },
|
|
103
103
|
accessibilityInfo: undefined,
|
|
104
104
|
source: this.accessor.source,
|
|
@@ -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,8 +75,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
75
75
|
const languageService = accessor.get(ILanguageService);
|
|
76
76
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
77
77
|
notificationService.info({
|
|
78
|
-
name: ( localize(
|
|
79
|
-
message: ( localize(
|
|
78
|
+
name: ( localize(9771, 'Merge Editor')),
|
|
79
|
+
message: ( localize(9772, "No active merge editor"))
|
|
80
80
|
});
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
@@ -88,7 +88,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
88
88
|
canSelectFiles: false,
|
|
89
89
|
canSelectFolders: true,
|
|
90
90
|
canSelectMany: false,
|
|
91
|
-
title: ( localize(
|
|
91
|
+
title: ( localize(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
|
});
|
|
@@ -135,7 +135,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
135
135
|
canSelectFiles: false,
|
|
136
136
|
canSelectFolders: true,
|
|
137
137
|
canSelectMany: false,
|
|
138
|
-
title: ( localize(
|
|
138
|
+
title: ( localize(9775, 'Select folder to save to'))
|
|
139
139
|
});
|
|
140
140
|
if (!result) {
|
|
141
141
|
return;
|
|
@@ -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': {
|
|
@@ -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;
|