@codingame/monaco-vscode-view-common-service-override 13.0.0 → 13.1.1
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 +43 -55
- 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 +7 -7
- 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/browser/customEditorInputFactory.js +1 -1
- 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.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/overlayWebview.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +7 -7
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +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 +5 -5
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +1 -1
|
@@ -25,22 +25,22 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
25
25
|
static { this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
26
26
|
{
|
|
27
27
|
id: 'workbench.input.interactive',
|
|
28
|
-
label: ( localize(
|
|
28
|
+
label: ( localize(3087, 'Interactive Window')),
|
|
29
29
|
priority: RegisteredEditorPriority.builtin
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
id: 'mainThreadWebview-markdown.preview',
|
|
33
|
-
label: ( localize(
|
|
33
|
+
label: ( localize(3088, "Markdown Preview")),
|
|
34
34
|
priority: RegisteredEditorPriority.builtin
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
id: 'mainThreadWebview-simpleBrowser.view',
|
|
38
|
-
label: ( localize(
|
|
38
|
+
label: ( localize(3089, "Simple Browser")),
|
|
39
39
|
priority: RegisteredEditorPriority.builtin
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
id: 'mainThreadWebview-browserPreview',
|
|
43
|
-
label: ( localize(
|
|
43
|
+
label: ( localize(3090, "Live Preview")),
|
|
44
44
|
priority: RegisteredEditorPriority.builtin
|
|
45
45
|
}
|
|
46
46
|
]; }
|
|
@@ -85,7 +85,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
85
85
|
'workbench.editor.autoLockGroups': {
|
|
86
86
|
type: 'object',
|
|
87
87
|
description: ( localize(
|
|
88
|
-
|
|
88
|
+
3091,
|
|
89
89
|
"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."
|
|
90
90
|
)),
|
|
91
91
|
properties: autoLockGroupConfiguration,
|
|
@@ -103,7 +103,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
103
103
|
default: '',
|
|
104
104
|
enum: [...binaryEditorCandidates, ''],
|
|
105
105
|
description: ( localize(
|
|
106
|
-
|
|
106
|
+
3092,
|
|
107
107
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
108
108
|
)),
|
|
109
109
|
}
|
|
@@ -116,7 +116,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
116
116
|
'workbench.editorAssociations': {
|
|
117
117
|
type: 'object',
|
|
118
118
|
markdownDescription: ( localize(
|
|
119
|
-
|
|
119
|
+
3093,
|
|
120
120
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
121
121
|
)),
|
|
122
122
|
patternProperties: {
|
|
@@ -138,7 +138,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
138
138
|
minimum: 1,
|
|
139
139
|
scope: ConfigurationScope.RESOURCE,
|
|
140
140
|
markdownDescription: ( localize(
|
|
141
|
-
|
|
141
|
+
3094,
|
|
142
142
|
"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."
|
|
143
143
|
)),
|
|
144
144
|
}
|
|
@@ -24,12 +24,12 @@ import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/th
|
|
|
24
24
|
import { isCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
25
25
|
|
|
26
26
|
var CallHierarchyController_1;
|
|
27
|
-
const _ctxHasCallHierarchyProvider = ( new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(
|
|
28
|
-
const _ctxCallHierarchyVisible = ( new RawContextKey('callHierarchyVisible', false, ( localize(
|
|
27
|
+
const _ctxHasCallHierarchyProvider = ( new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4129, 'Whether a call hierarchy provider is available'))));
|
|
28
|
+
const _ctxCallHierarchyVisible = ( new RawContextKey('callHierarchyVisible', false, ( localize(4130, 'Whether call hierarchy peek is currently showing'))));
|
|
29
29
|
const _ctxCallHierarchyDirection = ( new RawContextKey(
|
|
30
30
|
'callHierarchyDirection',
|
|
31
31
|
undefined,
|
|
32
|
-
{ type: 'string', description: ( localize(
|
|
32
|
+
{ type: 'string', description: ( localize(4131, 'Whether call hierarchy shows incoming or outgoing calls')) }
|
|
33
33
|
));
|
|
34
34
|
function sanitizedDirection(candidate) {
|
|
35
35
|
return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo
|
|
@@ -117,14 +117,14 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
117
117
|
this._widget.showModel(model);
|
|
118
118
|
}
|
|
119
119
|
else {
|
|
120
|
-
this._widget.showMessage(( localize(
|
|
120
|
+
this._widget.showMessage(( localize(4132, "No results")));
|
|
121
121
|
}
|
|
122
122
|
}).catch(err => {
|
|
123
123
|
if (isCancellationError(err)) {
|
|
124
124
|
this.endCallHierarchy();
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
|
-
this._widget.showMessage(( localize(
|
|
127
|
+
this._widget.showMessage(( localize(4133, "Failed to show call hierarchy")));
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
showOutgoingCalls() {
|
|
@@ -152,7 +152,7 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: 'editor.showCallHierarchy',
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(4134, 'Peek Call Hierarchy')),
|
|
156
156
|
menu: {
|
|
157
157
|
id: MenuId.EditorContextPeek,
|
|
158
158
|
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(4135, 'Show Incoming Calls')),
|
|
180
|
+
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4136, 'Icon for incoming calls in the call hierarchy view.'))),
|
|
181
181
|
precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom)))),
|
|
182
182
|
keybinding: {
|
|
183
183
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -198,8 +198,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
198
198
|
constructor() {
|
|
199
199
|
super({
|
|
200
200
|
id: 'editor.showOutgoingCalls',
|
|
201
|
-
title: ( localize2(
|
|
202
|
-
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(
|
|
201
|
+
title: ( localize2(4137, 'Show Outgoing Calls')),
|
|
202
|
+
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4138, 'Icon for outgoing calls in the call hierarchy view.'))),
|
|
203
203
|
precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo)))),
|
|
204
204
|
keybinding: {
|
|
205
205
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -220,7 +220,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
220
220
|
constructor() {
|
|
221
221
|
super({
|
|
222
222
|
id: 'editor.refocusCallHierarchy',
|
|
223
|
-
title: ( localize2(
|
|
223
|
+
title: ( localize2(4139, 'Refocus Call Hierarchy')),
|
|
224
224
|
precondition: _ctxCallHierarchyVisible,
|
|
225
225
|
keybinding: {
|
|
226
226
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -236,7 +236,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
236
236
|
constructor() {
|
|
237
237
|
super({
|
|
238
238
|
id: 'editor.closeCallHierarchy',
|
|
239
|
-
title: ( localize(
|
|
239
|
+
title: ( localize(4140, 'Close')),
|
|
240
240
|
icon: Codicon.close,
|
|
241
241
|
precondition: _ctxCallHierarchyVisible,
|
|
242
242
|
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(4141, "Calls from '{0}'", element.model.root.name))
|
|
271
|
+
: ( localize(4142, "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(4143, "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(4144, "No calls from '{0}'", model.root.name))
|
|
296
|
+
: ( localize(4145, "No callers of '{0}'", model.root.name)));
|
|
297
297
|
}
|
|
298
298
|
else {
|
|
299
299
|
this._parent.dataset['state'] = State.Data;
|
|
@@ -107,14 +107,14 @@ class AccessibilityProvider {
|
|
|
107
107
|
this.getDirection = getDirection;
|
|
108
108
|
}
|
|
109
109
|
getWidgetAriaLabel() {
|
|
110
|
-
return localize(
|
|
110
|
+
return localize(4146, "Call Hierarchy");
|
|
111
111
|
}
|
|
112
112
|
getAriaLabel(element) {
|
|
113
113
|
if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
|
|
114
|
-
return localize(
|
|
114
|
+
return localize(4147, "calls from {0}", element.item.name);
|
|
115
115
|
}
|
|
116
116
|
else {
|
|
117
|
-
return localize(
|
|
117
|
+
return localize(4148, "callers of {0}", element.item.name);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -8,7 +8,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
8
8
|
import { CustomEditorInput } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput';
|
|
9
9
|
import { ICustomEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/customEditor/common/customEditor.service';
|
|
10
10
|
import { NotebookEditorInput } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
11
|
-
import { WebviewContentPurpose } from '@codingame/monaco-vscode-
|
|
11
|
+
import { WebviewContentPurpose } from '@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
12
12
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
13
13
|
import { WebviewEditorInputSerializer, reviveWebviewExtensionDescription, restoreWebviewOptions, restoreWebviewContentOptions } from '../../webviewPanel/browser/webviewEditorInputSerializer.js';
|
|
14
14
|
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
@@ -32,7 +32,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
32
32
|
this.add(( new CustomEditorInfo({
|
|
33
33
|
id: webviewEditorContribution.viewType,
|
|
34
34
|
displayName: webviewEditorContribution.displayName,
|
|
35
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
35
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(4939, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
36
36
|
selector: webviewEditorContribution.selector || [],
|
|
37
37
|
priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
|
|
38
38
|
})));
|
|
@@ -6,7 +6,7 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from '@
|
|
|
6
6
|
|
|
7
7
|
const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( new RawContextKey('activeCustomEditorId', '', {
|
|
8
8
|
type: 'string',
|
|
9
|
-
description: ( localize(
|
|
9
|
+
description: ( localize(4940, "The viewType of the currently active custom editor.")),
|
|
10
10
|
}));
|
|
11
11
|
const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( new RawContextKey('focusedCustomEditorIsEditable', false));
|
|
12
12
|
var CustomEditorPriority;
|
|
@@ -16,7 +16,7 @@ const Fields = ( Object.freeze({
|
|
|
16
16
|
priority: 'priority',
|
|
17
17
|
}));
|
|
18
18
|
const CustomEditorsContribution = {
|
|
19
|
-
description: ( localize(
|
|
19
|
+
description: ( localize(4942, 'Contributed custom editors.')),
|
|
20
20
|
type: 'array',
|
|
21
21
|
defaultSnippets: [{
|
|
22
22
|
body: [{
|
|
@@ -38,20 +38,20 @@ const CustomEditorsContribution = {
|
|
|
38
38
|
[Fields.viewType]: {
|
|
39
39
|
type: 'string',
|
|
40
40
|
markdownDescription: ( localize(
|
|
41
|
-
|
|
41
|
+
4943,
|
|
42
42
|
'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).'
|
|
43
43
|
)),
|
|
44
44
|
},
|
|
45
45
|
[Fields.displayName]: {
|
|
46
46
|
type: 'string',
|
|
47
47
|
description: ( localize(
|
|
48
|
-
|
|
48
|
+
4944,
|
|
49
49
|
'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'
|
|
50
50
|
)),
|
|
51
51
|
},
|
|
52
52
|
[Fields.selector]: {
|
|
53
53
|
type: 'array',
|
|
54
|
-
description: ( localize(
|
|
54
|
+
description: ( localize(4945, 'Set of globs that the custom editor is enabled for.')),
|
|
55
55
|
items: {
|
|
56
56
|
type: 'object',
|
|
57
57
|
defaultSnippets: [{
|
|
@@ -62,7 +62,7 @@ const CustomEditorsContribution = {
|
|
|
62
62
|
properties: {
|
|
63
63
|
filenamePattern: {
|
|
64
64
|
type: 'string',
|
|
65
|
-
description: ( localize(
|
|
65
|
+
description: ( localize(4946, 'Glob that the custom editor is enabled for.')),
|
|
66
66
|
},
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -70,7 +70,7 @@ const CustomEditorsContribution = {
|
|
|
70
70
|
[Fields.priority]: {
|
|
71
71
|
type: 'string',
|
|
72
72
|
markdownDeprecationMessage: ( localize(
|
|
73
|
-
|
|
73
|
+
4947,
|
|
74
74
|
'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.'
|
|
75
75
|
)),
|
|
76
76
|
enum: [
|
|
@@ -79,11 +79,11 @@ const CustomEditorsContribution = {
|
|
|
79
79
|
],
|
|
80
80
|
markdownEnumDescriptions: [
|
|
81
81
|
( localize(
|
|
82
|
-
|
|
82
|
+
4948,
|
|
83
83
|
'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
|
|
84
84
|
)),
|
|
85
85
|
( localize(
|
|
86
|
-
|
|
86
|
+
4949,
|
|
87
87
|
'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.'
|
|
88
88
|
)),
|
|
89
89
|
],
|
|
@@ -119,9 +119,9 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
119
119
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
120
120
|
}
|
|
121
121
|
const headers = [
|
|
122
|
-
( localize(
|
|
123
|
-
( localize(
|
|
124
|
-
( localize(
|
|
122
|
+
( localize(4950, "View Type")),
|
|
123
|
+
( localize(4951, "Priority")),
|
|
124
|
+
( localize(4952, "Filename Pattern")),
|
|
125
125
|
];
|
|
126
126
|
const rows = ( customEditors
|
|
127
127
|
.map(customEditor => {
|
|
@@ -142,7 +142,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
142
142
|
}
|
|
143
143
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
144
144
|
id: 'customEditors',
|
|
145
|
-
label: ( localize(
|
|
145
|
+
label: ( localize(4953, "Custom Editors")),
|
|
146
146
|
access: {
|
|
147
147
|
canToggle: false
|
|
148
148
|
},
|
|
@@ -178,8 +178,8 @@ let LanguageStatus = class LanguageStatus {
|
|
|
178
178
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
179
179
|
}
|
|
180
180
|
const props = {
|
|
181
|
-
name: ( localize(
|
|
182
|
-
ariaLabel: ( localize(
|
|
181
|
+
name: ( localize(6955, "Editor Language Status")),
|
|
182
|
+
ariaLabel: ( localize(6956, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
|
|
183
183
|
tooltip: element,
|
|
184
184
|
command: ShowTooltipCommand,
|
|
185
185
|
text: isOneBusy ? '$(loading~spin)' : text,
|
|
@@ -276,7 +276,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
276
276
|
}, { hoverDelegate: nativeHoverDelegate }, this._hoverService, this._openerService)));
|
|
277
277
|
}
|
|
278
278
|
const actionBar = ( new ActionBar(right, { hoverDelegate: nativeHoverDelegate }));
|
|
279
|
-
const actionLabel = isPinned ? ( localize(
|
|
279
|
+
const actionLabel = isPinned ? ( localize(6957, "Remove from Status Bar")) : ( localize(6958, "Add to Status Bar"));
|
|
280
280
|
actionBar.setAriaLabel(actionLabel);
|
|
281
281
|
store.add(actionBar);
|
|
282
282
|
let action;
|
|
@@ -331,10 +331,10 @@ let LanguageStatus = class LanguageStatus {
|
|
|
331
331
|
}
|
|
332
332
|
const textValue = typeof status.label === 'string' ? status.label : status.label.value;
|
|
333
333
|
if (status.detail) {
|
|
334
|
-
return { label: ( localize(
|
|
334
|
+
return { label: ( localize(6959, '{0}, {1}', textValue, status.detail)) };
|
|
335
335
|
}
|
|
336
336
|
else {
|
|
337
|
-
return { label: ( localize(
|
|
337
|
+
return { label: ( localize(6960, '{0}', textValue)) };
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
static _asStatusbarEntry(item) {
|
|
@@ -347,7 +347,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
347
347
|
}
|
|
348
348
|
const textValue = typeof item.label === 'string' ? item.label : item.label.shortValue;
|
|
349
349
|
return {
|
|
350
|
-
name: ( localize(
|
|
350
|
+
name: ( localize(6961, '{0} (Language Status)', item.name)),
|
|
351
351
|
text: computeText(textValue, item.busy),
|
|
352
352
|
ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
|
|
353
353
|
role: item.accessibilityInfo?.role,
|
|
@@ -369,7 +369,7 @@ class ResetAction extends Action2 {
|
|
|
369
369
|
constructor() {
|
|
370
370
|
super({
|
|
371
371
|
id: 'editor.inlayHints.Reset',
|
|
372
|
-
title: ( localize2(
|
|
372
|
+
title: ( localize2(6962, "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
|
@@ -13,7 +13,7 @@ import { FoldingController } from '@codingame/monaco-vscode-api/vscode/vs/editor
|
|
|
13
13
|
import { ColorDetector } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/colorPicker/browser/colorDetector';
|
|
14
14
|
|
|
15
15
|
const openSettingsCommand = 'workbench.action.openSettings';
|
|
16
|
-
const configureSettingsLabel = ( localize(
|
|
16
|
+
const configureSettingsLabel = ( localize(6963, "Configure"));
|
|
17
17
|
let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
|
|
18
18
|
constructor(editorService, languageStatusService) {
|
|
19
19
|
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(6964, 'Color Decorator Status'));
|
|
45
|
+
this.label = ( localize(6965, 'Color Decorators'));
|
|
46
|
+
this.source = ( localize(6966, '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(6967, 'Folding Status'));
|
|
57
|
+
this.label = ( localize(6968, 'Folding Ranges'));
|
|
58
|
+
this.source = ( localize(6969, '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.Warning,
|
|
99
99
|
label: this.accessor.label,
|
|
100
|
-
detail: ( localize(
|
|
100
|
+
detail: ( localize(6970, '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,
|
|
@@ -56,7 +56,7 @@ class OpenMergeEditor extends Action2 {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super({
|
|
58
58
|
id: '_open.mergeEditor',
|
|
59
|
-
title: ( localize2(
|
|
59
|
+
title: ( localize2(7160, 'Open Merge Editor')),
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
run(accessor, ...args) {
|
|
@@ -127,7 +127,7 @@ class SetMixedLayout extends Action2 {
|
|
|
127
127
|
constructor() {
|
|
128
128
|
super({
|
|
129
129
|
id: 'merge.mixedLayout',
|
|
130
|
-
title: ( localize2(
|
|
130
|
+
title: ( localize2(7161, "Mixed Layout")),
|
|
131
131
|
toggled: ( ctxMergeEditorLayout.isEqualTo('mixed')),
|
|
132
132
|
menu: [
|
|
133
133
|
{
|
|
@@ -151,7 +151,7 @@ class SetColumnLayout extends Action2 {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: 'merge.columnLayout',
|
|
154
|
-
title: ( localize2(
|
|
154
|
+
title: ( localize2(7162, 'Column Layout')),
|
|
155
155
|
toggled: ( ctxMergeEditorLayout.isEqualTo('columns')),
|
|
156
156
|
menu: [{
|
|
157
157
|
id: MenuId.EditorTitle,
|
|
@@ -173,7 +173,7 @@ class ShowNonConflictingChanges extends Action2 {
|
|
|
173
173
|
constructor() {
|
|
174
174
|
super({
|
|
175
175
|
id: 'merge.showNonConflictingChanges',
|
|
176
|
-
title: ( localize2(
|
|
176
|
+
title: ( localize2(7163, "Show Non-Conflicting Changes")),
|
|
177
177
|
toggled: ( ctxMergeEditorShowNonConflictingChanges.isEqualTo(true)),
|
|
178
178
|
menu: [
|
|
179
179
|
{
|
|
@@ -197,7 +197,7 @@ class ShowHideBase extends Action2 {
|
|
|
197
197
|
constructor() {
|
|
198
198
|
super({
|
|
199
199
|
id: 'merge.showBase',
|
|
200
|
-
title: ( localize2(
|
|
200
|
+
title: ( localize2(7164, "Show Base")),
|
|
201
201
|
toggled: ( ctxMergeEditorShowBase.isEqualTo(true)),
|
|
202
202
|
menu: [
|
|
203
203
|
{
|
|
@@ -220,7 +220,7 @@ class ShowHideTopBase extends Action2 {
|
|
|
220
220
|
constructor() {
|
|
221
221
|
super({
|
|
222
222
|
id: 'merge.showBaseTop',
|
|
223
|
-
title: ( localize2(
|
|
223
|
+
title: ( localize2(7165, "Show Base Top")),
|
|
224
224
|
toggled: ( ContextKeyExpr.and(ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop)),
|
|
225
225
|
menu: [
|
|
226
226
|
{
|
|
@@ -243,7 +243,7 @@ class ShowHideCenterBase extends Action2 {
|
|
|
243
243
|
constructor() {
|
|
244
244
|
super({
|
|
245
245
|
id: 'merge.showBaseCenter',
|
|
246
|
-
title: ( localize2(
|
|
246
|
+
title: ( localize2(7166, "Show Base Center")),
|
|
247
247
|
toggled: ( ContextKeyExpr.and(ctxMergeEditorShowBase, ( ctxMergeEditorShowBaseAtTop.negate()))),
|
|
248
248
|
menu: [
|
|
249
249
|
{
|
|
@@ -262,13 +262,13 @@ class ShowHideCenterBase extends Action2 {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
const mergeEditorCategory = ( localize2(
|
|
265
|
+
const mergeEditorCategory = ( localize2(7167, "Merge Editor"));
|
|
266
266
|
class OpenResultResource extends MergeEditorAction {
|
|
267
267
|
constructor() {
|
|
268
268
|
super({
|
|
269
269
|
id: 'merge.openResult',
|
|
270
270
|
icon: Codicon.goToFile,
|
|
271
|
-
title: ( localize2(
|
|
271
|
+
title: ( localize2(7168, "Open File")),
|
|
272
272
|
category: mergeEditorCategory,
|
|
273
273
|
menu: [{
|
|
274
274
|
id: MenuId.EditorTitle,
|
|
@@ -289,7 +289,7 @@ class GoToNextUnhandledConflict extends MergeEditorAction {
|
|
|
289
289
|
super({
|
|
290
290
|
id: 'merge.goToNextUnhandledConflict',
|
|
291
291
|
category: mergeEditorCategory,
|
|
292
|
-
title: ( localize2(
|
|
292
|
+
title: ( localize2(7169, "Go to Next Unhandled Conflict")),
|
|
293
293
|
icon: Codicon.arrowDown,
|
|
294
294
|
menu: [
|
|
295
295
|
{
|
|
@@ -313,7 +313,7 @@ class GoToPreviousUnhandledConflict extends MergeEditorAction {
|
|
|
313
313
|
super({
|
|
314
314
|
id: 'merge.goToPreviousUnhandledConflict',
|
|
315
315
|
category: mergeEditorCategory,
|
|
316
|
-
title: ( localize2(
|
|
316
|
+
title: ( localize2(7170, "Go to Previous Unhandled Conflict")),
|
|
317
317
|
icon: Codicon.arrowUp,
|
|
318
318
|
menu: [
|
|
319
319
|
{
|
|
@@ -337,7 +337,7 @@ class ToggleActiveConflictInput1 extends MergeEditorAction {
|
|
|
337
337
|
super({
|
|
338
338
|
id: 'merge.toggleActiveConflictInput1',
|
|
339
339
|
category: mergeEditorCategory,
|
|
340
|
-
title: ( localize2(
|
|
340
|
+
title: ( localize2(7171, "Toggle Current Conflict from Left")),
|
|
341
341
|
f1: true,
|
|
342
342
|
precondition: ctxIsMergeEditor,
|
|
343
343
|
});
|
|
@@ -351,7 +351,7 @@ class ToggleActiveConflictInput2 extends MergeEditorAction {
|
|
|
351
351
|
super({
|
|
352
352
|
id: 'merge.toggleActiveConflictInput2',
|
|
353
353
|
category: mergeEditorCategory,
|
|
354
|
-
title: ( localize2(
|
|
354
|
+
title: ( localize2(7172, "Toggle Current Conflict from Right")),
|
|
355
355
|
f1: true,
|
|
356
356
|
precondition: ctxIsMergeEditor,
|
|
357
357
|
});
|
|
@@ -365,8 +365,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
|
|
|
365
365
|
super({
|
|
366
366
|
id: 'mergeEditor.compareInput1WithBase',
|
|
367
367
|
category: mergeEditorCategory,
|
|
368
|
-
title: ( localize2(
|
|
369
|
-
shortTitle: ( localize(
|
|
368
|
+
title: ( localize2(7173, "Compare Input 1 With Base")),
|
|
369
|
+
shortTitle: ( localize(7174, 'Compare With Base')),
|
|
370
370
|
f1: true,
|
|
371
371
|
precondition: ctxIsMergeEditor,
|
|
372
372
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -383,8 +383,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
|
|
|
383
383
|
super({
|
|
384
384
|
id: 'mergeEditor.compareInput2WithBase',
|
|
385
385
|
category: mergeEditorCategory,
|
|
386
|
-
title: ( localize2(
|
|
387
|
-
shortTitle: ( localize(
|
|
386
|
+
title: ( localize2(7175, "Compare Input 2 With Base")),
|
|
387
|
+
shortTitle: ( localize(7174, 'Compare With Base')),
|
|
388
388
|
f1: true,
|
|
389
389
|
precondition: ctxIsMergeEditor,
|
|
390
390
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -420,7 +420,7 @@ class OpenBaseFile extends MergeEditorAction {
|
|
|
420
420
|
super({
|
|
421
421
|
id: 'merge.openBaseEditor',
|
|
422
422
|
category: mergeEditorCategory,
|
|
423
|
-
title: ( localize2(
|
|
423
|
+
title: ( localize2(7176, "Open Base File")),
|
|
424
424
|
f1: true,
|
|
425
425
|
precondition: ctxIsMergeEditor,
|
|
426
426
|
});
|
|
@@ -435,7 +435,7 @@ class AcceptAllInput1 extends MergeEditorAction {
|
|
|
435
435
|
super({
|
|
436
436
|
id: 'merge.acceptAllInput1',
|
|
437
437
|
category: mergeEditorCategory,
|
|
438
|
-
title: ( localize2(
|
|
438
|
+
title: ( localize2(7177, "Accept All Changes from Left")),
|
|
439
439
|
f1: true,
|
|
440
440
|
precondition: ctxIsMergeEditor,
|
|
441
441
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -451,7 +451,7 @@ class AcceptAllInput2 extends MergeEditorAction {
|
|
|
451
451
|
super({
|
|
452
452
|
id: 'merge.acceptAllInput2',
|
|
453
453
|
category: mergeEditorCategory,
|
|
454
|
-
title: ( localize2(
|
|
454
|
+
title: ( localize2(7178, "Accept All Changes from Right")),
|
|
455
455
|
f1: true,
|
|
456
456
|
precondition: ctxIsMergeEditor,
|
|
457
457
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -467,8 +467,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
|
|
|
467
467
|
super({
|
|
468
468
|
id: 'mergeEditor.resetResultToBaseAndAutoMerge',
|
|
469
469
|
category: mergeEditorCategory,
|
|
470
|
-
title: ( localize2(
|
|
471
|
-
shortTitle: ( localize(
|
|
470
|
+
title: ( localize2(7179, "Reset Result")),
|
|
471
|
+
shortTitle: ( localize(7180, 'Reset')),
|
|
472
472
|
f1: true,
|
|
473
473
|
precondition: ctxIsMergeEditor,
|
|
474
474
|
menu: { id: MenuId.MergeInputResultToolbar, group: 'primary' },
|
|
@@ -484,7 +484,7 @@ class ResetCloseWithConflictsChoice extends Action2 {
|
|
|
484
484
|
super({
|
|
485
485
|
id: 'mergeEditor.resetCloseWithConflictsChoice',
|
|
486
486
|
category: mergeEditorCategory,
|
|
487
|
-
title: ( localize2(
|
|
487
|
+
title: ( localize2(7181, "Reset Choice for \'Close with Conflicts\'")),
|
|
488
488
|
f1: true,
|
|
489
489
|
});
|
|
490
490
|
}
|
|
@@ -497,7 +497,7 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
497
497
|
super({
|
|
498
498
|
id: 'mergeEditor.acceptMerge',
|
|
499
499
|
category: mergeEditorCategory,
|
|
500
|
-
title: ( localize2(
|
|
500
|
+
title: ( localize2(7182, "Complete Merge")),
|
|
501
501
|
f1: false,
|
|
502
502
|
precondition: ctxIsMergeEditor
|
|
503
503
|
});
|
|
@@ -508,12 +508,12 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
508
508
|
if (viewModel.model.unhandledConflictsCount.get() > 0) {
|
|
509
509
|
const { confirmed } = await dialogService.confirm({
|
|
510
510
|
message: ( localize(
|
|
511
|
-
|
|
511
|
+
7183,
|
|
512
512
|
"Do you want to complete the merge of {0}?",
|
|
513
513
|
basename(inputModel.resultUri)
|
|
514
514
|
)),
|
|
515
|
-
detail: ( localize(
|
|
516
|
-
primaryButton: ( localize(
|
|
515
|
+
detail: ( localize(7184, "The file contains unhandled conflicts.")),
|
|
516
|
+
primaryButton: ( localize(7185, "&&Complete with Conflicts"))
|
|
517
517
|
});
|
|
518
518
|
if (!confirmed) {
|
|
519
519
|
return {
|