@codingame/monaco-vscode-view-common-service-override 8.0.0 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +58 -58
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +21 -21
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +3 -3
- 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/browser/parts/editor/editorDropTarget.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +12 -12
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +27 -27
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +12 -12
- 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/conflictActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -11
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +9 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +7 -7
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +2 -2
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +1 -1
|
@@ -24,22 +24,22 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
24
24
|
static { this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
25
25
|
{
|
|
26
26
|
id: 'workbench.input.interactive',
|
|
27
|
-
label: ( localize(
|
|
27
|
+
label: ( localize(9730, 'Interactive Window')),
|
|
28
28
|
priority: RegisteredEditorPriority.builtin
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
id: 'mainThreadWebview-markdown.preview',
|
|
32
|
-
label: ( localize(
|
|
32
|
+
label: ( localize(9731, "Markdown Preview")),
|
|
33
33
|
priority: RegisteredEditorPriority.builtin
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
id: 'mainThreadWebview-simpleBrowser.view',
|
|
37
|
-
label: ( localize(
|
|
37
|
+
label: ( localize(9732, "Simple Browser")),
|
|
38
38
|
priority: RegisteredEditorPriority.builtin
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
id: 'mainThreadWebview-browserPreview',
|
|
42
|
-
label: ( localize(
|
|
42
|
+
label: ( localize(9733, "Live Preview")),
|
|
43
43
|
priority: RegisteredEditorPriority.builtin
|
|
44
44
|
}
|
|
45
45
|
]; }
|
|
@@ -84,7 +84,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
84
84
|
'workbench.editor.autoLockGroups': {
|
|
85
85
|
type: 'object',
|
|
86
86
|
description: ( localize(
|
|
87
|
-
|
|
87
|
+
9734,
|
|
88
88
|
"If an editor matching one of the listed types is opened as the first in an editor group and more than one group is open, the group is automatically locked. Locked groups will only be used for opening editors when explicitly chosen by a user gesture (for example drag and drop), but not by default. Consequently, the active editor in a locked group is less likely to be replaced accidentally with a different editor."
|
|
89
89
|
)),
|
|
90
90
|
properties: autoLockGroupConfiguration,
|
|
@@ -102,7 +102,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
102
102
|
default: '',
|
|
103
103
|
enum: [...binaryEditorCandidates, ''],
|
|
104
104
|
description: ( localize(
|
|
105
|
-
|
|
105
|
+
9735,
|
|
106
106
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
107
107
|
)),
|
|
108
108
|
}
|
|
@@ -115,7 +115,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
115
115
|
'workbench.editorAssociations': {
|
|
116
116
|
type: 'object',
|
|
117
117
|
markdownDescription: ( localize(
|
|
118
|
-
|
|
118
|
+
9736,
|
|
119
119
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
120
120
|
)),
|
|
121
121
|
patternProperties: {
|
|
@@ -137,7 +137,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
137
137
|
minimum: 1,
|
|
138
138
|
scope: ConfigurationScope.RESOURCE,
|
|
139
139
|
markdownDescription: ( localize(
|
|
140
|
-
|
|
140
|
+
9737,
|
|
141
141
|
"Controls the minimum size of a file in MB before asking for confirmation when opening in the editor. Note that this setting may not apply to all editor types and environments."
|
|
142
142
|
)),
|
|
143
143
|
}
|
|
@@ -79,7 +79,7 @@ let DropOverlay = class DropOverlay extends Themable {
|
|
|
79
79
|
this.overlay.classList.add('editor-group-overlay-indicator');
|
|
80
80
|
container.appendChild(this.overlay);
|
|
81
81
|
if (this.enableDropIntoEditor) {
|
|
82
|
-
this.dropIntoPromptElement = renderFormattedText(( localize(
|
|
82
|
+
this.dropIntoPromptElement = renderFormattedText(( localize(10833, "Hold __{0}__ to drop into editor", isMacintosh ? '⇧' : 'Shift')), {});
|
|
83
83
|
this.dropIntoPromptElement.classList.add('editor-group-overlay-drop-into-prompt');
|
|
84
84
|
this.overlay.appendChild(this.dropIntoPromptElement);
|
|
85
85
|
}
|
|
@@ -125,7 +125,7 @@ let EditorParts = class EditorParts extends MultiWindowParts {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
getGroupsLabel(index) {
|
|
128
|
-
return ( localize(
|
|
128
|
+
return ( localize(3535, "Window {0}", index + 1));
|
|
129
129
|
}
|
|
130
130
|
getPart(groupOrElement) {
|
|
131
131
|
if (this._parts.size > 1) {
|
|
@@ -95,7 +95,7 @@ let PaneCompositeBar = class PaneCompositeBar extends Disposable {
|
|
|
95
95
|
const viewContainer = this.viewDescriptorService.getViewContainerById(compositeId);
|
|
96
96
|
const defaultLocation = this.viewDescriptorService.getDefaultViewContainerLocation(viewContainer);
|
|
97
97
|
if (defaultLocation !== this.viewDescriptorService.getViewContainerLocation(viewContainer)) {
|
|
98
|
-
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(
|
|
98
|
+
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(9310, "Reset Location")), run: () => this.viewDescriptorService.moveViewContainerToLocation(viewContainer, defaultLocation, undefined, 'resetLocationAction') }));
|
|
99
99
|
}
|
|
100
100
|
else {
|
|
101
101
|
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
@@ -103,7 +103,7 @@ let PaneCompositeBar = class PaneCompositeBar extends Disposable {
|
|
|
103
103
|
const viewToReset = viewContainerModel.allViewDescriptors[0];
|
|
104
104
|
const defaultContainer = this.viewDescriptorService.getDefaultContainerById(viewToReset.id);
|
|
105
105
|
if (defaultContainer !== viewContainer) {
|
|
106
|
-
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(
|
|
106
|
+
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(9310, "Reset Location")), run: () => this.viewDescriptorService.moveViewsToContainer([viewToReset], defaultContainer, undefined, 'resetLocationAction') }));
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -142,7 +142,7 @@ let AbstractPaneCompositePart = class AbstractPaneCompositePart extends Composit
|
|
|
142
142
|
this.emptyPaneMessageElement.classList.add('empty-pane-message-area');
|
|
143
143
|
const messageElement = document.createElement('div');
|
|
144
144
|
messageElement.classList.add('empty-pane-message');
|
|
145
|
-
messageElement.innerText = ( localize(
|
|
145
|
+
messageElement.innerText = ( localize(9307, "Drag a view here to display."));
|
|
146
146
|
this.emptyPaneMessageElement.appendChild(messageElement);
|
|
147
147
|
parent.appendChild(this.emptyPaneMessageElement);
|
|
148
148
|
this._register(CompositeDragAndDropObserver.INSTANCE.registerTarget(this.emptyPaneMessageElement, {
|
|
@@ -192,7 +192,7 @@ let AbstractPaneCompositePart = class AbstractPaneCompositePart extends Composit
|
|
|
192
192
|
orientation: ActionsOrientation.HORIZONTAL,
|
|
193
193
|
getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
|
|
194
194
|
anchorAlignmentProvider: () => this.getTitleAreaDropDownAnchorAlignment(),
|
|
195
|
-
toggleMenuTitle: ( localize(
|
|
195
|
+
toggleMenuTitle: ( localize(9308, "More Actions...")),
|
|
196
196
|
hoverDelegate: this.toolbarHoverDelegate,
|
|
197
197
|
hiddenItemStrategy: HiddenItemStrategy.NoHide
|
|
198
198
|
}));
|
|
@@ -450,7 +450,7 @@ let AbstractPaneCompositePart = class AbstractPaneCompositePart extends Composit
|
|
|
450
450
|
const menu = this.menuService.getMenuActions(ViewsSubMenu, scopedContextKeyService, { shouldForwardArgs: true, renderShortTitle: true });
|
|
451
451
|
createAndFillInActionBarActions(menu, { primary: viewsActions, secondary: [] }, () => true);
|
|
452
452
|
disposables.dispose();
|
|
453
|
-
return viewsActions.length > 1 && ( (viewsActions.some(a => a.enabled))) ? ( (new SubmenuAction('views', ( localize(
|
|
453
|
+
return viewsActions.length > 1 && ( (viewsActions.some(a => a.enabled))) ? ( (new SubmenuAction('views', ( localize(9309, "Views")), viewsActions))) : undefined;
|
|
454
454
|
}
|
|
455
455
|
return undefined;
|
|
456
456
|
}
|
|
@@ -114,9 +114,9 @@ let PanelPart = class PanelPart extends AbstractPaneCompositePart {
|
|
|
114
114
|
createAndFillInContextMenuActions(panelAlignMenu, { primary: [], secondary: alignActions });
|
|
115
115
|
actions.push(...[
|
|
116
116
|
( (new Separator())),
|
|
117
|
-
( (new SubmenuAction('workbench.action.panel.position', ( localize(
|
|
118
|
-
( (new SubmenuAction('workbench.action.panel.align', ( localize(
|
|
119
|
-
toAction({ id: TogglePanelAction.ID, label: ( localize(
|
|
117
|
+
( (new SubmenuAction('workbench.action.panel.position', ( localize(3780, "Panel Position")), positionActions))),
|
|
118
|
+
( (new SubmenuAction('workbench.action.panel.align', ( localize(3781, "Align Panel")), alignActions))),
|
|
119
|
+
toAction({ id: TogglePanelAction.ID, label: ( localize(3782, "Hide Panel")), run: () => this.commandService.executeCommand(TogglePanelAction.ID) })
|
|
120
120
|
]);
|
|
121
121
|
}
|
|
122
122
|
layout(width, height, top, left) {
|
|
@@ -13,7 +13,7 @@ class FocusSideBarAction extends Action2 {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: 'workbench.action.focusSideBar',
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(9306, 'Focus into Primary Side Bar')),
|
|
17
17
|
category: Categories.View,
|
|
18
18
|
f1: true,
|
|
19
19
|
keybinding: {
|
|
@@ -217,7 +217,7 @@ let SidebarPart = class SidebarPart extends AbstractPaneCompositePart {
|
|
|
217
217
|
constructor() {
|
|
218
218
|
super({
|
|
219
219
|
id: ToggleActivityBarVisibilityActionId,
|
|
220
|
-
title: ( localize2(
|
|
220
|
+
title: ( localize2(3760, "Toggle Activity Bar Visibility")),
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
run() {
|
|
@@ -23,12 +23,12 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
|
|
|
23
23
|
import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
24
24
|
|
|
25
25
|
var CallHierarchyController_1;
|
|
26
|
-
const _ctxHasCallHierarchyProvider = ( (new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(
|
|
27
|
-
const _ctxCallHierarchyVisible = ( (new RawContextKey('callHierarchyVisible', false, ( localize(
|
|
26
|
+
const _ctxHasCallHierarchyProvider = ( (new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4151, 'Whether a call hierarchy provider is available')))));
|
|
27
|
+
const _ctxCallHierarchyVisible = ( (new RawContextKey('callHierarchyVisible', false, ( localize(4152, 'Whether call hierarchy peek is currently showing')))));
|
|
28
28
|
const _ctxCallHierarchyDirection = ( (new RawContextKey(
|
|
29
29
|
'callHierarchyDirection',
|
|
30
30
|
undefined,
|
|
31
|
-
{ type: 'string', description: ( localize(
|
|
31
|
+
{ type: 'string', description: ( localize(4153, 'Whether call hierarchy shows incoming or outgoing calls')) }
|
|
32
32
|
)));
|
|
33
33
|
function sanitizedDirection(candidate) {
|
|
34
34
|
return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo
|
|
@@ -116,14 +116,14 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
116
116
|
this._widget.showModel(model);
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
119
|
-
this._widget.showMessage(( localize(
|
|
119
|
+
this._widget.showMessage(( localize(4154, "No results")));
|
|
120
120
|
}
|
|
121
121
|
}).catch(err => {
|
|
122
122
|
if (isCancellationError(err)) {
|
|
123
123
|
this.endCallHierarchy();
|
|
124
124
|
return;
|
|
125
125
|
}
|
|
126
|
-
this._widget.showMessage(( localize(
|
|
126
|
+
this._widget.showMessage(( localize(4155, "Failed to show call hierarchy")));
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
showOutgoingCalls() {
|
|
@@ -151,7 +151,7 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: 'editor.showCallHierarchy',
|
|
154
|
-
title: ( localize2(
|
|
154
|
+
title: ( localize2(4156, 'Peek Call Hierarchy')),
|
|
155
155
|
menu: {
|
|
156
156
|
id: MenuId.EditorContextPeek,
|
|
157
157
|
group: 'navigation',
|
|
@@ -179,8 +179,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super({
|
|
181
181
|
id: 'editor.showIncomingCalls',
|
|
182
|
-
title: ( localize2(
|
|
183
|
-
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(
|
|
182
|
+
title: ( localize2(4157, 'Show Incoming Calls')),
|
|
183
|
+
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4158, 'Icon for incoming calls in the call hierarchy view.'))),
|
|
184
184
|
precondition: ( (ContextKeyExpr.and(
|
|
185
185
|
_ctxCallHierarchyVisible,
|
|
186
186
|
(_ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom))
|
|
@@ -204,8 +204,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
204
204
|
constructor() {
|
|
205
205
|
super({
|
|
206
206
|
id: 'editor.showOutgoingCalls',
|
|
207
|
-
title: ( localize2(
|
|
208
|
-
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(
|
|
207
|
+
title: ( localize2(4159, 'Show Outgoing Calls')),
|
|
208
|
+
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4160, 'Icon for outgoing calls in the call hierarchy view.'))),
|
|
209
209
|
precondition: ( (ContextKeyExpr.and(
|
|
210
210
|
_ctxCallHierarchyVisible,
|
|
211
211
|
(_ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo))
|
|
@@ -229,7 +229,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: 'editor.refocusCallHierarchy',
|
|
232
|
-
title: ( localize2(
|
|
232
|
+
title: ( localize2(4161, 'Refocus Call Hierarchy')),
|
|
233
233
|
precondition: _ctxCallHierarchyVisible,
|
|
234
234
|
keybinding: {
|
|
235
235
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -245,7 +245,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
245
245
|
constructor() {
|
|
246
246
|
super({
|
|
247
247
|
id: 'editor.closeCallHierarchy',
|
|
248
|
-
title: ( localize(
|
|
248
|
+
title: ( localize(4162, 'Close')),
|
|
249
249
|
icon: Codicon.close,
|
|
250
250
|
precondition: _ctxCallHierarchyVisible,
|
|
251
251
|
keybinding: {
|
|
@@ -267,13 +267,13 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
267
267
|
}
|
|
268
268
|
this._previewDisposable.add(value);
|
|
269
269
|
const title = this._direction === CallHierarchyDirection.CallsFrom
|
|
270
|
-
? ( localize(
|
|
271
|
-
: ( localize(
|
|
270
|
+
? ( localize(9527, "Calls from '{0}'", element.model.root.name))
|
|
271
|
+
: ( localize(9528, "Callers of '{0}'", element.model.root.name));
|
|
272
272
|
this.setTitle(title);
|
|
273
273
|
}
|
|
274
274
|
showLoading() {
|
|
275
275
|
this._parent.dataset['state'] = State.Loading;
|
|
276
|
-
this.setTitle(( localize(
|
|
276
|
+
this.setTitle(( localize(9529, "Loading...")));
|
|
277
277
|
this._show();
|
|
278
278
|
}
|
|
279
279
|
showMessage(message) {
|
|
@@ -292,8 +292,8 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
292
292
|
await this._tree.expand(root.element);
|
|
293
293
|
if (root.children.length === 0) {
|
|
294
294
|
this.showMessage(this._direction === CallHierarchyDirection.CallsFrom
|
|
295
|
-
? ( localize(
|
|
296
|
-
: ( localize(
|
|
295
|
+
? ( localize(9530, "No calls from '{0}'", model.root.name))
|
|
296
|
+
: ( localize(9531, "No callers of '{0}'", model.root.name)));
|
|
297
297
|
}
|
|
298
298
|
else {
|
|
299
299
|
this._parent.dataset['state'] = State.Data;
|
|
@@ -128,14 +128,14 @@ class AccessibilityProvider {
|
|
|
128
128
|
this.getDirection = getDirection;
|
|
129
129
|
}
|
|
130
130
|
getWidgetAriaLabel() {
|
|
131
|
-
return ( localize(
|
|
131
|
+
return ( localize(11185, "Call Hierarchy"));
|
|
132
132
|
}
|
|
133
133
|
getAriaLabel(element) {
|
|
134
134
|
if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
|
|
135
|
-
return ( localize(
|
|
135
|
+
return ( localize(11186, "calls from {0}", element.item.name));
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
|
-
return ( localize(
|
|
138
|
+
return ( localize(11187, "callers of {0}", element.item.name));
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -31,7 +31,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
31
31
|
this.add(( (new CustomEditorInfo({
|
|
32
32
|
id: webviewEditorContribution.viewType,
|
|
33
33
|
displayName: webviewEditorContribution.displayName,
|
|
34
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
34
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(9515, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
35
35
|
selector: webviewEditorContribution.selector || [],
|
|
36
36
|
priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
|
|
37
37
|
}))));
|
|
@@ -5,7 +5,7 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from 'v
|
|
|
5
5
|
|
|
6
6
|
const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( (new RawContextKey('activeCustomEditorId', '', {
|
|
7
7
|
type: 'string',
|
|
8
|
-
description: ( localize(
|
|
8
|
+
description: ( localize(9514, "The viewType of the currently active custom editor.")),
|
|
9
9
|
})));
|
|
10
10
|
const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( (new RawContextKey('focusedCustomEditorIsEditable', false)));
|
|
11
11
|
var CustomEditorPriority;
|
|
@@ -15,7 +15,7 @@ const Fields = ( (Object.freeze({
|
|
|
15
15
|
priority: 'priority',
|
|
16
16
|
})));
|
|
17
17
|
const CustomEditorsContribution = {
|
|
18
|
-
description: ( localize(
|
|
18
|
+
description: ( localize(11173, 'Contributed custom editors.')),
|
|
19
19
|
type: 'array',
|
|
20
20
|
defaultSnippets: [{
|
|
21
21
|
body: [{
|
|
@@ -37,20 +37,20 @@ const CustomEditorsContribution = {
|
|
|
37
37
|
[Fields.viewType]: {
|
|
38
38
|
type: 'string',
|
|
39
39
|
markdownDescription: ( localize(
|
|
40
|
-
|
|
40
|
+
11174,
|
|
41
41
|
'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).'
|
|
42
42
|
)),
|
|
43
43
|
},
|
|
44
44
|
[Fields.displayName]: {
|
|
45
45
|
type: 'string',
|
|
46
46
|
description: ( localize(
|
|
47
|
-
|
|
47
|
+
11175,
|
|
48
48
|
'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'
|
|
49
49
|
)),
|
|
50
50
|
},
|
|
51
51
|
[Fields.selector]: {
|
|
52
52
|
type: 'array',
|
|
53
|
-
description: ( localize(
|
|
53
|
+
description: ( localize(11176, 'Set of globs that the custom editor is enabled for.')),
|
|
54
54
|
items: {
|
|
55
55
|
type: 'object',
|
|
56
56
|
defaultSnippets: [{
|
|
@@ -61,7 +61,7 @@ const CustomEditorsContribution = {
|
|
|
61
61
|
properties: {
|
|
62
62
|
filenamePattern: {
|
|
63
63
|
type: 'string',
|
|
64
|
-
description: ( localize(
|
|
64
|
+
description: ( localize(11177, 'Glob that the custom editor is enabled for.')),
|
|
65
65
|
},
|
|
66
66
|
}
|
|
67
67
|
}
|
|
@@ -69,7 +69,7 @@ const CustomEditorsContribution = {
|
|
|
69
69
|
[Fields.priority]: {
|
|
70
70
|
type: 'string',
|
|
71
71
|
markdownDeprecationMessage: ( localize(
|
|
72
|
-
|
|
72
|
+
11178,
|
|
73
73
|
'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.'
|
|
74
74
|
)),
|
|
75
75
|
enum: [
|
|
@@ -78,11 +78,11 @@ const CustomEditorsContribution = {
|
|
|
78
78
|
],
|
|
79
79
|
markdownEnumDescriptions: [
|
|
80
80
|
( localize(
|
|
81
|
-
|
|
81
|
+
11179,
|
|
82
82
|
'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
|
|
83
83
|
)),
|
|
84
84
|
( localize(
|
|
85
|
-
|
|
85
|
+
11180,
|
|
86
86
|
'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.'
|
|
87
87
|
)),
|
|
88
88
|
],
|
|
@@ -118,9 +118,9 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
118
118
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
119
119
|
}
|
|
120
120
|
const headers = [
|
|
121
|
-
( localize(
|
|
122
|
-
( localize(
|
|
123
|
-
( localize(
|
|
121
|
+
( localize(11181, "View Type")),
|
|
122
|
+
( localize(11182, "Priority")),
|
|
123
|
+
( localize(11183, "Filename Pattern")),
|
|
124
124
|
];
|
|
125
125
|
const rows = ( (customEditors
|
|
126
126
|
.map(customEditor => {
|
|
@@ -141,7 +141,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
141
141
|
}
|
|
142
142
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
143
143
|
id: 'customEditors',
|
|
144
|
-
label: ( localize(
|
|
144
|
+
label: ( localize(11184, "Custom Editors")),
|
|
145
145
|
access: {
|
|
146
146
|
canToggle: false
|
|
147
147
|
},
|
package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js
CHANGED
|
@@ -179,8 +179,8 @@ let LanguageStatus = class LanguageStatus {
|
|
|
179
179
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
180
180
|
}
|
|
181
181
|
const props = {
|
|
182
|
-
name: ( localize(
|
|
183
|
-
ariaLabel: ( localize(
|
|
182
|
+
name: ( localize(4355, "Editor Language Status")),
|
|
183
|
+
ariaLabel: ( localize(4356, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
|
|
184
184
|
tooltip: element,
|
|
185
185
|
command: ShowTooltipCommand,
|
|
186
186
|
text: isOneBusy ? `${text}\u00A0\u00A0$(sync~spin)` : text,
|
|
@@ -280,7 +280,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
280
280
|
store.add(actionBar);
|
|
281
281
|
let action;
|
|
282
282
|
if (!isPinned) {
|
|
283
|
-
action = ( (new Action('pin', ( localize(
|
|
283
|
+
action = ( (new Action('pin', ( localize(4357, "Add to Status Bar")), ThemeIcon.asClassName(Codicon.pin), true, () => {
|
|
284
284
|
this._dedicated.add(status.id);
|
|
285
285
|
this._statusBarService.updateEntryVisibility(status.id, true);
|
|
286
286
|
this._update();
|
|
@@ -288,7 +288,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
288
288
|
})));
|
|
289
289
|
}
|
|
290
290
|
else {
|
|
291
|
-
action = ( (new Action('unpin', ( localize(
|
|
291
|
+
action = ( (new Action('unpin', ( localize(4358, "Remove from Status Bar")), ThemeIcon.asClassName(Codicon.pinned), true, () => {
|
|
292
292
|
this._dedicated.delete(status.id);
|
|
293
293
|
this._statusBarService.updateEntryVisibility(status.id, false);
|
|
294
294
|
this._update();
|
|
@@ -330,10 +330,10 @@ let LanguageStatus = class LanguageStatus {
|
|
|
330
330
|
}
|
|
331
331
|
const textValue = typeof status.label === 'string' ? status.label : status.label.value;
|
|
332
332
|
if (status.detail) {
|
|
333
|
-
return { label: ( localize(
|
|
333
|
+
return { label: ( localize(4359, '{0}, {1}', textValue, status.detail)) };
|
|
334
334
|
}
|
|
335
335
|
else {
|
|
336
|
-
return { label: ( localize(
|
|
336
|
+
return { label: ( localize(4360, '{0}', textValue)) };
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
static _asStatusbarEntry(item) {
|
|
@@ -346,7 +346,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
346
346
|
}
|
|
347
347
|
const textValue = typeof item.label === 'string' ? item.label : item.label.shortValue;
|
|
348
348
|
return {
|
|
349
|
-
name: ( localize(
|
|
349
|
+
name: ( localize(4361, '{0} (Language Status)', item.name)),
|
|
350
350
|
text: item.busy ? `${textValue}\u00A0\u00A0$(sync~spin)` : textValue,
|
|
351
351
|
ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
|
|
352
352
|
role: item.accessibilityInfo?.role,
|
|
@@ -369,7 +369,7 @@ registerAction2(class extends Action2 {
|
|
|
369
369
|
constructor() {
|
|
370
370
|
super({
|
|
371
371
|
id: 'editor.inlayHints.Reset',
|
|
372
|
-
title: ( localize2(
|
|
372
|
+
title: ( localize2(4362, "Reset Language Status Interaction Counter")),
|
|
373
373
|
category: Categories.View,
|
|
374
374
|
f1: true
|
|
375
375
|
});
|
package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js
CHANGED
|
@@ -12,7 +12,7 @@ import { FoldingController } from 'vscode/vscode/vs/editor/contrib/folding/brows
|
|
|
12
12
|
import { ColorDetector } from 'vscode/vscode/vs/editor/contrib/colorPicker/browser/colorDetector';
|
|
13
13
|
|
|
14
14
|
const openSettingsCommand = 'workbench.action.openSettings';
|
|
15
|
-
const configureSettingsLabel = ( localize(
|
|
15
|
+
const configureSettingsLabel = ( localize(4369, "Configure"));
|
|
16
16
|
let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
|
|
17
17
|
constructor(editorService, languageStatusService) {
|
|
18
18
|
super();
|
|
@@ -42,9 +42,9 @@ LimitIndicatorContribution = ( (__decorate([
|
|
|
42
42
|
class ColorDecorationAccessor {
|
|
43
43
|
constructor() {
|
|
44
44
|
this.id = 'decoratorsLimitInfo';
|
|
45
|
-
this.name = ( localize(
|
|
46
|
-
this.label = ( localize(
|
|
47
|
-
this.source = ( localize(
|
|
45
|
+
this.name = ( localize(4370, 'Color Decorator Status'));
|
|
46
|
+
this.label = ( localize(4371, 'Color Decorators'));
|
|
47
|
+
this.source = ( localize(4372, 'Color Decorators'));
|
|
48
48
|
this.settingsId = 'editor.colorDecoratorsLimit';
|
|
49
49
|
}
|
|
50
50
|
getLimitReporter(editor) {
|
|
@@ -54,9 +54,9 @@ class ColorDecorationAccessor {
|
|
|
54
54
|
class FoldingRangeAccessor {
|
|
55
55
|
constructor() {
|
|
56
56
|
this.id = 'foldingLimitInfo';
|
|
57
|
-
this.name = ( localize(
|
|
58
|
-
this.label = ( localize(
|
|
59
|
-
this.source = ( localize(
|
|
57
|
+
this.name = ( localize(4373, 'Folding Status'));
|
|
58
|
+
this.label = ( localize(4374, 'Folding Ranges'));
|
|
59
|
+
this.source = ( localize(4375, 'Folding'));
|
|
60
60
|
this.settingsId = 'editor.foldingMaximumRegions';
|
|
61
61
|
}
|
|
62
62
|
getLimitReporter(editor) {
|
|
@@ -98,7 +98,7 @@ class LanguageStatusEntry {
|
|
|
98
98
|
name: this.accessor.name,
|
|
99
99
|
severity: Severity$1.Warning,
|
|
100
100
|
label: this.accessor.label,
|
|
101
|
-
detail: ( localize(
|
|
101
|
+
detail: ( localize(4376, 'only {0} shown for performance reasons', info.limited)),
|
|
102
102
|
command: { id: openSettingsCommand, arguments: [this.accessor.settingsId], title: configureSettingsLabel },
|
|
103
103
|
accessibilityInfo: undefined,
|
|
104
104
|
source: this.accessor.source,
|