@codingame/monaco-vscode-view-common-service-override 33.0.9 → 34.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/service-override/vs/workbench/contrib/webview/browser/pre/index.html +14 -8
- package/vscode/src/vs/sessions/common/theme.d.ts +4 -0
- package/vscode/src/vs/sessions/common/theme.js +44 -26
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +65 -57
- 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 +168 -168
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubar.contribution.js +8 -8
- package/vscode/src/vs/workbench/browser/workbench.zenMode.contribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +3 -3
- 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 +13 -13
- 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 +9 -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/conflictActions.js +20 -20
- 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 +10 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +3 -3
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +13 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +1 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +8 -8
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +10 -8
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.d.ts +0 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +8 -15
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +9 -9
|
@@ -33,19 +33,19 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
33
33
|
this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
34
34
|
{
|
|
35
35
|
id: "workbench.input.interactive",
|
|
36
|
-
label: ( localize(
|
|
36
|
+
label: ( localize(3587, "Interactive Window")),
|
|
37
37
|
priority: toRegisteredEditorPriorityInfo(RegisteredEditorPriority.builtin)
|
|
38
38
|
}, {
|
|
39
39
|
id: "mainThreadWebview-markdown.preview",
|
|
40
|
-
label: ( localize(
|
|
40
|
+
label: ( localize(3588, "Markdown Preview")),
|
|
41
41
|
priority: toRegisteredEditorPriorityInfo(RegisteredEditorPriority.builtin)
|
|
42
42
|
}, {
|
|
43
43
|
id: "mainThreadWebview-simpleBrowser.view",
|
|
44
|
-
label: ( localize(
|
|
44
|
+
label: ( localize(3589, "Simple Browser")),
|
|
45
45
|
priority: toRegisteredEditorPriorityInfo(RegisteredEditorPriority.builtin)
|
|
46
46
|
}, {
|
|
47
47
|
id: "mainThreadWebview-browserPreview",
|
|
48
|
-
label: ( localize(
|
|
48
|
+
label: ( localize(3590, "Live Preview")),
|
|
49
49
|
priority: toRegisteredEditorPriorityInfo(RegisteredEditorPriority.builtin)
|
|
50
50
|
}];
|
|
51
51
|
}
|
|
@@ -94,7 +94,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
94
94
|
"workbench.editor.autoLockGroups": {
|
|
95
95
|
type: "object",
|
|
96
96
|
description: ( localize(
|
|
97
|
-
|
|
97
|
+
3591,
|
|
98
98
|
"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."
|
|
99
99
|
)),
|
|
100
100
|
properties: autoLockGroupConfiguration,
|
|
@@ -112,7 +112,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
112
112
|
default: "",
|
|
113
113
|
enum: [...binaryEditorCandidates, ""],
|
|
114
114
|
description: ( localize(
|
|
115
|
-
|
|
115
|
+
3592,
|
|
116
116
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
117
117
|
))
|
|
118
118
|
}
|
|
@@ -125,7 +125,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
125
125
|
[editorsAssociationsSettingId]: {
|
|
126
126
|
type: "object",
|
|
127
127
|
markdownDescription: ( localize(
|
|
128
|
-
|
|
128
|
+
3593,
|
|
129
129
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
130
130
|
)),
|
|
131
131
|
patternProperties: {
|
|
@@ -147,7 +147,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
147
147
|
[diffEditorsAssociationsSettingId]: {
|
|
148
148
|
type: "object",
|
|
149
149
|
markdownDescription: ( localize(
|
|
150
|
-
|
|
150
|
+
3594,
|
|
151
151
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors for diff views (for example `\"*.md\": \"vscode.markdown.preview.editor\"`). These override `workbench.editorAssociations` for diffs."
|
|
152
152
|
)),
|
|
153
153
|
patternProperties: {
|
|
@@ -169,7 +169,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
169
169
|
minimum: 1,
|
|
170
170
|
scope: ConfigurationScope.RESOURCE,
|
|
171
171
|
markdownDescription: ( localize(
|
|
172
|
-
|
|
172
|
+
3595,
|
|
173
173
|
"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."
|
|
174
174
|
))
|
|
175
175
|
}
|
|
@@ -8,7 +8,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
8
8
|
title: {
|
|
9
9
|
value: "File",
|
|
10
10
|
original: "File",
|
|
11
|
-
mnemonicTitle: ( localize(
|
|
11
|
+
mnemonicTitle: ( localize(3855, "&&File"))
|
|
12
12
|
},
|
|
13
13
|
order: 1
|
|
14
14
|
});
|
|
@@ -17,7 +17,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
17
17
|
title: {
|
|
18
18
|
value: "Edit",
|
|
19
19
|
original: "Edit",
|
|
20
|
-
mnemonicTitle: ( localize(
|
|
20
|
+
mnemonicTitle: ( localize(3856, "&&Edit"))
|
|
21
21
|
},
|
|
22
22
|
order: 2
|
|
23
23
|
});
|
|
@@ -26,7 +26,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
26
26
|
title: {
|
|
27
27
|
value: "Selection",
|
|
28
28
|
original: "Selection",
|
|
29
|
-
mnemonicTitle: ( localize(
|
|
29
|
+
mnemonicTitle: ( localize(3857, "&&Selection"))
|
|
30
30
|
},
|
|
31
31
|
order: 3
|
|
32
32
|
});
|
|
@@ -35,7 +35,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
35
35
|
title: {
|
|
36
36
|
value: "View",
|
|
37
37
|
original: "View",
|
|
38
|
-
mnemonicTitle: ( localize(
|
|
38
|
+
mnemonicTitle: ( localize(3858, "&&View"))
|
|
39
39
|
},
|
|
40
40
|
order: 4
|
|
41
41
|
});
|
|
@@ -44,7 +44,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
44
44
|
title: {
|
|
45
45
|
value: "Go",
|
|
46
46
|
original: "Go",
|
|
47
|
-
mnemonicTitle: ( localize(
|
|
47
|
+
mnemonicTitle: ( localize(3859, "&&Go"))
|
|
48
48
|
},
|
|
49
49
|
order: 5
|
|
50
50
|
});
|
|
@@ -53,7 +53,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
53
53
|
title: {
|
|
54
54
|
value: "Terminal",
|
|
55
55
|
original: "Terminal",
|
|
56
|
-
mnemonicTitle: ( localize(
|
|
56
|
+
mnemonicTitle: ( localize(3860, "&&Terminal"))
|
|
57
57
|
},
|
|
58
58
|
order: 7
|
|
59
59
|
});
|
|
@@ -62,7 +62,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
62
62
|
title: {
|
|
63
63
|
value: "Help",
|
|
64
64
|
original: "Help",
|
|
65
|
-
mnemonicTitle: ( localize(
|
|
65
|
+
mnemonicTitle: ( localize(3861, "&&Help"))
|
|
66
66
|
},
|
|
67
67
|
order: 8
|
|
68
68
|
});
|
|
@@ -71,7 +71,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
71
71
|
title: {
|
|
72
72
|
value: "Preferences",
|
|
73
73
|
original: "Preferences",
|
|
74
|
-
mnemonicTitle: ( localize(
|
|
74
|
+
mnemonicTitle: ( localize(3862, "&&Preferences"))
|
|
75
75
|
},
|
|
76
76
|
when: IsMacNativeContext,
|
|
77
77
|
order: 9
|
|
@@ -16,40 +16,40 @@ import { ZenHideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingle
|
|
|
16
16
|
registry.registerConfiguration({
|
|
17
17
|
"id": "zenMode",
|
|
18
18
|
"order": 9,
|
|
19
|
-
"title": ( localize(
|
|
19
|
+
"title": ( localize(4183, "Zen Mode")),
|
|
20
20
|
"type": "object",
|
|
21
21
|
"properties": {
|
|
22
22
|
"zenMode.fullScreen": {
|
|
23
23
|
"type": "boolean",
|
|
24
24
|
"default": true,
|
|
25
25
|
"description": ( localize(
|
|
26
|
-
|
|
26
|
+
4184,
|
|
27
27
|
"Controls whether turning on Zen Mode also puts the workbench into full screen mode."
|
|
28
28
|
))
|
|
29
29
|
},
|
|
30
30
|
"zenMode.centerLayout": {
|
|
31
31
|
"type": "boolean",
|
|
32
32
|
"default": true,
|
|
33
|
-
"description": ( localize(
|
|
33
|
+
"description": ( localize(4185, "Controls whether turning on Zen Mode also centers the layout."))
|
|
34
34
|
},
|
|
35
35
|
"zenMode.showTabs": {
|
|
36
36
|
"type": "string",
|
|
37
37
|
"enum": ["multiple", "single", "none"],
|
|
38
38
|
"description": ( localize(
|
|
39
|
-
|
|
39
|
+
4186,
|
|
40
40
|
"Controls whether turning on Zen Mode should show multiple editor tabs, a single editor tab, or hide the editor title area completely."
|
|
41
41
|
)),
|
|
42
|
-
"enumDescriptions": [( localize(
|
|
43
|
-
|
|
42
|
+
"enumDescriptions": [( localize(4187, "Each editor is displayed as a tab in the editor title area.")), ( localize(
|
|
43
|
+
4188,
|
|
44
44
|
"The active editor is displayed as a single large tab in the editor title area."
|
|
45
|
-
)), ( localize(
|
|
45
|
+
)), ( localize(4189, "The editor title area is not displayed."))],
|
|
46
46
|
"default": "multiple"
|
|
47
47
|
},
|
|
48
48
|
"zenMode.hideStatusBar": {
|
|
49
49
|
"type": "boolean",
|
|
50
50
|
"default": true,
|
|
51
51
|
"description": ( localize(
|
|
52
|
-
|
|
52
|
+
4190,
|
|
53
53
|
"Controls whether turning on Zen Mode also hides the status bar at the bottom of the workbench."
|
|
54
54
|
))
|
|
55
55
|
},
|
|
@@ -57,7 +57,7 @@ import { ZenHideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingle
|
|
|
57
57
|
"type": "boolean",
|
|
58
58
|
"default": true,
|
|
59
59
|
"description": ( localize(
|
|
60
|
-
|
|
60
|
+
4191,
|
|
61
61
|
"Controls whether turning on Zen Mode also hides the activity bar either at the left or right of the workbench."
|
|
62
62
|
))
|
|
63
63
|
},
|
|
@@ -65,7 +65,7 @@ import { ZenHideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingle
|
|
|
65
65
|
"type": "boolean",
|
|
66
66
|
"default": true,
|
|
67
67
|
"description": ( localize(
|
|
68
|
-
|
|
68
|
+
4192,
|
|
69
69
|
"Controls whether turning on Zen Mode also hides the editor line numbers."
|
|
70
70
|
))
|
|
71
71
|
},
|
|
@@ -73,7 +73,7 @@ import { ZenHideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingle
|
|
|
73
73
|
"type": "boolean",
|
|
74
74
|
"default": true,
|
|
75
75
|
"description": ( localize(
|
|
76
|
-
|
|
76
|
+
4193,
|
|
77
77
|
"Controls whether a window should restore to Zen Mode if it was exited in Zen Mode."
|
|
78
78
|
))
|
|
79
79
|
},
|
|
@@ -81,7 +81,7 @@ import { ZenHideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingle
|
|
|
81
81
|
"type": "boolean",
|
|
82
82
|
"default": true,
|
|
83
83
|
"description": ( localize(
|
|
84
|
-
|
|
84
|
+
4194,
|
|
85
85
|
"Controls whether notifications do not disturb mode should be enabled while in Zen Mode. If true, only error notifications will pop out."
|
|
86
86
|
))
|
|
87
87
|
}
|
|
@@ -93,7 +93,7 @@ registerAction2(ZenShowMultipleEditorTabsAction);
|
|
|
93
93
|
registerAction2(ZenShowSingleEditorTabAction);
|
|
94
94
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
95
95
|
submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu,
|
|
96
|
-
title: ( localize(
|
|
96
|
+
title: ( localize(4195, "Tab Bar")),
|
|
97
97
|
group: "3_workbench_layout_move",
|
|
98
98
|
order: 10,
|
|
99
99
|
when: InEditorZenModeContext
|
|
@@ -103,8 +103,8 @@ registerAction2(class extends Action2 {
|
|
|
103
103
|
super({
|
|
104
104
|
id: "workbench.action.toggleZenMode",
|
|
105
105
|
title: {
|
|
106
|
-
...( localize2(
|
|
107
|
-
mnemonicTitle: ( localize(
|
|
106
|
+
...( localize2(4196, "Toggle Zen Mode")),
|
|
107
|
+
mnemonicTitle: ( localize(4197, "Zen Mode"))
|
|
108
108
|
},
|
|
109
109
|
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated()),
|
|
110
110
|
category: Categories.View,
|
|
@@ -24,11 +24,11 @@ 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(4808, "Whether a call hierarchy provider is available"))));
|
|
28
|
+
const _ctxCallHierarchyVisible = ( new RawContextKey("callHierarchyVisible", false, ( localize(4809, "Whether call hierarchy peek is currently showing"))));
|
|
29
29
|
const _ctxCallHierarchyDirection = ( new RawContextKey("callHierarchyDirection", undefined, {
|
|
30
30
|
type: "string",
|
|
31
|
-
description: ( localize(
|
|
31
|
+
description: ( localize(4810, "Whether call hierarchy shows incoming or outgoing calls"))
|
|
32
32
|
}));
|
|
33
33
|
function sanitizedDirection(candidate) {
|
|
34
34
|
return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo ? candidate : CallHierarchyDirection.CallsTo;
|
|
@@ -149,14 +149,14 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
149
149
|
this._sessionDisposables.add(model);
|
|
150
150
|
this._widget.showModel(model);
|
|
151
151
|
} else {
|
|
152
|
-
this._widget.showMessage(( localize(
|
|
152
|
+
this._widget.showMessage(( localize(4811, "No results")));
|
|
153
153
|
}
|
|
154
154
|
}).catch(err => {
|
|
155
155
|
if (isCancellationError(err)) {
|
|
156
156
|
this.endCallHierarchy();
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
this._widget.showMessage(( localize(
|
|
159
|
+
this._widget.showMessage(( localize(4812, "Failed to show call hierarchy")));
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
showOutgoingCalls() {
|
|
@@ -183,7 +183,7 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: "editor.showCallHierarchy",
|
|
186
|
-
title: ( localize2(
|
|
186
|
+
title: ( localize2(4813, "Peek Call Hierarchy")),
|
|
187
187
|
menu: {
|
|
188
188
|
id: MenuId.EditorContextPeek,
|
|
189
189
|
group: "navigation",
|
|
@@ -207,8 +207,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
207
207
|
constructor() {
|
|
208
208
|
super({
|
|
209
209
|
id: "editor.showIncomingCalls",
|
|
210
|
-
title: ( localize2(
|
|
211
|
-
icon: registerIcon("callhierarchy-incoming", Codicon.callIncoming, ( localize(
|
|
210
|
+
title: ( localize2(4814, "Show Incoming Calls")),
|
|
211
|
+
icon: registerIcon("callhierarchy-incoming", Codicon.callIncoming, ( localize(4815, "Icon for incoming calls in the call hierarchy view."))),
|
|
212
212
|
precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom)))),
|
|
213
213
|
keybinding: {
|
|
214
214
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -229,8 +229,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: "editor.showOutgoingCalls",
|
|
232
|
-
title: ( localize2(
|
|
233
|
-
icon: registerIcon("callhierarchy-outgoing", Codicon.callOutgoing, ( localize(
|
|
232
|
+
title: ( localize2(4816, "Show Outgoing Calls")),
|
|
233
|
+
icon: registerIcon("callhierarchy-outgoing", Codicon.callOutgoing, ( localize(4817, "Icon for outgoing calls in the call hierarchy view."))),
|
|
234
234
|
precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo)))),
|
|
235
235
|
keybinding: {
|
|
236
236
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -251,7 +251,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
251
251
|
constructor() {
|
|
252
252
|
super({
|
|
253
253
|
id: "editor.refocusCallHierarchy",
|
|
254
|
-
title: ( localize2(
|
|
254
|
+
title: ( localize2(4818, "Refocus Call Hierarchy")),
|
|
255
255
|
precondition: _ctxCallHierarchyVisible,
|
|
256
256
|
keybinding: {
|
|
257
257
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -267,7 +267,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
267
267
|
constructor() {
|
|
268
268
|
super({
|
|
269
269
|
id: "editor.closeCallHierarchy",
|
|
270
|
-
title: ( localize(
|
|
270
|
+
title: ( localize(4819, "Close")),
|
|
271
271
|
icon: Codicon.close,
|
|
272
272
|
precondition: _ctxCallHierarchyVisible,
|
|
273
273
|
keybinding: {
|
|
@@ -323,12 +323,12 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
323
323
|
this._previewDisposable.add(toDisposable(() => decorationsCollection.clear()));
|
|
324
324
|
}
|
|
325
325
|
this._previewDisposable.add(value);
|
|
326
|
-
const title = this._direction === CallHierarchyDirection.CallsFrom ? ( localize(
|
|
326
|
+
const title = this._direction === CallHierarchyDirection.CallsFrom ? ( localize(4820, "Calls from '{0}'", element.model.root.name)) : ( localize(4821, "Callers of '{0}'", element.model.root.name));
|
|
327
327
|
this.setTitle(title);
|
|
328
328
|
}
|
|
329
329
|
showLoading() {
|
|
330
330
|
this._parent.dataset["state"] = State.Loading;
|
|
331
|
-
this.setTitle(( localize(
|
|
331
|
+
this.setTitle(( localize(4822, "Loading...")));
|
|
332
332
|
this._show();
|
|
333
333
|
}
|
|
334
334
|
showMessage(message) {
|
|
@@ -346,7 +346,7 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
346
346
|
const root = this._tree.getNode(model).children[0];
|
|
347
347
|
await this._tree.expand(root.element);
|
|
348
348
|
if (root.children.length === 0) {
|
|
349
|
-
this.showMessage(this._direction === CallHierarchyDirection.CallsFrom ? ( localize(
|
|
349
|
+
this.showMessage(this._direction === CallHierarchyDirection.CallsFrom ? ( localize(4823, "No calls from '{0}'", model.root.name)) : ( localize(4824, "No callers of '{0}'", model.root.name)));
|
|
350
350
|
} else {
|
|
351
351
|
this._parent.dataset["state"] = State.Data;
|
|
352
352
|
if (!viewState || this._tree.getFocus().length === 0) {
|
|
@@ -131,13 +131,13 @@ class AccessibilityProvider {
|
|
|
131
131
|
this.getDirection = getDirection;
|
|
132
132
|
}
|
|
133
133
|
getWidgetAriaLabel() {
|
|
134
|
-
return localize(
|
|
134
|
+
return localize(4825, "Call Hierarchy");
|
|
135
135
|
}
|
|
136
136
|
getAriaLabel(element) {
|
|
137
137
|
if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
|
|
138
|
-
return localize(
|
|
138
|
+
return localize(4826, "calls from {0}", element.item.name);
|
|
139
139
|
} else {
|
|
140
|
-
return localize(
|
|
140
|
+
return localize(4827, "callers of {0}", element.item.name);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -42,7 +42,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
42
42
|
this.add(( new CustomEditorInfo({
|
|
43
43
|
id: webviewEditorContribution.viewType,
|
|
44
44
|
displayName: webviewEditorContribution.displayName,
|
|
45
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
45
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(8729, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
46
46
|
selector: webviewEditorContribution.selector || [],
|
|
47
47
|
priority
|
|
48
48
|
})));
|
|
@@ -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(8730, "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;
|
|
@@ -24,10 +24,10 @@ const customEditorPrioritySchema = {
|
|
|
24
24
|
type: "string",
|
|
25
25
|
enum: [CustomEditorPriority.default, CustomEditorPriority.option],
|
|
26
26
|
markdownEnumDescriptions: [( localize(
|
|
27
|
-
|
|
27
|
+
8732,
|
|
28
28
|
"The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource."
|
|
29
29
|
)), ( localize(
|
|
30
|
-
|
|
30
|
+
8733,
|
|
31
31
|
"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."
|
|
32
32
|
))]
|
|
33
33
|
};
|
|
@@ -39,20 +39,20 @@ const customEditorsContributionSchema = {
|
|
|
39
39
|
[Fields.viewType]: {
|
|
40
40
|
type: "string",
|
|
41
41
|
markdownDescription: ( localize(
|
|
42
|
-
|
|
42
|
+
8734,
|
|
43
43
|
"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)."
|
|
44
44
|
))
|
|
45
45
|
},
|
|
46
46
|
[Fields.displayName]: {
|
|
47
47
|
type: "string",
|
|
48
48
|
description: ( localize(
|
|
49
|
-
|
|
49
|
+
8735,
|
|
50
50
|
"Human readable name of the custom editor. This is displayed to users when selecting which editor to use."
|
|
51
51
|
))
|
|
52
52
|
},
|
|
53
53
|
[Fields.selector]: {
|
|
54
54
|
type: "array",
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(8736, "Set of globs that the custom editor is enabled for.")),
|
|
56
56
|
items: {
|
|
57
57
|
type: "object",
|
|
58
58
|
defaultSnippets: [{
|
|
@@ -64,14 +64,14 @@ const customEditorsContributionSchema = {
|
|
|
64
64
|
properties: {
|
|
65
65
|
filenamePattern: {
|
|
66
66
|
type: "string",
|
|
67
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(8737, "Glob that the custom editor is enabled for."))
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
[Fields.priority]: {
|
|
73
73
|
markdownDescription: ( localize(
|
|
74
|
-
|
|
74
|
+
8738,
|
|
75
75
|
"Controls if the custom editor is enabled automatically when the user opens a file, diff, or merge editor. This may be overridden by users using the `workbench.editorAssociations` or `workbench.diffEditorAssociations` setting."
|
|
76
76
|
)),
|
|
77
77
|
anyOf: [customEditorPrioritySchema, {
|
|
@@ -82,21 +82,21 @@ const customEditorsContributionSchema = {
|
|
|
82
82
|
[PriorityFields.editor]: {
|
|
83
83
|
...customEditorPrioritySchema,
|
|
84
84
|
markdownDescription: ( localize(
|
|
85
|
-
|
|
85
|
+
8739,
|
|
86
86
|
"Controls if the custom editor is enabled automatically when the user opens a file."
|
|
87
87
|
))
|
|
88
88
|
},
|
|
89
89
|
[PriorityFields.diff]: {
|
|
90
90
|
...customEditorPrioritySchema,
|
|
91
91
|
markdownDescription: ( localize(
|
|
92
|
-
|
|
92
|
+
8740,
|
|
93
93
|
"Controls if the custom editor is enabled automatically when the user opens a diff. When not specified, the value of `editor` is used."
|
|
94
94
|
))
|
|
95
95
|
},
|
|
96
96
|
[PriorityFields.merge]: {
|
|
97
97
|
...customEditorPrioritySchema,
|
|
98
98
|
markdownDescription: ( localize(
|
|
99
|
-
|
|
99
|
+
8741,
|
|
100
100
|
"Controls if the custom editor is enabled automatically when the user opens a merge editor. When not specified, the value of `editor` is used."
|
|
101
101
|
))
|
|
102
102
|
}
|
|
@@ -110,7 +110,7 @@ const customEditorsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
110
110
|
extensionPoint: "customEditors",
|
|
111
111
|
deps: [languagesExtPoint],
|
|
112
112
|
jsonSchema: {
|
|
113
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(8742, "Contributed custom editors.")),
|
|
114
114
|
type: "array",
|
|
115
115
|
defaultSnippets: [{
|
|
116
116
|
body: [{
|
|
@@ -151,7 +151,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
151
151
|
dispose: () => {}
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
const headers = [( localize(
|
|
154
|
+
const headers = [( localize(8743, "View Type")), ( localize(8744, "Priority")), ( localize(8745, "Filename Pattern"))];
|
|
155
155
|
const rows = ( customEditors.map(customEditor => {
|
|
156
156
|
return [
|
|
157
157
|
customEditor.viewType,
|
|
@@ -183,7 +183,7 @@ function renderPriority(priority) {
|
|
|
183
183
|
}
|
|
184
184
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
185
185
|
id: "customEditors",
|
|
186
|
-
label: ( localize(
|
|
186
|
+
label: ( localize(8746, "Custom Editors")),
|
|
187
187
|
access: {
|
|
188
188
|
canToggle: false
|
|
189
189
|
},
|
|
@@ -206,8 +206,8 @@ let LanguageStatus = class LanguageStatus {
|
|
|
206
206
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
207
207
|
}
|
|
208
208
|
const props = {
|
|
209
|
-
name: ( localize(
|
|
210
|
-
ariaLabel: ( localize(
|
|
209
|
+
name: ( localize(10893, "Editor Language Status")),
|
|
210
|
+
ariaLabel: ( localize(10894, "Editor Language Status: {0}", ariaLabels.join(", next: "))),
|
|
211
211
|
tooltip: this._combinedEntryTooltip,
|
|
212
212
|
command: ShowTooltipCommand,
|
|
213
213
|
text: isOneBusy ? "$(loading~spin)" : text
|
|
@@ -325,7 +325,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
325
325
|
const actionBar = ( new ActionBar(right, {
|
|
326
326
|
hoverDelegate: nativeHoverDelegate
|
|
327
327
|
}));
|
|
328
|
-
const actionLabel = isPinned ? ( localize(
|
|
328
|
+
const actionLabel = isPinned ? ( localize(10895, "Remove from Status Bar")) : ( localize(10896, "Add to Status Bar"));
|
|
329
329
|
actionBar.setAriaLabel(actionLabel);
|
|
330
330
|
store.add(actionBar);
|
|
331
331
|
let action;
|
|
@@ -393,11 +393,11 @@ let LanguageStatus = class LanguageStatus {
|
|
|
393
393
|
const textValue = typeof status.label === "string" ? status.label : status.label.value;
|
|
394
394
|
if (status.detail) {
|
|
395
395
|
return {
|
|
396
|
-
label: ( localize(
|
|
396
|
+
label: ( localize(10897, "{0}, {1}", textValue, status.detail))
|
|
397
397
|
};
|
|
398
398
|
} else {
|
|
399
399
|
return {
|
|
400
|
-
label: ( localize(
|
|
400
|
+
label: ( localize(10898, "{0}", textValue))
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
403
|
}
|
|
@@ -410,7 +410,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
410
410
|
}
|
|
411
411
|
const textValue = typeof item.label === "string" ? item.label : item.label.shortValue;
|
|
412
412
|
return {
|
|
413
|
-
name: ( localize(
|
|
413
|
+
name: ( localize(10899, "{0} (Language Status)", item.name)),
|
|
414
414
|
text: computeText(textValue, item.busy),
|
|
415
415
|
ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
|
|
416
416
|
role: item.accessibilityInfo?.role,
|
|
@@ -428,7 +428,7 @@ class ResetAction extends Action2 {
|
|
|
428
428
|
constructor() {
|
|
429
429
|
super({
|
|
430
430
|
id: "editor.inlayHints.Reset",
|
|
431
|
-
title: ( localize2(
|
|
431
|
+
title: ( localize2(10900, "Reset Language Status Interaction Counter")),
|
|
432
432
|
category: Categories.View,
|
|
433
433
|
f1: true
|
|
434
434
|
});
|
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(10901, "Configure"));
|
|
17
17
|
let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
|
|
18
18
|
constructor(editorService, languageStatusService) {
|
|
19
19
|
super();
|
|
@@ -38,9 +38,9 @@ LimitIndicatorContribution = ( __decorate([( __param(0, IEditorService)), ( __pa
|
|
|
38
38
|
class ColorDecorationAccessor {
|
|
39
39
|
constructor() {
|
|
40
40
|
this.id = "decoratorsLimitInfo";
|
|
41
|
-
this.name = ( localize(
|
|
42
|
-
this.label = ( localize(
|
|
43
|
-
this.source = ( localize(
|
|
41
|
+
this.name = ( localize(10902, "Color Decorator Status"));
|
|
42
|
+
this.label = ( localize(10903, "Color decorators"));
|
|
43
|
+
this.source = ( localize(10904, "Color Decorators"));
|
|
44
44
|
this.settingsId = "editor.colorDecoratorsLimit";
|
|
45
45
|
}
|
|
46
46
|
getLimitReporter(editor) {
|
|
@@ -50,9 +50,9 @@ class ColorDecorationAccessor {
|
|
|
50
50
|
class FoldingRangeAccessor {
|
|
51
51
|
constructor() {
|
|
52
52
|
this.id = "foldingLimitInfo";
|
|
53
|
-
this.name = ( localize(
|
|
54
|
-
this.label = ( localize(
|
|
55
|
-
this.source = ( localize(
|
|
53
|
+
this.name = ( localize(10905, "Folding Status"));
|
|
54
|
+
this.label = ( localize(10906, "Folding ranges"));
|
|
55
|
+
this.source = ( localize(10907, "Folding"));
|
|
56
56
|
this.settingsId = "editor.foldingMaximumRegions";
|
|
57
57
|
}
|
|
58
58
|
getLimitReporter(editor) {
|
|
@@ -94,7 +94,7 @@ class LanguageStatusEntry {
|
|
|
94
94
|
name: this.accessor.name,
|
|
95
95
|
severity: Severity.Warning,
|
|
96
96
|
label: this.accessor.label,
|
|
97
|
-
detail: ( localize(
|
|
97
|
+
detail: ( localize(10908, "only {0} shown for performance reasons", info.limited)),
|
|
98
98
|
command: {
|
|
99
99
|
id: openSettingsCommand,
|
|
100
100
|
arguments: [this.accessor.settingsId],
|