@codingame/monaco-vscode-view-common-service-override 23.1.0 → 23.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -3
- package/package.json +41 -41
- package/vscode/src/vs/workbench/browser/actions/helpActions.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/helpActions.js +339 -0
- 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 +166 -166
- 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.d.ts +1 -1
- 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 +29 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +7 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +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 +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 +6 -6
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +1 -1
- 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 +10 -10
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +8 -8
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +1 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +1 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +5 -5
|
@@ -27,22 +27,22 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
27
27
|
static { this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
28
28
|
{
|
|
29
29
|
id: 'workbench.input.interactive',
|
|
30
|
-
label: ( localize(
|
|
30
|
+
label: ( localize(3353, 'Interactive Window')),
|
|
31
31
|
priority: RegisteredEditorPriority.builtin
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
id: 'mainThreadWebview-markdown.preview',
|
|
35
|
-
label: ( localize(
|
|
35
|
+
label: ( localize(3354, "Markdown Preview")),
|
|
36
36
|
priority: RegisteredEditorPriority.builtin
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
id: 'mainThreadWebview-simpleBrowser.view',
|
|
40
|
-
label: ( localize(
|
|
40
|
+
label: ( localize(3355, "Simple Browser")),
|
|
41
41
|
priority: RegisteredEditorPriority.builtin
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
id: 'mainThreadWebview-browserPreview',
|
|
45
|
-
label: ( localize(
|
|
45
|
+
label: ( localize(3356, "Live Preview")),
|
|
46
46
|
priority: RegisteredEditorPriority.builtin
|
|
47
47
|
}
|
|
48
48
|
]; }
|
|
@@ -87,7 +87,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
87
87
|
'workbench.editor.autoLockGroups': {
|
|
88
88
|
type: 'object',
|
|
89
89
|
description: ( localize(
|
|
90
|
-
|
|
90
|
+
3357,
|
|
91
91
|
"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."
|
|
92
92
|
)),
|
|
93
93
|
properties: autoLockGroupConfiguration,
|
|
@@ -105,7 +105,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
105
105
|
default: '',
|
|
106
106
|
enum: [...binaryEditorCandidates, ''],
|
|
107
107
|
description: ( localize(
|
|
108
|
-
|
|
108
|
+
3358,
|
|
109
109
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
110
110
|
)),
|
|
111
111
|
}
|
|
@@ -118,7 +118,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
118
118
|
'workbench.editorAssociations': {
|
|
119
119
|
type: 'object',
|
|
120
120
|
markdownDescription: ( localize(
|
|
121
|
-
|
|
121
|
+
3359,
|
|
122
122
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
123
123
|
)),
|
|
124
124
|
patternProperties: {
|
|
@@ -140,7 +140,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
140
140
|
minimum: 1,
|
|
141
141
|
scope: ConfigurationScope.RESOURCE,
|
|
142
142
|
markdownDescription: ( localize(
|
|
143
|
-
|
|
143
|
+
3360,
|
|
144
144
|
"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."
|
|
145
145
|
)),
|
|
146
146
|
}
|
|
@@ -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(4506, 'Whether a call hierarchy provider is available'))));
|
|
28
|
+
const _ctxCallHierarchyVisible = ( new RawContextKey('callHierarchyVisible', false, ( localize(4507, '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(4508, '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(4509, "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(4510, "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(4511, '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(4512, 'Show Incoming Calls')),
|
|
180
|
+
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4513, '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(4514, 'Show Outgoing Calls')),
|
|
202
|
+
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4515, '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(4516, '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(4517, 'Close')),
|
|
240
240
|
icon: Codicon.close,
|
|
241
241
|
precondition: _ctxCallHierarchyVisible,
|
|
242
242
|
keybinding: {
|
|
@@ -270,13 +270,13 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
270
270
|
}
|
|
271
271
|
this._previewDisposable.add(value);
|
|
272
272
|
const title = this._direction === CallHierarchyDirection.CallsFrom
|
|
273
|
-
? ( localize(
|
|
274
|
-
: ( localize(
|
|
273
|
+
? ( localize(4518, "Calls from '{0}'", element.model.root.name))
|
|
274
|
+
: ( localize(4519, "Callers of '{0}'", element.model.root.name));
|
|
275
275
|
this.setTitle(title);
|
|
276
276
|
}
|
|
277
277
|
showLoading() {
|
|
278
278
|
this._parent.dataset['state'] = State.Loading;
|
|
279
|
-
this.setTitle(( localize(
|
|
279
|
+
this.setTitle(( localize(4520, "Loading...")));
|
|
280
280
|
this._show();
|
|
281
281
|
}
|
|
282
282
|
showMessage(message) {
|
|
@@ -295,8 +295,8 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
295
295
|
await this._tree.expand(root.element);
|
|
296
296
|
if (root.children.length === 0) {
|
|
297
297
|
this.showMessage(this._direction === CallHierarchyDirection.CallsFrom
|
|
298
|
-
? ( localize(
|
|
299
|
-
: ( localize(
|
|
298
|
+
? ( localize(4521, "No calls from '{0}'", model.root.name))
|
|
299
|
+
: ( localize(4522, "No callers of '{0}'", model.root.name)));
|
|
300
300
|
}
|
|
301
301
|
else {
|
|
302
302
|
this._parent.dataset['state'] = State.Data;
|
|
@@ -108,14 +108,14 @@ class AccessibilityProvider {
|
|
|
108
108
|
this.getDirection = getDirection;
|
|
109
109
|
}
|
|
110
110
|
getWidgetAriaLabel() {
|
|
111
|
-
return localize(
|
|
111
|
+
return localize(4523, "Call Hierarchy");
|
|
112
112
|
}
|
|
113
113
|
getAriaLabel(element) {
|
|
114
114
|
if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
|
|
115
|
-
return localize(
|
|
115
|
+
return localize(4524, "calls from {0}", element.item.name);
|
|
116
116
|
}
|
|
117
117
|
else {
|
|
118
|
-
return localize(
|
|
118
|
+
return localize(4525, "callers of {0}", element.item.name);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -8,7 +8,7 @@ import { ICustomEditorService } from "@codingame/monaco-vscode-api/vscode/vs/wor
|
|
|
8
8
|
import { IWebviewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
9
9
|
import { DeserializedWebview, SerializedWebview, SerializedWebviewOptions, WebviewEditorInputSerializer } from "../../webviewPanel/browser/webviewEditorInputSerializer.js";
|
|
10
10
|
import { IWebviewWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
11
|
-
import { IWorkingCopyBackupMeta, IWorkingCopyIdentifier } from "@codingame/monaco-vscode-
|
|
11
|
+
import { IWorkingCopyBackupMeta, IWorkingCopyIdentifier } from "@codingame/monaco-vscode-1f37b5fb-f500-54d2-b98a-d12d100cafca-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
12
12
|
import { IWorkingCopyBackupService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.service";
|
|
13
13
|
import { IWorkingCopyEditorHandler } from "@codingame/monaco-vscode-working-copy-service-override/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService";
|
|
14
14
|
import { IWorkingCopyEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service";
|
|
@@ -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-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
11
|
-
import { WebviewContentPurpose } from '@codingame/monaco-vscode-
|
|
11
|
+
import { WebviewContentPurpose } from '@codingame/monaco-vscode-08fd81c0-7fd8-5f7c-9776-f918dd532714-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, restoreWebviewContentOptions, restoreWebviewOptions } 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(6282, "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(6283, "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;
|
|
@@ -27,20 +27,20 @@ const customEditorsContributionSchema = {
|
|
|
27
27
|
[Fields.viewType]: {
|
|
28
28
|
type: 'string',
|
|
29
29
|
markdownDescription: ( localize(
|
|
30
|
-
|
|
30
|
+
6285,
|
|
31
31
|
'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).'
|
|
32
32
|
)),
|
|
33
33
|
},
|
|
34
34
|
[Fields.displayName]: {
|
|
35
35
|
type: 'string',
|
|
36
36
|
description: ( localize(
|
|
37
|
-
|
|
37
|
+
6286,
|
|
38
38
|
'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'
|
|
39
39
|
)),
|
|
40
40
|
},
|
|
41
41
|
[Fields.selector]: {
|
|
42
42
|
type: 'array',
|
|
43
|
-
description: ( localize(
|
|
43
|
+
description: ( localize(6287, 'Set of globs that the custom editor is enabled for.')),
|
|
44
44
|
items: {
|
|
45
45
|
type: 'object',
|
|
46
46
|
defaultSnippets: [{
|
|
@@ -52,7 +52,7 @@ const customEditorsContributionSchema = {
|
|
|
52
52
|
properties: {
|
|
53
53
|
filenamePattern: {
|
|
54
54
|
type: 'string',
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(6288, 'Glob that the custom editor is enabled for.')),
|
|
56
56
|
},
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -60,7 +60,7 @@ const customEditorsContributionSchema = {
|
|
|
60
60
|
[Fields.priority]: {
|
|
61
61
|
type: 'string',
|
|
62
62
|
markdownDeprecationMessage: ( localize(
|
|
63
|
-
|
|
63
|
+
6289,
|
|
64
64
|
'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.'
|
|
65
65
|
)),
|
|
66
66
|
enum: [
|
|
@@ -69,11 +69,11 @@ const customEditorsContributionSchema = {
|
|
|
69
69
|
],
|
|
70
70
|
markdownEnumDescriptions: [
|
|
71
71
|
( localize(
|
|
72
|
-
|
|
72
|
+
6290,
|
|
73
73
|
'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
|
|
74
74
|
)),
|
|
75
75
|
( localize(
|
|
76
|
-
|
|
76
|
+
6291,
|
|
77
77
|
'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.'
|
|
78
78
|
)),
|
|
79
79
|
],
|
|
@@ -85,7 +85,7 @@ const customEditorsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
85
85
|
extensionPoint: 'customEditors',
|
|
86
86
|
deps: [languagesExtPoint],
|
|
87
87
|
jsonSchema: {
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(6292, 'Contributed custom editors.')),
|
|
89
89
|
type: 'array',
|
|
90
90
|
defaultSnippets: [{
|
|
91
91
|
body: [{
|
|
@@ -121,9 +121,9 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
121
121
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
122
122
|
}
|
|
123
123
|
const headers = [
|
|
124
|
-
( localize(
|
|
125
|
-
( localize(
|
|
126
|
-
( localize(
|
|
124
|
+
( localize(6293, "View Type")),
|
|
125
|
+
( localize(6294, "Priority")),
|
|
126
|
+
( localize(6295, "Filename Pattern")),
|
|
127
127
|
];
|
|
128
128
|
const rows = ( customEditors
|
|
129
129
|
.map(customEditor => {
|
|
@@ -144,7 +144,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
144
144
|
}
|
|
145
145
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
146
146
|
id: 'customEditors',
|
|
147
|
-
label: ( localize(
|
|
147
|
+
label: ( localize(6296, "Custom Editors")),
|
|
148
148
|
access: {
|
|
149
149
|
canToggle: false
|
|
150
150
|
},
|
|
@@ -180,8 +180,8 @@ let LanguageStatus = class LanguageStatus {
|
|
|
180
180
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
181
181
|
}
|
|
182
182
|
const props = {
|
|
183
|
-
name: ( localize(
|
|
184
|
-
ariaLabel: ( localize(
|
|
183
|
+
name: ( localize(8357, "Editor Language Status")),
|
|
184
|
+
ariaLabel: ( localize(8358, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
|
|
185
185
|
tooltip: this._combinedEntryTooltip,
|
|
186
186
|
command: ShowTooltipCommand,
|
|
187
187
|
text: isOneBusy ? '$(loading~spin)' : text,
|
|
@@ -274,7 +274,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
274
274
|
}, { hoverDelegate: nativeHoverDelegate }, this._hoverService, this._openerService)));
|
|
275
275
|
}
|
|
276
276
|
const actionBar = ( new ActionBar(right, { hoverDelegate: nativeHoverDelegate }));
|
|
277
|
-
const actionLabel = isPinned ? ( localize(
|
|
277
|
+
const actionLabel = isPinned ? ( localize(8359, "Remove from Status Bar")) : ( localize(8360, "Add to Status Bar"));
|
|
278
278
|
actionBar.setAriaLabel(actionLabel);
|
|
279
279
|
store.add(actionBar);
|
|
280
280
|
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(8361, '{0}, {1}', textValue, status.detail)) };
|
|
338
338
|
}
|
|
339
339
|
else {
|
|
340
|
-
return { label: ( localize(
|
|
340
|
+
return { label: ( localize(8362, '{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(8363, '{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,
|
|
@@ -372,7 +372,7 @@ class ResetAction extends Action2 {
|
|
|
372
372
|
constructor() {
|
|
373
373
|
super({
|
|
374
374
|
id: 'editor.inlayHints.Reset',
|
|
375
|
-
title: ( localize2(
|
|
375
|
+
title: ( localize2(8364, "Reset Language Status Interaction Counter")),
|
|
376
376
|
category: Categories.View,
|
|
377
377
|
f1: true
|
|
378
378
|
});
|
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(8365, "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(8366, 'Color Decorator Status'));
|
|
45
|
+
this.label = ( localize(8367, 'Color decorators'));
|
|
46
|
+
this.source = ( localize(8368, '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(8369, 'Folding Status'));
|
|
57
|
+
this.label = ( localize(8370, 'Folding ranges'));
|
|
58
|
+
this.source = ( localize(8371, '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(8372, '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,
|
|
@@ -61,7 +61,7 @@ class OpenMergeEditor extends Action2 {
|
|
|
61
61
|
constructor() {
|
|
62
62
|
super({
|
|
63
63
|
id: '_open.mergeEditor',
|
|
64
|
-
title: ( localize2(
|
|
64
|
+
title: ( localize2(8911, 'Open Merge Editor')),
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
run(accessor, ...args) {
|
|
@@ -132,7 +132,7 @@ class SetMixedLayout extends Action2 {
|
|
|
132
132
|
constructor() {
|
|
133
133
|
super({
|
|
134
134
|
id: 'merge.mixedLayout',
|
|
135
|
-
title: ( localize2(
|
|
135
|
+
title: ( localize2(8912, "Mixed Layout")),
|
|
136
136
|
toggled: ( ctxMergeEditorLayout.isEqualTo('mixed')),
|
|
137
137
|
menu: [
|
|
138
138
|
{
|
|
@@ -156,7 +156,7 @@ class SetColumnLayout extends Action2 {
|
|
|
156
156
|
constructor() {
|
|
157
157
|
super({
|
|
158
158
|
id: 'merge.columnLayout',
|
|
159
|
-
title: ( localize2(
|
|
159
|
+
title: ( localize2(8913, 'Column Layout')),
|
|
160
160
|
toggled: ( ctxMergeEditorLayout.isEqualTo('columns')),
|
|
161
161
|
menu: [{
|
|
162
162
|
id: MenuId.EditorTitle,
|
|
@@ -178,7 +178,7 @@ class ShowNonConflictingChanges extends Action2 {
|
|
|
178
178
|
constructor() {
|
|
179
179
|
super({
|
|
180
180
|
id: 'merge.showNonConflictingChanges',
|
|
181
|
-
title: ( localize2(
|
|
181
|
+
title: ( localize2(8914, "Show Non-Conflicting Changes")),
|
|
182
182
|
toggled: ( ctxMergeEditorShowNonConflictingChanges.isEqualTo(true)),
|
|
183
183
|
menu: [
|
|
184
184
|
{
|
|
@@ -202,7 +202,7 @@ class ShowHideBase extends Action2 {
|
|
|
202
202
|
constructor() {
|
|
203
203
|
super({
|
|
204
204
|
id: 'merge.showBase',
|
|
205
|
-
title: ( localize2(
|
|
205
|
+
title: ( localize2(8915, "Show Base")),
|
|
206
206
|
toggled: ( ctxMergeEditorShowBase.isEqualTo(true)),
|
|
207
207
|
menu: [
|
|
208
208
|
{
|
|
@@ -225,7 +225,7 @@ class ShowHideTopBase extends Action2 {
|
|
|
225
225
|
constructor() {
|
|
226
226
|
super({
|
|
227
227
|
id: 'merge.showBaseTop',
|
|
228
|
-
title: ( localize2(
|
|
228
|
+
title: ( localize2(8916, "Show Base Top")),
|
|
229
229
|
toggled: ( ContextKeyExpr.and(ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop)),
|
|
230
230
|
menu: [
|
|
231
231
|
{
|
|
@@ -248,7 +248,7 @@ class ShowHideCenterBase extends Action2 {
|
|
|
248
248
|
constructor() {
|
|
249
249
|
super({
|
|
250
250
|
id: 'merge.showBaseCenter',
|
|
251
|
-
title: ( localize2(
|
|
251
|
+
title: ( localize2(8917, "Show Base Center")),
|
|
252
252
|
toggled: ( ContextKeyExpr.and(ctxMergeEditorShowBase, ( ctxMergeEditorShowBaseAtTop.negate()))),
|
|
253
253
|
menu: [
|
|
254
254
|
{
|
|
@@ -267,13 +267,13 @@ class ShowHideCenterBase extends Action2 {
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
const mergeEditorCategory = ( localize2(
|
|
270
|
+
const mergeEditorCategory = ( localize2(8918, "Merge Editor"));
|
|
271
271
|
class OpenResultResource extends MergeEditorAction {
|
|
272
272
|
constructor() {
|
|
273
273
|
super({
|
|
274
274
|
id: 'merge.openResult',
|
|
275
275
|
icon: Codicon.goToFile,
|
|
276
|
-
title: ( localize2(
|
|
276
|
+
title: ( localize2(8919, "Open File")),
|
|
277
277
|
category: mergeEditorCategory,
|
|
278
278
|
menu: [{
|
|
279
279
|
id: MenuId.EditorTitle,
|
|
@@ -294,7 +294,7 @@ class GoToNextUnhandledConflict extends MergeEditorAction {
|
|
|
294
294
|
super({
|
|
295
295
|
id: 'merge.goToNextUnhandledConflict',
|
|
296
296
|
category: mergeEditorCategory,
|
|
297
|
-
title: ( localize2(
|
|
297
|
+
title: ( localize2(8920, "Go to Next Unhandled Conflict")),
|
|
298
298
|
icon: Codicon.arrowDown,
|
|
299
299
|
menu: [
|
|
300
300
|
{
|
|
@@ -318,7 +318,7 @@ class GoToPreviousUnhandledConflict extends MergeEditorAction {
|
|
|
318
318
|
super({
|
|
319
319
|
id: 'merge.goToPreviousUnhandledConflict',
|
|
320
320
|
category: mergeEditorCategory,
|
|
321
|
-
title: ( localize2(
|
|
321
|
+
title: ( localize2(8921, "Go to Previous Unhandled Conflict")),
|
|
322
322
|
icon: Codicon.arrowUp,
|
|
323
323
|
menu: [
|
|
324
324
|
{
|
|
@@ -342,7 +342,7 @@ class ToggleActiveConflictInput1 extends MergeEditorAction {
|
|
|
342
342
|
super({
|
|
343
343
|
id: 'merge.toggleActiveConflictInput1',
|
|
344
344
|
category: mergeEditorCategory,
|
|
345
|
-
title: ( localize2(
|
|
345
|
+
title: ( localize2(8922, "Toggle Current Conflict from Left")),
|
|
346
346
|
f1: true,
|
|
347
347
|
precondition: ctxIsMergeEditor,
|
|
348
348
|
});
|
|
@@ -356,7 +356,7 @@ class ToggleActiveConflictInput2 extends MergeEditorAction {
|
|
|
356
356
|
super({
|
|
357
357
|
id: 'merge.toggleActiveConflictInput2',
|
|
358
358
|
category: mergeEditorCategory,
|
|
359
|
-
title: ( localize2(
|
|
359
|
+
title: ( localize2(8923, "Toggle Current Conflict from Right")),
|
|
360
360
|
f1: true,
|
|
361
361
|
precondition: ctxIsMergeEditor,
|
|
362
362
|
});
|
|
@@ -370,8 +370,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
|
|
|
370
370
|
super({
|
|
371
371
|
id: 'mergeEditor.compareInput1WithBase',
|
|
372
372
|
category: mergeEditorCategory,
|
|
373
|
-
title: ( localize2(
|
|
374
|
-
shortTitle: ( localize(
|
|
373
|
+
title: ( localize2(8924, "Compare Input 1 With Base")),
|
|
374
|
+
shortTitle: ( localize(8925, 'Compare With Base')),
|
|
375
375
|
f1: true,
|
|
376
376
|
precondition: ctxIsMergeEditor,
|
|
377
377
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -388,8 +388,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
|
|
|
388
388
|
super({
|
|
389
389
|
id: 'mergeEditor.compareInput2WithBase',
|
|
390
390
|
category: mergeEditorCategory,
|
|
391
|
-
title: ( localize2(
|
|
392
|
-
shortTitle: ( localize(
|
|
391
|
+
title: ( localize2(8926, "Compare Input 2 With Base")),
|
|
392
|
+
shortTitle: ( localize(8925, 'Compare With Base')),
|
|
393
393
|
f1: true,
|
|
394
394
|
precondition: ctxIsMergeEditor,
|
|
395
395
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -425,7 +425,7 @@ class OpenBaseFile extends MergeEditorAction {
|
|
|
425
425
|
super({
|
|
426
426
|
id: 'merge.openBaseEditor',
|
|
427
427
|
category: mergeEditorCategory,
|
|
428
|
-
title: ( localize2(
|
|
428
|
+
title: ( localize2(8927, "Open Base File")),
|
|
429
429
|
f1: true,
|
|
430
430
|
precondition: ctxIsMergeEditor,
|
|
431
431
|
});
|
|
@@ -440,7 +440,7 @@ class AcceptAllInput1 extends MergeEditorAction {
|
|
|
440
440
|
super({
|
|
441
441
|
id: 'merge.acceptAllInput1',
|
|
442
442
|
category: mergeEditorCategory,
|
|
443
|
-
title: ( localize2(
|
|
443
|
+
title: ( localize2(8928, "Accept All Incoming Changes from Left")),
|
|
444
444
|
f1: true,
|
|
445
445
|
precondition: ctxIsMergeEditor,
|
|
446
446
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -456,7 +456,7 @@ class AcceptAllInput2 extends MergeEditorAction {
|
|
|
456
456
|
super({
|
|
457
457
|
id: 'merge.acceptAllInput2',
|
|
458
458
|
category: mergeEditorCategory,
|
|
459
|
-
title: ( localize2(
|
|
459
|
+
title: ( localize2(8929, "Accept All Current Changes from Right")),
|
|
460
460
|
f1: true,
|
|
461
461
|
precondition: ctxIsMergeEditor,
|
|
462
462
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -472,8 +472,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
|
|
|
472
472
|
super({
|
|
473
473
|
id: 'mergeEditor.resetResultToBaseAndAutoMerge',
|
|
474
474
|
category: mergeEditorCategory,
|
|
475
|
-
title: ( localize2(
|
|
476
|
-
shortTitle: ( localize(
|
|
475
|
+
title: ( localize2(8930, "Reset Result")),
|
|
476
|
+
shortTitle: ( localize(8931, 'Reset')),
|
|
477
477
|
f1: true,
|
|
478
478
|
precondition: ctxIsMergeEditor,
|
|
479
479
|
menu: { id: MenuId.MergeInputResultToolbar, group: 'primary' },
|
|
@@ -489,7 +489,7 @@ class ResetCloseWithConflictsChoice extends Action2 {
|
|
|
489
489
|
super({
|
|
490
490
|
id: 'mergeEditor.resetCloseWithConflictsChoice',
|
|
491
491
|
category: mergeEditorCategory,
|
|
492
|
-
title: ( localize2(
|
|
492
|
+
title: ( localize2(8932, "Reset Choice for \'Close with Conflicts\'")),
|
|
493
493
|
f1: true,
|
|
494
494
|
});
|
|
495
495
|
}
|
|
@@ -502,7 +502,7 @@ class AcceptAllCombination extends MergeEditorAction2 {
|
|
|
502
502
|
super({
|
|
503
503
|
id: 'mergeEditor.acceptAllCombination',
|
|
504
504
|
category: mergeEditorCategory,
|
|
505
|
-
title: ( localize2(
|
|
505
|
+
title: ( localize2(8933, "Accept All Combination")),
|
|
506
506
|
f1: true,
|
|
507
507
|
});
|
|
508
508
|
}
|
|
@@ -529,7 +529,7 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
529
529
|
super({
|
|
530
530
|
id: 'mergeEditor.acceptMerge',
|
|
531
531
|
category: mergeEditorCategory,
|
|
532
|
-
title: ( localize2(
|
|
532
|
+
title: ( localize2(8934, "Complete Merge")),
|
|
533
533
|
f1: true,
|
|
534
534
|
precondition: ctxIsMergeEditor,
|
|
535
535
|
keybinding: [
|
|
@@ -547,12 +547,12 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
547
547
|
if (viewModel.model.unhandledConflictsCount.get() > 0) {
|
|
548
548
|
const { confirmed } = await dialogService.confirm({
|
|
549
549
|
message: ( localize(
|
|
550
|
-
|
|
550
|
+
8935,
|
|
551
551
|
"Do you want to complete the merge of {0}?",
|
|
552
552
|
basename(inputModel.resultUri)
|
|
553
553
|
)),
|
|
554
|
-
detail: ( localize(
|
|
555
|
-
primaryButton: ( localize(
|
|
554
|
+
detail: ( localize(8936, "The file contains unhandled conflicts.")),
|
|
555
|
+
primaryButton: ( localize(8937, "&&Complete with Conflicts"))
|
|
556
556
|
});
|
|
557
557
|
if (!confirmed) {
|
|
558
558
|
return {
|
|
@@ -572,7 +572,7 @@ class ToggleBetweenInputs extends MergeEditorAction2 {
|
|
|
572
572
|
super({
|
|
573
573
|
id: 'mergeEditor.toggleBetweenInputs',
|
|
574
574
|
category: mergeEditorCategory,
|
|
575
|
-
title: ( localize2(
|
|
575
|
+
title: ( localize2(8938, "Toggle Between Merge Editor Inputs")),
|
|
576
576
|
f1: true,
|
|
577
577
|
precondition: ctxIsMergeEditor,
|
|
578
578
|
keybinding: [
|