@codingame/monaco-vscode-view-common-service-override 24.2.0 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +61 -77
- package/vscode/src/vs/workbench/browser/actions/helpActions.js +20 -20
- 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 +169 -167
- 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 +2 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +2 -4
- 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.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +7 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +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/webviewEditorInputSerializer.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +12 -4
- 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 +12 -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
|
@@ -26,22 +26,22 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
26
26
|
static { this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
27
27
|
{
|
|
28
28
|
id: 'workbench.input.interactive',
|
|
29
|
-
label: ( localize(
|
|
29
|
+
label: ( localize(3398, 'Interactive Window')),
|
|
30
30
|
priority: RegisteredEditorPriority.builtin
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
id: 'mainThreadWebview-markdown.preview',
|
|
34
|
-
label: ( localize(
|
|
34
|
+
label: ( localize(3399, "Markdown Preview")),
|
|
35
35
|
priority: RegisteredEditorPriority.builtin
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
id: 'mainThreadWebview-simpleBrowser.view',
|
|
39
|
-
label: ( localize(
|
|
39
|
+
label: ( localize(3400, "Simple Browser")),
|
|
40
40
|
priority: RegisteredEditorPriority.builtin
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
id: 'mainThreadWebview-browserPreview',
|
|
44
|
-
label: ( localize(
|
|
44
|
+
label: ( localize(3401, "Live Preview")),
|
|
45
45
|
priority: RegisteredEditorPriority.builtin
|
|
46
46
|
}
|
|
47
47
|
]; }
|
|
@@ -86,7 +86,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
86
86
|
'workbench.editor.autoLockGroups': {
|
|
87
87
|
type: 'object',
|
|
88
88
|
description: ( localize(
|
|
89
|
-
|
|
89
|
+
3402,
|
|
90
90
|
"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."
|
|
91
91
|
)),
|
|
92
92
|
properties: autoLockGroupConfiguration,
|
|
@@ -104,7 +104,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
104
104
|
default: '',
|
|
105
105
|
enum: [...binaryEditorCandidates, ''],
|
|
106
106
|
description: ( localize(
|
|
107
|
-
|
|
107
|
+
3403,
|
|
108
108
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
109
109
|
)),
|
|
110
110
|
}
|
|
@@ -117,7 +117,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
117
117
|
'workbench.editorAssociations': {
|
|
118
118
|
type: 'object',
|
|
119
119
|
markdownDescription: ( localize(
|
|
120
|
-
|
|
120
|
+
3404,
|
|
121
121
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
122
122
|
)),
|
|
123
123
|
patternProperties: {
|
|
@@ -139,7 +139,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
139
139
|
minimum: 1,
|
|
140
140
|
scope: ConfigurationScope.RESOURCE,
|
|
141
141
|
markdownDescription: ( localize(
|
|
142
|
-
|
|
142
|
+
3405,
|
|
143
143
|
"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."
|
|
144
144
|
)),
|
|
145
145
|
}
|
|
@@ -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(4553, 'Whether a call hierarchy provider is available'))));
|
|
28
|
+
const _ctxCallHierarchyVisible = ( new RawContextKey('callHierarchyVisible', false, ( localize(4554, '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(4555, '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(4556, "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(4557, "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(4558, '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(4559, 'Show Incoming Calls')),
|
|
180
|
+
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4560, '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(4561, 'Show Outgoing Calls')),
|
|
202
|
+
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4562, '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(4563, '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(4564, '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(4565, "Calls from '{0}'", element.model.root.name))
|
|
274
|
+
: ( localize(4566, "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(4567, "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(4568, "No calls from '{0}'", model.root.name))
|
|
299
|
+
: ( localize(4569, "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(4570, "Call Hierarchy");
|
|
112
112
|
}
|
|
113
113
|
getAriaLabel(element) {
|
|
114
114
|
if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
|
|
115
|
-
return localize(
|
|
115
|
+
return localize(4571, "calls from {0}", element.item.name);
|
|
116
116
|
}
|
|
117
117
|
else {
|
|
118
|
-
return localize(
|
|
118
|
+
return localize(4572, "callers of {0}", element.item.name);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -12,6 +12,7 @@ import { IWorkingCopyBackupMeta, IWorkingCopyIdentifier } from "@codingame/monac
|
|
|
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";
|
|
15
|
+
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
15
16
|
export interface CustomDocumentBackupData extends IWorkingCopyBackupMeta {
|
|
16
17
|
readonly viewType: string;
|
|
17
18
|
readonly editorResource: UriComponents;
|
|
@@ -19,7 +20,7 @@ export interface CustomDocumentBackupData extends IWorkingCopyBackupMeta {
|
|
|
19
20
|
readonly iconPath: {
|
|
20
21
|
dark: UriComponents;
|
|
21
22
|
light: UriComponents;
|
|
22
|
-
} | undefined;
|
|
23
|
+
} | ThemeIcon | undefined;
|
|
23
24
|
backupId: string;
|
|
24
25
|
readonly extension: undefined | {
|
|
25
26
|
readonly location: UriComponents;
|
|
@@ -10,7 +10,7 @@ import { ICustomEditorService } from '@codingame/monaco-vscode-api/vscode/vs/wor
|
|
|
10
10
|
import { NotebookEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
11
11
|
import { WebviewContentPurpose } from '@codingame/monaco-vscode-api/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
|
-
import { WebviewEditorInputSerializer, reviveWebviewExtensionDescription, restoreWebviewContentOptions, restoreWebviewOptions } from '../../webviewPanel/browser/webviewEditorInputSerializer.js';
|
|
13
|
+
import { WebviewEditorInputSerializer, reviveWebviewExtensionDescription, restoreWebviewContentOptions, restoreWebviewOptions, reviveWebviewIconPath } from '../../webviewPanel/browser/webviewEditorInputSerializer.js';
|
|
14
14
|
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
15
15
|
import { IWorkingCopyBackupService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.service';
|
|
16
16
|
import { IWorkingCopyEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service';
|
|
@@ -142,9 +142,7 @@ let ComplexCustomWorkingCopyEditorHandler = class ComplexCustomWorkingCopyEditor
|
|
|
142
142
|
resource: URI.revive(backupData.editorResource),
|
|
143
143
|
viewType: backupData.viewType,
|
|
144
144
|
webviewTitle: backupData.customTitle,
|
|
145
|
-
iconPath: backupData.iconPath
|
|
146
|
-
? { dark: URI.revive(backupData.iconPath.dark), light: URI.revive(backupData.iconPath.light) }
|
|
147
|
-
: undefined
|
|
145
|
+
iconPath: reviveWebviewIconPath(backupData.iconPath)
|
|
148
146
|
}, webview, { backupId: backupData.backupId });
|
|
149
147
|
editor.updateGroup(0);
|
|
150
148
|
return editor;
|
|
@@ -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(6429, "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(6430, "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
|
+
6432,
|
|
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
|
+
6433,
|
|
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(6434, '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(6435, '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
|
+
6436,
|
|
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
|
+
6437,
|
|
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
|
+
6438,
|
|
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(6439, '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(6440, "View Type")),
|
|
125
|
+
( localize(6441, "Priority")),
|
|
126
|
+
( localize(6442, "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(6443, "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(8508, "Editor Language Status")),
|
|
184
|
+
ariaLabel: ( localize(8509, "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(8510, "Remove from Status Bar")) : ( localize(8511, "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(8512, '{0}, {1}', textValue, status.detail)) };
|
|
338
338
|
}
|
|
339
339
|
else {
|
|
340
|
-
return { label: ( localize(
|
|
340
|
+
return { label: ( localize(8513, '{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(8514, '{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(8515, "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(8516, "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(8517, 'Color Decorator Status'));
|
|
45
|
+
this.label = ( localize(8518, 'Color decorators'));
|
|
46
|
+
this.source = ( localize(8519, '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(8520, 'Folding Status'));
|
|
57
|
+
this.label = ( localize(8521, 'Folding ranges'));
|
|
58
|
+
this.source = ( localize(8522, '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(8523, '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,
|