@codingame/monaco-vscode-view-common-service-override 11.0.0 → 11.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- 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/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +12 -12
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +7 -7
- 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/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -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 +8 -8
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +4 -4
- 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(9918, 'Interactive Window')),
|
|
28
28
|
priority: RegisteredEditorPriority.builtin
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
id: 'mainThreadWebview-markdown.preview',
|
|
32
|
-
label: ( localize(
|
|
32
|
+
label: ( localize(9919, "Markdown Preview")),
|
|
33
33
|
priority: RegisteredEditorPriority.builtin
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
id: 'mainThreadWebview-simpleBrowser.view',
|
|
37
|
-
label: ( localize(
|
|
37
|
+
label: ( localize(9920, "Simple Browser")),
|
|
38
38
|
priority: RegisteredEditorPriority.builtin
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
id: 'mainThreadWebview-browserPreview',
|
|
42
|
-
label: ( localize(
|
|
42
|
+
label: ( localize(9921, "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
|
+
9922,
|
|
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
|
+
9923,
|
|
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
|
+
9924,
|
|
119
119
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
120
120
|
)),
|
|
121
121
|
patternProperties: {
|
|
@@ -137,7 +137,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
137
137
|
minimum: 1,
|
|
138
138
|
scope: 4 ,
|
|
139
139
|
markdownDescription: ( localize(
|
|
140
|
-
|
|
140
|
+
9925,
|
|
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
|
}
|
|
@@ -20,12 +20,12 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
|
|
|
20
20
|
import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
21
21
|
|
|
22
22
|
var CallHierarchyController_1;
|
|
23
|
-
const _ctxHasCallHierarchyProvider = ( (new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(
|
|
24
|
-
const _ctxCallHierarchyVisible = ( (new RawContextKey('callHierarchyVisible', false, ( localize(
|
|
23
|
+
const _ctxHasCallHierarchyProvider = ( (new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4226, 'Whether a call hierarchy provider is available')))));
|
|
24
|
+
const _ctxCallHierarchyVisible = ( (new RawContextKey('callHierarchyVisible', false, ( localize(4227, 'Whether call hierarchy peek is currently showing')))));
|
|
25
25
|
const _ctxCallHierarchyDirection = ( (new RawContextKey(
|
|
26
26
|
'callHierarchyDirection',
|
|
27
27
|
undefined,
|
|
28
|
-
{ type: 'string', description: ( localize(
|
|
28
|
+
{ type: 'string', description: ( localize(4228, 'Whether call hierarchy shows incoming or outgoing calls')) }
|
|
29
29
|
)));
|
|
30
30
|
function sanitizedDirection(candidate) {
|
|
31
31
|
return candidate === "outgoingCalls" || candidate === "incomingCalls"
|
|
@@ -113,14 +113,14 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
113
113
|
this._widget.showModel(model);
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
|
-
this._widget.showMessage(( localize(
|
|
116
|
+
this._widget.showMessage(( localize(4229, "No results")));
|
|
117
117
|
}
|
|
118
118
|
}).catch(err => {
|
|
119
119
|
if (isCancellationError(err)) {
|
|
120
120
|
this.endCallHierarchy();
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
this._widget.showMessage(( localize(
|
|
123
|
+
this._widget.showMessage(( localize(4230, "Failed to show call hierarchy")));
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
showOutgoingCalls() {
|
|
@@ -148,7 +148,7 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
super({
|
|
150
150
|
id: 'editor.showCallHierarchy',
|
|
151
|
-
title: ( localize2(
|
|
151
|
+
title: ( localize2(4231, 'Peek Call Hierarchy')),
|
|
152
152
|
menu: {
|
|
153
153
|
id: MenuId.EditorContextPeek,
|
|
154
154
|
group: 'navigation',
|
|
@@ -176,8 +176,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
176
176
|
constructor() {
|
|
177
177
|
super({
|
|
178
178
|
id: 'editor.showIncomingCalls',
|
|
179
|
-
title: ( localize2(
|
|
180
|
-
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(
|
|
179
|
+
title: ( localize2(4232, 'Show Incoming Calls')),
|
|
180
|
+
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4233, 'Icon for incoming calls in the call hierarchy view.'))),
|
|
181
181
|
precondition: ( (ContextKeyExpr.and(
|
|
182
182
|
_ctxCallHierarchyVisible,
|
|
183
183
|
(_ctxCallHierarchyDirection.isEqualTo("outgoingCalls" ))
|
|
@@ -201,8 +201,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
201
201
|
constructor() {
|
|
202
202
|
super({
|
|
203
203
|
id: 'editor.showOutgoingCalls',
|
|
204
|
-
title: ( localize2(
|
|
205
|
-
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(
|
|
204
|
+
title: ( localize2(4234, 'Show Outgoing Calls')),
|
|
205
|
+
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4235, 'Icon for outgoing calls in the call hierarchy view.'))),
|
|
206
206
|
precondition: ( (ContextKeyExpr.and(
|
|
207
207
|
_ctxCallHierarchyVisible,
|
|
208
208
|
(_ctxCallHierarchyDirection.isEqualTo("incomingCalls" ))
|
|
@@ -226,7 +226,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
226
226
|
constructor() {
|
|
227
227
|
super({
|
|
228
228
|
id: 'editor.refocusCallHierarchy',
|
|
229
|
-
title: ( localize2(
|
|
229
|
+
title: ( localize2(4236, 'Refocus Call Hierarchy')),
|
|
230
230
|
precondition: _ctxCallHierarchyVisible,
|
|
231
231
|
keybinding: {
|
|
232
232
|
weight: 200 ,
|
|
@@ -242,7 +242,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
242
242
|
constructor() {
|
|
243
243
|
super({
|
|
244
244
|
id: 'editor.closeCallHierarchy',
|
|
245
|
-
title: ( localize(
|
|
245
|
+
title: ( localize(4237, 'Close')),
|
|
246
246
|
icon: Codicon.close,
|
|
247
247
|
precondition: _ctxCallHierarchyVisible,
|
|
248
248
|
keybinding: {
|
|
@@ -257,13 +257,13 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
257
257
|
}
|
|
258
258
|
this._previewDisposable.add(value);
|
|
259
259
|
const title = this._direction === "outgoingCalls"
|
|
260
|
-
? ( localize(
|
|
261
|
-
: ( localize(
|
|
260
|
+
? ( localize(9708, "Calls from '{0}'", element.model.root.name))
|
|
261
|
+
: ( localize(9709, "Callers of '{0}'", element.model.root.name));
|
|
262
262
|
this.setTitle(title);
|
|
263
263
|
}
|
|
264
264
|
showLoading() {
|
|
265
265
|
this._parent.dataset['state'] = "loading" ;
|
|
266
|
-
this.setTitle(( localize(
|
|
266
|
+
this.setTitle(( localize(9710, "Loading...")));
|
|
267
267
|
this._show();
|
|
268
268
|
}
|
|
269
269
|
showMessage(message) {
|
|
@@ -282,8 +282,8 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
282
282
|
await this._tree.expand(root.element);
|
|
283
283
|
if (root.children.length === 0) {
|
|
284
284
|
this.showMessage(this._direction === "outgoingCalls"
|
|
285
|
-
? ( localize(
|
|
286
|
-
: ( localize(
|
|
285
|
+
? ( localize(9711, "No calls from '{0}'", model.root.name))
|
|
286
|
+
: ( localize(9712, "No callers of '{0}'", model.root.name)));
|
|
287
287
|
}
|
|
288
288
|
else {
|
|
289
289
|
this._parent.dataset['state'] = "data" ;
|
|
@@ -128,14 +128,14 @@ class AccessibilityProvider {
|
|
|
128
128
|
this.getDirection = getDirection;
|
|
129
129
|
}
|
|
130
130
|
getWidgetAriaLabel() {
|
|
131
|
-
return ( localize(
|
|
131
|
+
return ( localize(11471, "Call Hierarchy"));
|
|
132
132
|
}
|
|
133
133
|
getAriaLabel(element) {
|
|
134
134
|
if (this.getDirection() === "outgoingCalls" ) {
|
|
135
|
-
return ( localize(
|
|
135
|
+
return ( localize(11472, "calls from {0}", element.item.name));
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
|
-
return ( localize(
|
|
138
|
+
return ( localize(11473, "callers of {0}", element.item.name));
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -30,7 +30,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
30
30
|
this.add(( (new CustomEditorInfo({
|
|
31
31
|
id: webviewEditorContribution.viewType,
|
|
32
32
|
displayName: webviewEditorContribution.displayName,
|
|
33
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
33
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(9696, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
34
34
|
selector: webviewEditorContribution.selector || [],
|
|
35
35
|
priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
|
|
36
36
|
}))));
|
|
@@ -5,7 +5,7 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from 'v
|
|
|
5
5
|
|
|
6
6
|
const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( (new RawContextKey('activeCustomEditorId', '', {
|
|
7
7
|
type: 'string',
|
|
8
|
-
description: ( localize(
|
|
8
|
+
description: ( localize(9695, "The viewType of the currently active custom editor.")),
|
|
9
9
|
})));
|
|
10
10
|
const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( (new RawContextKey('focusedCustomEditorIsEditable', false)));
|
|
11
11
|
class CustomEditorInfo {
|
|
@@ -14,7 +14,7 @@ const Fields = ( (Object.freeze({
|
|
|
14
14
|
priority: 'priority',
|
|
15
15
|
})));
|
|
16
16
|
const CustomEditorsContribution = {
|
|
17
|
-
description: ( localize(
|
|
17
|
+
description: ( localize(11459, 'Contributed custom editors.')),
|
|
18
18
|
type: 'array',
|
|
19
19
|
defaultSnippets: [{
|
|
20
20
|
body: [{
|
|
@@ -36,20 +36,20 @@ const CustomEditorsContribution = {
|
|
|
36
36
|
[Fields.viewType]: {
|
|
37
37
|
type: 'string',
|
|
38
38
|
markdownDescription: ( localize(
|
|
39
|
-
|
|
39
|
+
11460,
|
|
40
40
|
'Identifier for the custom editor. This must be unique across all custom editors, so we recommend including your extension id as part of `viewType`. The `viewType` is used when registering custom editors with `vscode.registerCustomEditorProvider` and in the `onCustomEditor:${id}` [activation event](https://code.visualstudio.com/api/references/activation-events).'
|
|
41
41
|
)),
|
|
42
42
|
},
|
|
43
43
|
[Fields.displayName]: {
|
|
44
44
|
type: 'string',
|
|
45
45
|
description: ( localize(
|
|
46
|
-
|
|
46
|
+
11461,
|
|
47
47
|
'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'
|
|
48
48
|
)),
|
|
49
49
|
},
|
|
50
50
|
[Fields.selector]: {
|
|
51
51
|
type: 'array',
|
|
52
|
-
description: ( localize(
|
|
52
|
+
description: ( localize(11462, 'Set of globs that the custom editor is enabled for.')),
|
|
53
53
|
items: {
|
|
54
54
|
type: 'object',
|
|
55
55
|
defaultSnippets: [{
|
|
@@ -60,7 +60,7 @@ const CustomEditorsContribution = {
|
|
|
60
60
|
properties: {
|
|
61
61
|
filenamePattern: {
|
|
62
62
|
type: 'string',
|
|
63
|
-
description: ( localize(
|
|
63
|
+
description: ( localize(11463, 'Glob that the custom editor is enabled for.')),
|
|
64
64
|
},
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -68,7 +68,7 @@ const CustomEditorsContribution = {
|
|
|
68
68
|
[Fields.priority]: {
|
|
69
69
|
type: 'string',
|
|
70
70
|
markdownDeprecationMessage: ( localize(
|
|
71
|
-
|
|
71
|
+
11464,
|
|
72
72
|
'Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting.'
|
|
73
73
|
)),
|
|
74
74
|
enum: [
|
|
@@ -77,11 +77,11 @@ const CustomEditorsContribution = {
|
|
|
77
77
|
],
|
|
78
78
|
markdownEnumDescriptions: [
|
|
79
79
|
( localize(
|
|
80
|
-
|
|
80
|
+
11465,
|
|
81
81
|
'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
|
|
82
82
|
)),
|
|
83
83
|
( localize(
|
|
84
|
-
|
|
84
|
+
11466,
|
|
85
85
|
'The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command.'
|
|
86
86
|
)),
|
|
87
87
|
],
|
|
@@ -117,9 +117,9 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
117
117
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
118
118
|
}
|
|
119
119
|
const headers = [
|
|
120
|
-
( localize(
|
|
121
|
-
( localize(
|
|
122
|
-
( localize(
|
|
120
|
+
( localize(11467, "View Type")),
|
|
121
|
+
( localize(11468, "Priority")),
|
|
122
|
+
( localize(11469, "Filename Pattern")),
|
|
123
123
|
];
|
|
124
124
|
const rows = ( (customEditors
|
|
125
125
|
.map(customEditor => {
|
|
@@ -140,7 +140,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
140
140
|
}
|
|
141
141
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
142
142
|
id: 'customEditors',
|
|
143
|
-
label: ( localize(
|
|
143
|
+
label: ( localize(11470, "Custom Editors")),
|
|
144
144
|
access: {
|
|
145
145
|
canToggle: false
|
|
146
146
|
},
|
package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js
CHANGED
|
@@ -181,8 +181,8 @@ let LanguageStatus = class LanguageStatus {
|
|
|
181
181
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
182
182
|
}
|
|
183
183
|
const props = {
|
|
184
|
-
name: ( localize(
|
|
185
|
-
ariaLabel: ( localize(
|
|
184
|
+
name: ( localize(4430, "Editor Language Status")),
|
|
185
|
+
ariaLabel: ( localize(4431, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
|
|
186
186
|
tooltip: element,
|
|
187
187
|
command: ShowTooltipCommand,
|
|
188
188
|
text: computeText(text, isOneBusy),
|
|
@@ -279,7 +279,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
279
279
|
}, { hoverDelegate: nativeHoverDelegate }, this._hoverService, this._openerService))));
|
|
280
280
|
}
|
|
281
281
|
const actionBar = ( (new ActionBar(right, { hoverDelegate: nativeHoverDelegate })));
|
|
282
|
-
const actionLabel = isPinned ? ( localize(
|
|
282
|
+
const actionLabel = isPinned ? ( localize(4432, "Remove from Status Bar")) : ( localize(4433, "Add to Status Bar"));
|
|
283
283
|
actionBar.setAriaLabel(actionLabel);
|
|
284
284
|
store.add(actionBar);
|
|
285
285
|
let action;
|
|
@@ -334,10 +334,10 @@ let LanguageStatus = class LanguageStatus {
|
|
|
334
334
|
}
|
|
335
335
|
const textValue = typeof status.label === 'string' ? status.label : status.label.value;
|
|
336
336
|
if (status.detail) {
|
|
337
|
-
return { label: ( localize(
|
|
337
|
+
return { label: ( localize(4434, '{0}, {1}', textValue, status.detail)) };
|
|
338
338
|
}
|
|
339
339
|
else {
|
|
340
|
-
return { label: ( localize(
|
|
340
|
+
return { label: ( localize(4435, '{0}', textValue)) };
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
static _asStatusbarEntry(item) {
|
|
@@ -350,7 +350,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
350
350
|
}
|
|
351
351
|
const textValue = typeof item.label === 'string' ? item.label : item.label.shortValue;
|
|
352
352
|
return {
|
|
353
|
-
name: ( localize(
|
|
353
|
+
name: ( localize(4436, '{0} (Language Status)', item.name)),
|
|
354
354
|
text: computeText(textValue, item.busy),
|
|
355
355
|
ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
|
|
356
356
|
role: item.accessibilityInfo?.role,
|
|
@@ -373,7 +373,7 @@ registerAction2(class extends Action2 {
|
|
|
373
373
|
constructor() {
|
|
374
374
|
super({
|
|
375
375
|
id: 'editor.inlayHints.Reset',
|
|
376
|
-
title: ( localize2(
|
|
376
|
+
title: ( localize2(4437, "Reset Language Status Interaction Counter")),
|
|
377
377
|
category: Categories.View,
|
|
378
378
|
f1: true
|
|
379
379
|
});
|
package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js
CHANGED
|
@@ -11,7 +11,7 @@ import { FoldingController } from 'vscode/vscode/vs/editor/contrib/folding/brows
|
|
|
11
11
|
import { ColorDetector } from 'vscode/vscode/vs/editor/contrib/colorPicker/browser/colorDetector';
|
|
12
12
|
|
|
13
13
|
const openSettingsCommand = 'workbench.action.openSettings';
|
|
14
|
-
const configureSettingsLabel = ( localize(
|
|
14
|
+
const configureSettingsLabel = ( localize(4444, "Configure"));
|
|
15
15
|
let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
|
|
16
16
|
constructor(editorService, languageStatusService) {
|
|
17
17
|
super();
|
|
@@ -41,9 +41,9 @@ LimitIndicatorContribution = ( (__decorate([
|
|
|
41
41
|
class ColorDecorationAccessor {
|
|
42
42
|
constructor() {
|
|
43
43
|
this.id = 'decoratorsLimitInfo';
|
|
44
|
-
this.name = ( localize(
|
|
45
|
-
this.label = ( localize(
|
|
46
|
-
this.source = ( localize(
|
|
44
|
+
this.name = ( localize(4445, 'Color Decorator Status'));
|
|
45
|
+
this.label = ( localize(4446, 'Color Decorators'));
|
|
46
|
+
this.source = ( localize(4447, 'Color Decorators'));
|
|
47
47
|
this.settingsId = 'editor.colorDecoratorsLimit';
|
|
48
48
|
}
|
|
49
49
|
getLimitReporter(editor) {
|
|
@@ -53,9 +53,9 @@ class ColorDecorationAccessor {
|
|
|
53
53
|
class FoldingRangeAccessor {
|
|
54
54
|
constructor() {
|
|
55
55
|
this.id = 'foldingLimitInfo';
|
|
56
|
-
this.name = ( localize(
|
|
57
|
-
this.label = ( localize(
|
|
58
|
-
this.source = ( localize(
|
|
56
|
+
this.name = ( localize(4448, 'Folding Status'));
|
|
57
|
+
this.label = ( localize(4449, 'Folding Ranges'));
|
|
58
|
+
this.source = ( localize(4450, 'Folding'));
|
|
59
59
|
this.settingsId = 'editor.foldingMaximumRegions';
|
|
60
60
|
}
|
|
61
61
|
getLimitReporter(editor) {
|
|
@@ -97,7 +97,7 @@ class LanguageStatusEntry {
|
|
|
97
97
|
name: this.accessor.name,
|
|
98
98
|
severity: Severity$1.Warning,
|
|
99
99
|
label: this.accessor.label,
|
|
100
|
-
detail: ( localize(
|
|
100
|
+
detail: ( localize(4451, 'only {0} shown for performance reasons', info.limited)),
|
|
101
101
|
command: { id: openSettingsCommand, arguments: [this.accessor.settingsId], title: configureSettingsLabel },
|
|
102
102
|
accessibilityInfo: undefined,
|
|
103
103
|
source: this.accessor.source,
|
|
@@ -54,7 +54,7 @@ class OpenMergeEditor extends Action2 {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super({
|
|
56
56
|
id: '_open.mergeEditor',
|
|
57
|
-
title: ( localize2(
|
|
57
|
+
title: ( localize2(9931, 'Open Merge Editor')),
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
run(accessor, ...args) {
|
|
@@ -133,7 +133,7 @@ class SetMixedLayout extends Action2 {
|
|
|
133
133
|
constructor() {
|
|
134
134
|
super({
|
|
135
135
|
id: 'merge.mixedLayout',
|
|
136
|
-
title: ( localize2(
|
|
136
|
+
title: ( localize2(9932, "Mixed Layout")),
|
|
137
137
|
toggled: ( (ctxMergeEditorLayout.isEqualTo('mixed'))),
|
|
138
138
|
menu: [
|
|
139
139
|
{
|
|
@@ -157,7 +157,7 @@ class SetColumnLayout extends Action2 {
|
|
|
157
157
|
constructor() {
|
|
158
158
|
super({
|
|
159
159
|
id: 'merge.columnLayout',
|
|
160
|
-
title: ( localize2(
|
|
160
|
+
title: ( localize2(9933, 'Column Layout')),
|
|
161
161
|
toggled: ( (ctxMergeEditorLayout.isEqualTo('columns'))),
|
|
162
162
|
menu: [{
|
|
163
163
|
id: MenuId.EditorTitle,
|
|
@@ -179,7 +179,7 @@ class ShowNonConflictingChanges extends Action2 {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super({
|
|
181
181
|
id: 'merge.showNonConflictingChanges',
|
|
182
|
-
title: ( localize2(
|
|
182
|
+
title: ( localize2(9934, "Show Non-Conflicting Changes")),
|
|
183
183
|
toggled: ( (ctxMergeEditorShowNonConflictingChanges.isEqualTo(true))),
|
|
184
184
|
menu: [
|
|
185
185
|
{
|
|
@@ -203,7 +203,7 @@ class ShowHideBase extends Action2 {
|
|
|
203
203
|
constructor() {
|
|
204
204
|
super({
|
|
205
205
|
id: 'merge.showBase',
|
|
206
|
-
title: ( localize2(
|
|
206
|
+
title: ( localize2(9935, "Show Base")),
|
|
207
207
|
toggled: ( (ctxMergeEditorShowBase.isEqualTo(true))),
|
|
208
208
|
menu: [
|
|
209
209
|
{
|
|
@@ -229,7 +229,7 @@ class ShowHideTopBase extends Action2 {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: 'merge.showBaseTop',
|
|
232
|
-
title: ( localize2(
|
|
232
|
+
title: ( localize2(9936, "Show Base Top")),
|
|
233
233
|
toggled: ( (ContextKeyExpr.and(ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop))),
|
|
234
234
|
menu: [
|
|
235
235
|
{
|
|
@@ -252,7 +252,7 @@ class ShowHideCenterBase extends Action2 {
|
|
|
252
252
|
constructor() {
|
|
253
253
|
super({
|
|
254
254
|
id: 'merge.showBaseCenter',
|
|
255
|
-
title: ( localize2(
|
|
255
|
+
title: ( localize2(9937, "Show Base Center")),
|
|
256
256
|
toggled: ( (ContextKeyExpr.and(
|
|
257
257
|
ctxMergeEditorShowBase,
|
|
258
258
|
(ctxMergeEditorShowBaseAtTop.negate())
|
|
@@ -274,13 +274,13 @@ class ShowHideCenterBase extends Action2 {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
const mergeEditorCategory = ( localize2(
|
|
277
|
+
const mergeEditorCategory = ( localize2(9938, "Merge Editor"));
|
|
278
278
|
class OpenResultResource extends MergeEditorAction {
|
|
279
279
|
constructor() {
|
|
280
280
|
super({
|
|
281
281
|
id: 'merge.openResult',
|
|
282
282
|
icon: Codicon.goToFile,
|
|
283
|
-
title: ( localize2(
|
|
283
|
+
title: ( localize2(9939, "Open File")),
|
|
284
284
|
category: mergeEditorCategory,
|
|
285
285
|
menu: [{
|
|
286
286
|
id: MenuId.EditorTitle,
|
|
@@ -301,7 +301,7 @@ class GoToNextUnhandledConflict extends MergeEditorAction {
|
|
|
301
301
|
super({
|
|
302
302
|
id: 'merge.goToNextUnhandledConflict',
|
|
303
303
|
category: mergeEditorCategory,
|
|
304
|
-
title: ( localize2(
|
|
304
|
+
title: ( localize2(9940, "Go to Next Unhandled Conflict")),
|
|
305
305
|
icon: Codicon.arrowDown,
|
|
306
306
|
menu: [
|
|
307
307
|
{
|
|
@@ -325,7 +325,7 @@ class GoToPreviousUnhandledConflict extends MergeEditorAction {
|
|
|
325
325
|
super({
|
|
326
326
|
id: 'merge.goToPreviousUnhandledConflict',
|
|
327
327
|
category: mergeEditorCategory,
|
|
328
|
-
title: ( localize2(
|
|
328
|
+
title: ( localize2(9941, "Go to Previous Unhandled Conflict")),
|
|
329
329
|
icon: Codicon.arrowUp,
|
|
330
330
|
menu: [
|
|
331
331
|
{
|
|
@@ -349,7 +349,7 @@ class ToggleActiveConflictInput1 extends MergeEditorAction {
|
|
|
349
349
|
super({
|
|
350
350
|
id: 'merge.toggleActiveConflictInput1',
|
|
351
351
|
category: mergeEditorCategory,
|
|
352
|
-
title: ( localize2(
|
|
352
|
+
title: ( localize2(9942, "Toggle Current Conflict from Left")),
|
|
353
353
|
f1: true,
|
|
354
354
|
precondition: ctxIsMergeEditor,
|
|
355
355
|
});
|
|
@@ -363,7 +363,7 @@ class ToggleActiveConflictInput2 extends MergeEditorAction {
|
|
|
363
363
|
super({
|
|
364
364
|
id: 'merge.toggleActiveConflictInput2',
|
|
365
365
|
category: mergeEditorCategory,
|
|
366
|
-
title: ( localize2(
|
|
366
|
+
title: ( localize2(9943, "Toggle Current Conflict from Right")),
|
|
367
367
|
f1: true,
|
|
368
368
|
precondition: ctxIsMergeEditor,
|
|
369
369
|
});
|
|
@@ -377,8 +377,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
|
|
|
377
377
|
super({
|
|
378
378
|
id: 'mergeEditor.compareInput1WithBase',
|
|
379
379
|
category: mergeEditorCategory,
|
|
380
|
-
title: ( localize2(
|
|
381
|
-
shortTitle: ( localize(
|
|
380
|
+
title: ( localize2(9944, "Compare Input 1 With Base")),
|
|
381
|
+
shortTitle: ( localize(9945, 'Compare With Base')),
|
|
382
382
|
f1: true,
|
|
383
383
|
precondition: ctxIsMergeEditor,
|
|
384
384
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -395,8 +395,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
|
|
|
395
395
|
super({
|
|
396
396
|
id: 'mergeEditor.compareInput2WithBase',
|
|
397
397
|
category: mergeEditorCategory,
|
|
398
|
-
title: ( localize2(
|
|
399
|
-
shortTitle: ( localize(
|
|
398
|
+
title: ( localize2(9946, "Compare Input 2 With Base")),
|
|
399
|
+
shortTitle: ( localize(9945, 'Compare With Base')),
|
|
400
400
|
f1: true,
|
|
401
401
|
precondition: ctxIsMergeEditor,
|
|
402
402
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -432,7 +432,7 @@ class OpenBaseFile extends MergeEditorAction {
|
|
|
432
432
|
super({
|
|
433
433
|
id: 'merge.openBaseEditor',
|
|
434
434
|
category: mergeEditorCategory,
|
|
435
|
-
title: ( localize2(
|
|
435
|
+
title: ( localize2(9947, "Open Base File")),
|
|
436
436
|
f1: true,
|
|
437
437
|
precondition: ctxIsMergeEditor,
|
|
438
438
|
});
|
|
@@ -447,7 +447,7 @@ class AcceptAllInput1 extends MergeEditorAction {
|
|
|
447
447
|
super({
|
|
448
448
|
id: 'merge.acceptAllInput1',
|
|
449
449
|
category: mergeEditorCategory,
|
|
450
|
-
title: ( localize2(
|
|
450
|
+
title: ( localize2(9948, "Accept All Changes from Left")),
|
|
451
451
|
f1: true,
|
|
452
452
|
precondition: ctxIsMergeEditor,
|
|
453
453
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -463,7 +463,7 @@ class AcceptAllInput2 extends MergeEditorAction {
|
|
|
463
463
|
super({
|
|
464
464
|
id: 'merge.acceptAllInput2',
|
|
465
465
|
category: mergeEditorCategory,
|
|
466
|
-
title: ( localize2(
|
|
466
|
+
title: ( localize2(9949, "Accept All Changes from Right")),
|
|
467
467
|
f1: true,
|
|
468
468
|
precondition: ctxIsMergeEditor,
|
|
469
469
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -479,8 +479,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
|
|
|
479
479
|
super({
|
|
480
480
|
id: 'mergeEditor.resetResultToBaseAndAutoMerge',
|
|
481
481
|
category: mergeEditorCategory,
|
|
482
|
-
title: ( localize2(
|
|
483
|
-
shortTitle: ( localize(
|
|
482
|
+
title: ( localize2(9950, "Reset Result")),
|
|
483
|
+
shortTitle: ( localize(9951, 'Reset')),
|
|
484
484
|
f1: true,
|
|
485
485
|
precondition: ctxIsMergeEditor,
|
|
486
486
|
menu: { id: MenuId.MergeInputResultToolbar, group: 'primary' },
|
|
@@ -496,7 +496,7 @@ class ResetCloseWithConflictsChoice extends Action2 {
|
|
|
496
496
|
super({
|
|
497
497
|
id: 'mergeEditor.resetCloseWithConflictsChoice',
|
|
498
498
|
category: mergeEditorCategory,
|
|
499
|
-
title: ( localize2(
|
|
499
|
+
title: ( localize2(9952, "Reset Choice for \'Close with Conflicts\'")),
|
|
500
500
|
f1: true,
|
|
501
501
|
});
|
|
502
502
|
}
|
|
@@ -509,7 +509,7 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
509
509
|
super({
|
|
510
510
|
id: 'mergeEditor.acceptMerge',
|
|
511
511
|
category: mergeEditorCategory,
|
|
512
|
-
title: ( localize2(
|
|
512
|
+
title: ( localize2(9953, "Complete Merge")),
|
|
513
513
|
f1: false,
|
|
514
514
|
precondition: ctxIsMergeEditor
|
|
515
515
|
});
|
|
@@ -520,12 +520,12 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
520
520
|
if (viewModel.model.unhandledConflictsCount.get() > 0) {
|
|
521
521
|
const { confirmed } = await dialogService.confirm({
|
|
522
522
|
message: ( localize(
|
|
523
|
-
|
|
523
|
+
9954,
|
|
524
524
|
"Do you want to complete the merge of {0}?",
|
|
525
525
|
basename(inputModel.resultUri)
|
|
526
526
|
)),
|
|
527
|
-
detail: ( localize(
|
|
528
|
-
primaryButton: ( localize(
|
|
527
|
+
detail: ( localize(9955, "The file contains unhandled conflicts.")),
|
|
528
|
+
primaryButton: ( localize(9956, "&&Complete with Conflicts"))
|
|
529
529
|
});
|
|
530
530
|
if (!confirmed) {
|
|
531
531
|
return {
|