@codingame/monaco-vscode-view-common-service-override 10.0.2 → 10.1.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 +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/editor/editor.contribution.js +159 -159
- 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/panel/panelPart.js +3 -3
- 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/languageStatus/browser/languageStatus.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +3 -3
- 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/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
|
@@ -137,7 +137,7 @@ let EditorParts = class EditorParts extends MultiWindowParts {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
getGroupsLabel(index) {
|
|
140
|
-
return ( localize(
|
|
140
|
+
return ( localize(3569, "Window {0}", index + 1));
|
|
141
141
|
}
|
|
142
142
|
getPart(groupOrElement) {
|
|
143
143
|
if (this._parts.size > 1) {
|
|
@@ -93,7 +93,7 @@ let PaneCompositeBar = class PaneCompositeBar extends Disposable {
|
|
|
93
93
|
const viewContainer = this.viewDescriptorService.getViewContainerById(compositeId);
|
|
94
94
|
const defaultLocation = this.viewDescriptorService.getDefaultViewContainerLocation(viewContainer);
|
|
95
95
|
if (defaultLocation !== this.viewDescriptorService.getViewContainerLocation(viewContainer)) {
|
|
96
|
-
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(
|
|
96
|
+
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(9409, "Reset Location")), run: () => this.viewDescriptorService.moveViewContainerToLocation(viewContainer, defaultLocation, undefined, 'resetLocationAction') }));
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
99
|
const viewContainerModel = this.viewDescriptorService.getViewContainerModel(viewContainer);
|
|
@@ -101,7 +101,7 @@ let PaneCompositeBar = class PaneCompositeBar extends Disposable {
|
|
|
101
101
|
const viewToReset = viewContainerModel.allViewDescriptors[0];
|
|
102
102
|
const defaultContainer = this.viewDescriptorService.getDefaultContainerById(viewToReset.id);
|
|
103
103
|
if (defaultContainer !== viewContainer) {
|
|
104
|
-
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(
|
|
104
|
+
actions.push(toAction({ id: 'resetLocationAction', label: ( localize(9409, "Reset Location")), run: () => this.viewDescriptorService.moveViewsToContainer([viewToReset], defaultContainer, undefined, 'resetLocationAction') }));
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -118,9 +118,9 @@ let PanelPart = class PanelPart extends AbstractPaneCompositePart {
|
|
|
118
118
|
createAndFillInContextMenuActions(panelAlignMenu, { primary: [], secondary: alignActions });
|
|
119
119
|
actions.push(...[
|
|
120
120
|
( (new Separator())),
|
|
121
|
-
( (new SubmenuAction('workbench.action.panel.position', ( localize(
|
|
122
|
-
( (new SubmenuAction('workbench.action.panel.align', ( localize(
|
|
123
|
-
toAction({ id: TogglePanelAction.ID, label: ( localize(
|
|
121
|
+
( (new SubmenuAction('workbench.action.panel.position', ( localize(3774, "Panel Position")), positionActions))),
|
|
122
|
+
( (new SubmenuAction('workbench.action.panel.align', ( localize(3775, "Align Panel")), alignActions))),
|
|
123
|
+
toAction({ id: TogglePanelAction.ID, label: ( localize(3776, "Hide Panel")), run: () => this.commandService.executeCommand(TogglePanelAction.ID) })
|
|
124
124
|
]);
|
|
125
125
|
}
|
|
126
126
|
layout(width, height, top, left) {
|
|
@@ -20,12 +20,12 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
|
|
|
20
20
|
import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
21
21
|
|
|
22
22
|
var CallHierarchyController_1;
|
|
23
|
-
const _ctxHasCallHierarchyProvider = ( (new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(
|
|
24
|
-
const _ctxCallHierarchyVisible = ( (new RawContextKey('callHierarchyVisible', false, ( localize(
|
|
23
|
+
const _ctxHasCallHierarchyProvider = ( (new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4227, 'Whether a call hierarchy provider is available')))));
|
|
24
|
+
const _ctxCallHierarchyVisible = ( (new RawContextKey('callHierarchyVisible', false, ( localize(4228, 'Whether call hierarchy peek is currently showing')))));
|
|
25
25
|
const _ctxCallHierarchyDirection = ( (new RawContextKey(
|
|
26
26
|
'callHierarchyDirection',
|
|
27
27
|
undefined,
|
|
28
|
-
{ type: 'string', description: ( localize(
|
|
28
|
+
{ type: 'string', description: ( localize(4229, 'Whether call hierarchy shows incoming or outgoing calls')) }
|
|
29
29
|
)));
|
|
30
30
|
function sanitizedDirection(candidate) {
|
|
31
31
|
return candidate === "outgoingCalls" || candidate === "incomingCalls"
|
|
@@ -113,14 +113,14 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
113
113
|
this._widget.showModel(model);
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
|
-
this._widget.showMessage(( localize(
|
|
116
|
+
this._widget.showMessage(( localize(4230, "No results")));
|
|
117
117
|
}
|
|
118
118
|
}).catch(err => {
|
|
119
119
|
if (isCancellationError(err)) {
|
|
120
120
|
this.endCallHierarchy();
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
|
-
this._widget.showMessage(( localize(
|
|
123
|
+
this._widget.showMessage(( localize(4231, "Failed to show call hierarchy")));
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
showOutgoingCalls() {
|
|
@@ -148,7 +148,7 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
super({
|
|
150
150
|
id: 'editor.showCallHierarchy',
|
|
151
|
-
title: ( localize2(
|
|
151
|
+
title: ( localize2(4232, 'Peek Call Hierarchy')),
|
|
152
152
|
menu: {
|
|
153
153
|
id: MenuId.EditorContextPeek,
|
|
154
154
|
group: 'navigation',
|
|
@@ -176,8 +176,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
176
176
|
constructor() {
|
|
177
177
|
super({
|
|
178
178
|
id: 'editor.showIncomingCalls',
|
|
179
|
-
title: ( localize2(
|
|
180
|
-
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(
|
|
179
|
+
title: ( localize2(4233, 'Show Incoming Calls')),
|
|
180
|
+
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4234, 'Icon for incoming calls in the call hierarchy view.'))),
|
|
181
181
|
precondition: ( (ContextKeyExpr.and(
|
|
182
182
|
_ctxCallHierarchyVisible,
|
|
183
183
|
(_ctxCallHierarchyDirection.isEqualTo("outgoingCalls" ))
|
|
@@ -201,8 +201,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
201
201
|
constructor() {
|
|
202
202
|
super({
|
|
203
203
|
id: 'editor.showOutgoingCalls',
|
|
204
|
-
title: ( localize2(
|
|
205
|
-
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(
|
|
204
|
+
title: ( localize2(4235, 'Show Outgoing Calls')),
|
|
205
|
+
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4236, 'Icon for outgoing calls in the call hierarchy view.'))),
|
|
206
206
|
precondition: ( (ContextKeyExpr.and(
|
|
207
207
|
_ctxCallHierarchyVisible,
|
|
208
208
|
(_ctxCallHierarchyDirection.isEqualTo("incomingCalls" ))
|
|
@@ -226,7 +226,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
226
226
|
constructor() {
|
|
227
227
|
super({
|
|
228
228
|
id: 'editor.refocusCallHierarchy',
|
|
229
|
-
title: ( localize2(
|
|
229
|
+
title: ( localize2(4237, 'Refocus Call Hierarchy')),
|
|
230
230
|
precondition: _ctxCallHierarchyVisible,
|
|
231
231
|
keybinding: {
|
|
232
232
|
weight: 200 ,
|
|
@@ -242,7 +242,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
242
242
|
constructor() {
|
|
243
243
|
super({
|
|
244
244
|
id: 'editor.closeCallHierarchy',
|
|
245
|
-
title: ( localize(
|
|
245
|
+
title: ( localize(4238, 'Close')),
|
|
246
246
|
icon: Codicon.close,
|
|
247
247
|
precondition: _ctxCallHierarchyVisible,
|
|
248
248
|
keybinding: {
|
|
@@ -257,13 +257,13 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
257
257
|
}
|
|
258
258
|
this._previewDisposable.add(value);
|
|
259
259
|
const title = this._direction === "outgoingCalls"
|
|
260
|
-
? ( localize(
|
|
261
|
-
: ( localize(
|
|
260
|
+
? ( localize(9627, "Calls from '{0}'", element.model.root.name))
|
|
261
|
+
: ( localize(9628, "Callers of '{0}'", element.model.root.name));
|
|
262
262
|
this.setTitle(title);
|
|
263
263
|
}
|
|
264
264
|
showLoading() {
|
|
265
265
|
this._parent.dataset['state'] = "loading" ;
|
|
266
|
-
this.setTitle(( localize(
|
|
266
|
+
this.setTitle(( localize(9629, "Loading...")));
|
|
267
267
|
this._show();
|
|
268
268
|
}
|
|
269
269
|
showMessage(message) {
|
|
@@ -282,8 +282,8 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
282
282
|
await this._tree.expand(root.element);
|
|
283
283
|
if (root.children.length === 0) {
|
|
284
284
|
this.showMessage(this._direction === "outgoingCalls"
|
|
285
|
-
? ( localize(
|
|
286
|
-
: ( localize(
|
|
285
|
+
? ( localize(9630, "No calls from '{0}'", model.root.name))
|
|
286
|
+
: ( localize(9631, "No callers of '{0}'", model.root.name)));
|
|
287
287
|
}
|
|
288
288
|
else {
|
|
289
289
|
this._parent.dataset['state'] = "data" ;
|
|
@@ -128,14 +128,14 @@ class AccessibilityProvider {
|
|
|
128
128
|
this.getDirection = getDirection;
|
|
129
129
|
}
|
|
130
130
|
getWidgetAriaLabel() {
|
|
131
|
-
return ( localize(
|
|
131
|
+
return ( localize(11353, "Call Hierarchy"));
|
|
132
132
|
}
|
|
133
133
|
getAriaLabel(element) {
|
|
134
134
|
if (this.getDirection() === "outgoingCalls" ) {
|
|
135
|
-
return ( localize(
|
|
135
|
+
return ( localize(11354, "calls from {0}", element.item.name));
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
|
-
return ( localize(
|
|
138
|
+
return ( localize(11355, "callers of {0}", element.item.name));
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js
CHANGED
|
@@ -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(4431, "Editor Language Status")),
|
|
184
|
+
ariaLabel: ( localize(4432, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
|
|
185
185
|
tooltip: element,
|
|
186
186
|
command: ShowTooltipCommand,
|
|
187
187
|
text: isOneBusy ? `${text}\u00A0\u00A0$(sync~spin)` : text,
|
|
@@ -278,7 +278,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
278
278
|
}, { hoverDelegate: nativeHoverDelegate }, this._hoverService, this._openerService))));
|
|
279
279
|
}
|
|
280
280
|
const actionBar = ( (new ActionBar(right, { hoverDelegate: nativeHoverDelegate })));
|
|
281
|
-
const actionLabel = isPinned ? ( localize(
|
|
281
|
+
const actionLabel = isPinned ? ( localize(4433, "Remove from Status Bar")) : ( localize(4434, "Add to Status Bar"));
|
|
282
282
|
actionBar.setAriaLabel(actionLabel);
|
|
283
283
|
store.add(actionBar);
|
|
284
284
|
let action;
|
|
@@ -333,10 +333,10 @@ let LanguageStatus = class LanguageStatus {
|
|
|
333
333
|
}
|
|
334
334
|
const textValue = typeof status.label === 'string' ? status.label : status.label.value;
|
|
335
335
|
if (status.detail) {
|
|
336
|
-
return { label: ( localize(
|
|
336
|
+
return { label: ( localize(4435, '{0}, {1}', textValue, status.detail)) };
|
|
337
337
|
}
|
|
338
338
|
else {
|
|
339
|
-
return { label: ( localize(
|
|
339
|
+
return { label: ( localize(4436, '{0}', textValue)) };
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
static _asStatusbarEntry(item) {
|
|
@@ -349,7 +349,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
349
349
|
}
|
|
350
350
|
const textValue = typeof item.label === 'string' ? item.label : item.label.shortValue;
|
|
351
351
|
return {
|
|
352
|
-
name: ( localize(
|
|
352
|
+
name: ( localize(4437, '{0} (Language Status)', item.name)),
|
|
353
353
|
text: item.busy ? `${textValue}\u00A0\u00A0$(sync~spin)` : textValue,
|
|
354
354
|
ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
|
|
355
355
|
role: item.accessibilityInfo?.role,
|
|
@@ -372,7 +372,7 @@ registerAction2(class extends Action2 {
|
|
|
372
372
|
constructor() {
|
|
373
373
|
super({
|
|
374
374
|
id: 'editor.inlayHints.Reset',
|
|
375
|
-
title: ( localize2(
|
|
375
|
+
title: ( localize2(4438, "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
|
@@ -11,7 +11,7 @@ import { FoldingController } from 'vscode/vscode/vs/editor/contrib/folding/brows
|
|
|
11
11
|
import { ColorDetector } from 'vscode/vscode/vs/editor/contrib/colorPicker/browser/colorDetector';
|
|
12
12
|
|
|
13
13
|
const openSettingsCommand = 'workbench.action.openSettings';
|
|
14
|
-
const configureSettingsLabel = ( localize(
|
|
14
|
+
const configureSettingsLabel = ( localize(4447, "Configure"));
|
|
15
15
|
let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
|
|
16
16
|
constructor(editorService, languageStatusService) {
|
|
17
17
|
super();
|
|
@@ -41,9 +41,9 @@ LimitIndicatorContribution = ( (__decorate([
|
|
|
41
41
|
class ColorDecorationAccessor {
|
|
42
42
|
constructor() {
|
|
43
43
|
this.id = 'decoratorsLimitInfo';
|
|
44
|
-
this.name = ( localize(
|
|
45
|
-
this.label = ( localize(
|
|
46
|
-
this.source = ( localize(
|
|
44
|
+
this.name = ( localize(4448, 'Color Decorator Status'));
|
|
45
|
+
this.label = ( localize(4449, 'Color Decorators'));
|
|
46
|
+
this.source = ( localize(4450, '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(4451, 'Folding Status'));
|
|
57
|
+
this.label = ( localize(4452, 'Folding Ranges'));
|
|
58
|
+
this.source = ( localize(4453, 'Folding'));
|
|
59
59
|
this.settingsId = 'editor.foldingMaximumRegions';
|
|
60
60
|
}
|
|
61
61
|
getLimitReporter(editor) {
|
|
@@ -97,7 +97,7 @@ class LanguageStatusEntry {
|
|
|
97
97
|
name: this.accessor.name,
|
|
98
98
|
severity: Severity$1.Warning,
|
|
99
99
|
label: this.accessor.label,
|
|
100
|
-
detail: ( localize(
|
|
100
|
+
detail: ( localize(4454, '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,
|
|
@@ -12,7 +12,7 @@ import { MergeEditorInput } from 'vscode/vscode/vs/workbench/contrib/mergeEditor
|
|
|
12
12
|
import { MergeEditor, MergeEditorOpenHandlerContribution, MergeEditorResolverContribution } from './view/mergeEditor.js';
|
|
13
13
|
import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
14
14
|
|
|
15
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(
|
|
15
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(4439, "Merge Editor"))), [
|
|
16
16
|
( (new SyncDescriptor(MergeEditorInput)))
|
|
17
17
|
]);
|
|
18
18
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(MergeEditorInput.ID, MergeEditorSerializer);
|
|
@@ -23,8 +23,8 @@ import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
|
23
23
|
enum: ['legacy', 'advanced'],
|
|
24
24
|
default: 'advanced',
|
|
25
25
|
markdownEnumDescriptions: [
|
|
26
|
-
( localize(
|
|
27
|
-
( localize(
|
|
26
|
+
( localize(4440, "Uses the legacy diffing algorithm.")),
|
|
27
|
+
( localize(4441, "Uses the advanced diffing algorithm.")),
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
'mergeEditor.showDeletionMarkers': {
|
|
@@ -22,11 +22,11 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
22
22
|
this.keyboardLayoutService = keyboardLayoutService;
|
|
23
23
|
this.statusbarService = statusbarService;
|
|
24
24
|
this.pickerElement = this._register(( (new MutableDisposable())));
|
|
25
|
-
const name = ( localize(
|
|
25
|
+
const name = ( localize(4457, "Keyboard Layout"));
|
|
26
26
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
27
27
|
if (layout) {
|
|
28
28
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
29
|
-
const text = ( localize(
|
|
29
|
+
const text = ( localize(4458, "Layout: {0}", layoutInfo.label));
|
|
30
30
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
31
31
|
name,
|
|
32
32
|
text,
|
|
@@ -38,7 +38,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
38
38
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
39
39
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
40
40
|
if (this.pickerElement.value) {
|
|
41
|
-
const text = ( localize(
|
|
41
|
+
const text = ( localize(4458, "Layout: {0}", layoutInfo.label));
|
|
42
42
|
this.pickerElement.value.update({
|
|
43
43
|
name,
|
|
44
44
|
text,
|
|
@@ -47,7 +47,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
|
-
const text = ( localize(
|
|
50
|
+
const text = ( localize(4458, "Layout: {0}", layoutInfo.label));
|
|
51
51
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
52
52
|
name,
|
|
53
53
|
text,
|
|
@@ -65,11 +65,11 @@ KeyboardLayoutPickerContribution = ( (__decorate([
|
|
|
65
65
|
registerWorkbenchContribution2(KeyboardLayoutPickerContribution.ID, KeyboardLayoutPickerContribution, 1 );
|
|
66
66
|
const DEFAULT_CONTENT = [
|
|
67
67
|
`// ${( localize(
|
|
68
|
-
|
|
68
|
+
4459,
|
|
69
69
|
'Defines the keyboard layout used in VS Code in the browser environment.'
|
|
70
70
|
))}`,
|
|
71
71
|
`// ${( localize(
|
|
72
|
-
|
|
72
|
+
4460,
|
|
73
73
|
'Open VS Code and run "Developer: Inspect Key Mappings (JSON)" from Command Palette.'
|
|
74
74
|
))}`,
|
|
75
75
|
``,
|
|
@@ -80,7 +80,7 @@ registerAction2(class extends Action2 {
|
|
|
80
80
|
constructor() {
|
|
81
81
|
super({
|
|
82
82
|
id: KEYBOARD_LAYOUT_OPEN_PICKER,
|
|
83
|
-
title: ( localize2(
|
|
83
|
+
title: ( localize2(4461, "Change Keyboard Layout")),
|
|
84
84
|
f1: true
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -110,17 +110,17 @@ registerAction2(class extends Action2 {
|
|
|
110
110
|
});
|
|
111
111
|
if (picks.length > 0) {
|
|
112
112
|
const platform = isMacintosh ? 'Mac' : isWindows ? 'Win' : 'Linux';
|
|
113
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
113
|
+
picks.unshift({ type: 'separator', label: ( localize(4462, "Keyboard Layouts ({0})", platform)) });
|
|
114
114
|
}
|
|
115
|
-
const configureKeyboardLayout = { label: ( localize(
|
|
115
|
+
const configureKeyboardLayout = { label: ( localize(4463, "Configure Keyboard Layout")) };
|
|
116
116
|
picks.unshift(configureKeyboardLayout);
|
|
117
117
|
const autoDetectMode = {
|
|
118
|
-
label: ( localize(
|
|
118
|
+
label: ( localize(4464, "Auto Detect")),
|
|
119
119
|
description: isAutoDetect ? `Current: ${parseKeyboardLayoutDescription(currentLayout).label}` : undefined,
|
|
120
120
|
picked: isAutoDetect ? true : undefined
|
|
121
121
|
};
|
|
122
122
|
picks.unshift(autoDetectMode);
|
|
123
|
-
const pick = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
123
|
+
const pick = await quickInputService.pick(picks, { placeHolder: ( localize(4465, "Select Keyboard Layout")), matchOnDescription: true });
|
|
124
124
|
if (!pick) {
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
@@ -143,7 +143,7 @@ registerAction2(class extends Action2 {
|
|
|
143
143
|
});
|
|
144
144
|
}, (error) => {
|
|
145
145
|
throw ( (new Error(
|
|
146
|
-
localize(
|
|
146
|
+
localize(4466, "Unable to create '{0}' ({1}).", ( (file.toString())), error)
|
|
147
147
|
)));
|
|
148
148
|
});
|
|
149
149
|
return Promise.resolve();
|
|
@@ -18,7 +18,7 @@ import { isIOS } from 'vscode/vscode/vs/base/common/platform';
|
|
|
18
18
|
minimum: 1,
|
|
19
19
|
maximum: 20,
|
|
20
20
|
description: ( localize(
|
|
21
|
-
|
|
21
|
+
4445,
|
|
22
22
|
"Controls the feedback area size in pixels of the dragging area in between views/editors. Set it to a larger value if you feel it's hard to resize views using the mouse."
|
|
23
23
|
))
|
|
24
24
|
},
|
|
@@ -28,7 +28,7 @@ import { isIOS } from 'vscode/vscode/vs/base/common/platform';
|
|
|
28
28
|
minimum: 0,
|
|
29
29
|
maximum: 2000,
|
|
30
30
|
description: ( localize(
|
|
31
|
-
|
|
31
|
+
4446,
|
|
32
32
|
"Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
|
|
33
33
|
))
|
|
34
34
|
},
|
|
@@ -18,12 +18,12 @@ import { TypeHierarchyTreePeekWidget } from './typeHierarchyPeek.js';
|
|
|
18
18
|
import { TypeHierarchyProviderRegistry, TypeHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
|
|
19
19
|
|
|
20
20
|
var TypeHierarchyController_1;
|
|
21
|
-
const _ctxHasTypeHierarchyProvider = ( (new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(
|
|
22
|
-
const _ctxTypeHierarchyVisible = ( (new RawContextKey('typeHierarchyVisible', false, ( localize(
|
|
21
|
+
const _ctxHasTypeHierarchyProvider = ( (new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(4239, 'Whether a type hierarchy provider is available')))));
|
|
22
|
+
const _ctxTypeHierarchyVisible = ( (new RawContextKey('typeHierarchyVisible', false, ( localize(4240, 'Whether type hierarchy peek is currently showing')))));
|
|
23
23
|
const _ctxTypeHierarchyDirection = ( (new RawContextKey(
|
|
24
24
|
'typeHierarchyDirection',
|
|
25
25
|
undefined,
|
|
26
|
-
{ type: 'string', description: ( localize(
|
|
26
|
+
{ type: 'string', description: ( localize(4241, 'whether type hierarchy shows super types or subtypes')) }
|
|
27
27
|
)));
|
|
28
28
|
function sanitizedDirection(candidate) {
|
|
29
29
|
return candidate === "subtypes" || candidate === "supertypes"
|
|
@@ -92,14 +92,14 @@ let TypeHierarchyController = class TypeHierarchyController {
|
|
|
92
92
|
this._widget.showModel(model);
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
95
|
-
this._widget.showMessage(( localize(
|
|
95
|
+
this._widget.showMessage(( localize(4242, "No results")));
|
|
96
96
|
}
|
|
97
97
|
}).catch(err => {
|
|
98
98
|
if (isCancellationError(err)) {
|
|
99
99
|
this.endTypeHierarchy();
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
|
-
this._widget.showMessage(( localize(
|
|
102
|
+
this._widget.showMessage(( localize(4243, "Failed to show type hierarchy")));
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
async startTypeHierarchyFromTypeHierarchy() {
|
|
@@ -144,7 +144,7 @@ registerAction2(class PeekTypeHierarchyAction extends EditorAction2 {
|
|
|
144
144
|
constructor() {
|
|
145
145
|
super({
|
|
146
146
|
id: 'editor.showTypeHierarchy',
|
|
147
|
-
title: ( localize2(
|
|
147
|
+
title: ( localize2(4244, 'Peek Type Hierarchy')),
|
|
148
148
|
menu: {
|
|
149
149
|
id: MenuId.EditorContextPeek,
|
|
150
150
|
group: 'navigation',
|
|
@@ -163,7 +163,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
163
163
|
constructor() {
|
|
164
164
|
super({
|
|
165
165
|
id: 'editor.showSupertypes',
|
|
166
|
-
title: ( localize2(
|
|
166
|
+
title: ( localize2(4245, 'Show Supertypes')),
|
|
167
167
|
icon: Codicon.typeHierarchySuper,
|
|
168
168
|
precondition: ( (ContextKeyExpr.and(
|
|
169
169
|
_ctxTypeHierarchyVisible,
|
|
@@ -188,7 +188,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
188
188
|
constructor() {
|
|
189
189
|
super({
|
|
190
190
|
id: 'editor.showSubtypes',
|
|
191
|
-
title: ( localize2(
|
|
191
|
+
title: ( localize2(4246, 'Show Subtypes')),
|
|
192
192
|
icon: Codicon.typeHierarchySub,
|
|
193
193
|
precondition: ( (ContextKeyExpr.and(
|
|
194
194
|
_ctxTypeHierarchyVisible,
|
|
@@ -213,7 +213,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
213
213
|
constructor() {
|
|
214
214
|
super({
|
|
215
215
|
id: 'editor.refocusTypeHierarchy',
|
|
216
|
-
title: ( localize2(
|
|
216
|
+
title: ( localize2(4247, 'Refocus Type Hierarchy')),
|
|
217
217
|
precondition: _ctxTypeHierarchyVisible,
|
|
218
218
|
keybinding: {
|
|
219
219
|
weight: 200 ,
|
|
@@ -229,7 +229,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: 'editor.closeTypeHierarchy',
|
|
232
|
-
title: ( localize(
|
|
232
|
+
title: ( localize(4248, 'Close')),
|
|
233
233
|
icon: Codicon.close,
|
|
234
234
|
precondition: _ctxTypeHierarchyVisible,
|
|
235
235
|
keybinding: {
|
|
@@ -252,13 +252,13 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
252
252
|
}
|
|
253
253
|
this._previewDisposable.add(value);
|
|
254
254
|
const title = this._direction === "supertypes"
|
|
255
|
-
? ( localize(
|
|
256
|
-
: ( localize(
|
|
255
|
+
? ( localize(9632, "Supertypes of '{0}'", element.model.root.name))
|
|
256
|
+
: ( localize(9633, "Subtypes of '{0}'", element.model.root.name));
|
|
257
257
|
this.setTitle(title);
|
|
258
258
|
}
|
|
259
259
|
showLoading() {
|
|
260
260
|
this._parent.dataset['state'] = "loading" ;
|
|
261
|
-
this.setTitle(( localize(
|
|
261
|
+
this.setTitle(( localize(9634, "Loading...")));
|
|
262
262
|
this._show();
|
|
263
263
|
}
|
|
264
264
|
showMessage(message) {
|
|
@@ -277,8 +277,8 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
277
277
|
await this._tree.expand(root.element);
|
|
278
278
|
if (root.children.length === 0) {
|
|
279
279
|
this.showMessage(this._direction === "supertypes"
|
|
280
|
-
? ( localize(
|
|
281
|
-
: ( localize(
|
|
280
|
+
? ( localize(9635, "No supertypes of '{0}'", model.root.name))
|
|
281
|
+
: ( localize(9636, "No subtypes of '{0}'", model.root.name)));
|
|
282
282
|
}
|
|
283
283
|
else {
|
|
284
284
|
this._parent.dataset['state'] = "data" ;
|
|
@@ -116,14 +116,14 @@ class AccessibilityProvider {
|
|
|
116
116
|
this.getDirection = getDirection;
|
|
117
117
|
}
|
|
118
118
|
getWidgetAriaLabel() {
|
|
119
|
-
return ( localize(
|
|
119
|
+
return ( localize(11356, "Type Hierarchy"));
|
|
120
120
|
}
|
|
121
121
|
getAriaLabel(element) {
|
|
122
122
|
if (this.getDirection() === "supertypes" ) {
|
|
123
|
-
return ( localize(
|
|
123
|
+
return ( localize(11357, "supertypes of {0}", element.item.name));
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
126
|
-
return ( localize(
|
|
126
|
+
return ( localize(11358, "subtypes of {0}", element.item.name));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -16,7 +16,7 @@ import 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbench
|
|
|
16
16
|
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
17
17
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
18
18
|
|
|
19
|
-
(( (Registry.as(EditorExtensions.EditorPane)))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(
|
|
19
|
+
(( (Registry.as(EditorExtensions.EditorPane)))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(4430, "webview editor"))), [( (new SyncDescriptor(WebviewInput)))]);
|
|
20
20
|
let WebviewPanelContribution = class WebviewPanelContribution extends Disposable {
|
|
21
21
|
static { this.ID = 'workbench.contrib.webviewPanel'; }
|
|
22
22
|
constructor(editorService, editorGroupService) {
|
|
@@ -448,8 +448,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
448
448
|
if (storedChoices[globForResource] && storedChoices[globForResource].find(editorID => editorID === currentEditor.editorId)) {
|
|
449
449
|
return;
|
|
450
450
|
}
|
|
451
|
-
const handle = this.notificationService.prompt(Severity$1.Warning, ( localize(
|
|
452
|
-
label: ( localize(
|
|
451
|
+
const handle = this.notificationService.prompt(Severity$1.Warning, ( localize(4152, 'There are multiple default editors available for the resource.')), [{
|
|
452
|
+
label: ( localize(4153, 'Configure Default')),
|
|
453
453
|
run: async () => {
|
|
454
454
|
const picked = await this.doPickEditor(untypedInput, true);
|
|
455
455
|
if (!picked) {
|
|
@@ -470,7 +470,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
470
470
|
}
|
|
471
471
|
},
|
|
472
472
|
{
|
|
473
|
-
label: ( localize(
|
|
473
|
+
label: ( localize(4154, 'Keep {0}', editorName)),
|
|
474
474
|
run: writeCurrentEditorsToStorage
|
|
475
475
|
}
|
|
476
476
|
]);
|
|
@@ -496,9 +496,9 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
498
|
const quickPickEntries = [];
|
|
499
|
-
const currentlyActiveLabel = ( localize(
|
|
500
|
-
const currentDefaultLabel = ( localize(
|
|
501
|
-
const currentDefaultAndActiveLabel = ( localize(
|
|
499
|
+
const currentlyActiveLabel = ( localize(4155, "Active"));
|
|
500
|
+
const currentDefaultLabel = ( localize(4156, "Default"));
|
|
501
|
+
const currentDefaultAndActiveLabel = ( localize(4157, "Active and Default"));
|
|
502
502
|
let defaultViewType = defaultSetting;
|
|
503
503
|
if (!defaultViewType && registeredEditors.length > 2 && registeredEditors[1]?.editorInfo.priority !== RegisteredEditorPriority.option) {
|
|
504
504
|
defaultViewType = registeredEditors[1]?.editorInfo.id;
|
|
@@ -523,7 +523,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
523
523
|
quickPickEntries.push(separator);
|
|
524
524
|
const configureDefaultEntry = {
|
|
525
525
|
id: EditorResolverService_1.configureDefaultID,
|
|
526
|
-
label: ( localize(
|
|
526
|
+
label: ( localize(4158, "Configure default editor for '{0}'...", `*${extname(resource)}`)),
|
|
527
527
|
};
|
|
528
528
|
quickPickEntries.push(configureDefaultEntry);
|
|
529
529
|
}
|
|
@@ -538,8 +538,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
538
538
|
const disposables = ( (new DisposableStore()));
|
|
539
539
|
const editorPicker = disposables.add(this.quickInputService.createQuickPick({ useSeparators: true }));
|
|
540
540
|
const placeHolderMessage = showDefaultPicker ?
|
|
541
|
-
( localize(
|
|
542
|
-
( localize(
|
|
541
|
+
( localize(4159, "Select new default editor for '{0}'", `*${extname(resource)}`)) :
|
|
542
|
+
( localize(4160, "Select editor for '{0}'", basename(resource)));
|
|
543
543
|
editorPicker.placeholder = placeHolderMessage;
|
|
544
544
|
editorPicker.canAcceptInBackground = true;
|
|
545
545
|
editorPicker.items = editorPicks;
|
|
@@ -52,33 +52,33 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
52
52
|
this.activeEditorListeners = this._register(( (new DisposableStore())));
|
|
53
53
|
this.lastActiveEditor = undefined;
|
|
54
54
|
this.editorHelper = this.instantiationService.createInstance(EditorHelper);
|
|
55
|
-
this.canNavigateBackContextKey = (( (new RawContextKey('canNavigateBack', false, ( localize(
|
|
56
|
-
this.canNavigateForwardContextKey = (( (new RawContextKey('canNavigateForward', false, ( localize(
|
|
55
|
+
this.canNavigateBackContextKey = (( (new RawContextKey('canNavigateBack', false, ( localize(4202, "Whether it is possible to navigate back in editor history")))))).bindTo(this.contextKeyService);
|
|
56
|
+
this.canNavigateForwardContextKey = (( (new RawContextKey('canNavigateForward', false, ( localize(4203, "Whether it is possible to navigate forward in editor history")))))).bindTo(this.contextKeyService);
|
|
57
57
|
this.canNavigateBackInNavigationsContextKey = (( (new RawContextKey('canNavigateBackInNavigationLocations', false, ( localize(
|
|
58
|
-
|
|
58
|
+
4204,
|
|
59
59
|
"Whether it is possible to navigate back in editor navigation locations history"
|
|
60
60
|
)))))).bindTo(this.contextKeyService);
|
|
61
61
|
this.canNavigateForwardInNavigationsContextKey = (( (new RawContextKey('canNavigateForwardInNavigationLocations', false, ( localize(
|
|
62
|
-
|
|
62
|
+
4205,
|
|
63
63
|
"Whether it is possible to navigate forward in editor navigation locations history"
|
|
64
64
|
)))))).bindTo(this.contextKeyService);
|
|
65
65
|
this.canNavigateToLastNavigationLocationContextKey = (( (new RawContextKey('canNavigateToLastNavigationLocation', false, ( localize(
|
|
66
|
-
|
|
66
|
+
4206,
|
|
67
67
|
"Whether it is possible to navigate to the last editor navigation location"
|
|
68
68
|
)))))).bindTo(this.contextKeyService);
|
|
69
69
|
this.canNavigateBackInEditsContextKey = (( (new RawContextKey('canNavigateBackInEditLocations', false, ( localize(
|
|
70
|
-
|
|
70
|
+
4207,
|
|
71
71
|
"Whether it is possible to navigate back in editor edit locations history"
|
|
72
72
|
)))))).bindTo(this.contextKeyService);
|
|
73
73
|
this.canNavigateForwardInEditsContextKey = (( (new RawContextKey('canNavigateForwardInEditLocations', false, ( localize(
|
|
74
|
-
|
|
74
|
+
4208,
|
|
75
75
|
"Whether it is possible to navigate forward in editor edit locations history"
|
|
76
76
|
)))))).bindTo(this.contextKeyService);
|
|
77
77
|
this.canNavigateToLastEditLocationContextKey = (( (new RawContextKey('canNavigateToLastEditLocation', false, ( localize(
|
|
78
|
-
|
|
78
|
+
4209,
|
|
79
79
|
"Whether it is possible to navigate to the last editor edit location"
|
|
80
80
|
)))))).bindTo(this.contextKeyService);
|
|
81
|
-
this.canReopenClosedEditorContextKey = (( (new RawContextKey('canReopenClosedEditor', false, ( localize(
|
|
81
|
+
this.canReopenClosedEditorContextKey = (( (new RawContextKey('canReopenClosedEditor', false, ( localize(4210, "Whether it is possible to reopen the last closed editor")))))).bindTo(this.contextKeyService);
|
|
82
82
|
this._onDidChangeEditorNavigationStack = this._register(( (new Emitter())));
|
|
83
83
|
this.onDidChangeEditorNavigationStack = this._onDidChangeEditorNavigationStack.event;
|
|
84
84
|
this.defaultScopedEditorNavigationStack = undefined;
|