@codingame/monaco-vscode-keybindings-service-override 15.0.0 → 15.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 +9 -9
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +3 -3
- package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +3 -3
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +135 -135
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -24
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-keybindings-service-override",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - keybindings service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "15.0.
|
|
19
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "15.0.
|
|
20
|
-
"@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common": "15.0.
|
|
21
|
-
"@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common": "15.0.
|
|
22
|
-
"@codingame/monaco-vscode-81f603ca-d6ea-5402-90dd-3014dffc63b4-common": "15.0.
|
|
23
|
-
"@codingame/monaco-vscode-api": "15.0.
|
|
24
|
-
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "15.0.
|
|
25
|
-
"@codingame/monaco-vscode-files-service-override": "15.0.
|
|
18
|
+
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "15.0.2",
|
|
19
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "15.0.2",
|
|
20
|
+
"@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common": "15.0.2",
|
|
21
|
+
"@codingame/monaco-vscode-7559b0be-bfa5-5fe6-b731-1973fe9fffa1-common": "15.0.2",
|
|
22
|
+
"@codingame/monaco-vscode-81f603ca-d6ea-5402-90dd-3014dffc63b4-common": "15.0.2",
|
|
23
|
+
"@codingame/monaco-vscode-api": "15.0.2",
|
|
24
|
+
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "15.0.2",
|
|
25
|
+
"@codingame/monaco-vscode-files-service-override": "15.0.2"
|
|
26
26
|
},
|
|
27
27
|
"main": "index.js",
|
|
28
28
|
"module": "index.js",
|
|
@@ -20,7 +20,7 @@ const keyboardConfiguration = {
|
|
|
20
20
|
'id': 'keyboard',
|
|
21
21
|
'order': 15,
|
|
22
22
|
'type': 'object',
|
|
23
|
-
'title': ( localize(
|
|
23
|
+
'title': ( localize(1838, "Keyboard")),
|
|
24
24
|
'properties': {
|
|
25
25
|
'keyboard.dispatch': {
|
|
26
26
|
scope: ConfigurationScope.APPLICATION,
|
|
@@ -28,7 +28,7 @@ const keyboardConfiguration = {
|
|
|
28
28
|
enum: ['code', 'keyCode'],
|
|
29
29
|
default: 'code',
|
|
30
30
|
markdownDescription: ( localize(
|
|
31
|
-
|
|
31
|
+
1839,
|
|
32
32
|
"Controls the dispatching logic for key presses to use either `code` (recommended) or `keyCode`."
|
|
33
33
|
)),
|
|
34
34
|
included: OS === OperatingSystem.Macintosh || OS === OperatingSystem.Linux
|
|
@@ -37,7 +37,7 @@ const keyboardConfiguration = {
|
|
|
37
37
|
scope: ConfigurationScope.APPLICATION,
|
|
38
38
|
type: 'boolean',
|
|
39
39
|
default: false,
|
|
40
|
-
markdownDescription: ( localize(
|
|
40
|
+
markdownDescription: ( localize(1840, "Controls if the AltGraph+ modifier should be treated as Ctrl+Alt+.")),
|
|
41
41
|
included: OS === OperatingSystem.Windows
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -10,10 +10,10 @@ class RunCommands extends Action2 {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: 'runCommands',
|
|
13
|
-
title: ( localize2(
|
|
13
|
+
title: ( localize2(5035, "Run Commands")),
|
|
14
14
|
f1: false,
|
|
15
15
|
metadata: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(5036, "Run several commands")),
|
|
17
17
|
args: [
|
|
18
18
|
{
|
|
19
19
|
name: 'args',
|
|
@@ -23,7 +23,7 @@ class RunCommands extends Action2 {
|
|
|
23
23
|
properties: {
|
|
24
24
|
commands: {
|
|
25
25
|
type: 'array',
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(5037, "Commands to run")),
|
|
27
27
|
items: {
|
|
28
28
|
anyOf: [
|
|
29
29
|
{
|
|
@@ -63,14 +63,14 @@ class RunCommands extends Action2 {
|
|
|
63
63
|
const notificationService = accessor.get(INotificationService);
|
|
64
64
|
if (!this._isCommandArgs(args)) {
|
|
65
65
|
notificationService.error(( localize(
|
|
66
|
-
|
|
66
|
+
5038,
|
|
67
67
|
"'runCommands' has received an argument with incorrect type. Please, review the argument passed to the command."
|
|
68
68
|
)));
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
if (args.commands.length === 0) {
|
|
72
72
|
notificationService.warn(( localize(
|
|
73
|
-
|
|
73
|
+
5039,
|
|
74
74
|
"'runCommands' has not received commands to run. Did you forget to pass commands in the 'runCommands' argument?"
|
|
75
75
|
)));
|
|
76
76
|
return;
|
|
@@ -16,7 +16,7 @@ class ToggleKeybindingsLogAction extends Action2 {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super({
|
|
18
18
|
id: 'workbench.action.toggleKeybindingsLog',
|
|
19
|
-
title: ( localize2(
|
|
19
|
+
title: ( localize2(7191, "Toggle Keyboard Shortcuts Troubleshooting")),
|
|
20
20
|
category: Categories.Developer,
|
|
21
21
|
f1: true
|
|
22
22
|
});
|
package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js
CHANGED
|
@@ -24,7 +24,7 @@ import { DEFINE_KEYBINDING_EDITOR_CONTRIB_ID } from '@codingame/monaco-vscode-52
|
|
|
24
24
|
|
|
25
25
|
var KeybindingEditorDecorationsRenderer_1;
|
|
26
26
|
const NLS_KB_LAYOUT_ERROR_MESSAGE = ( localize(
|
|
27
|
-
|
|
27
|
+
8196,
|
|
28
28
|
"You won't be able to produce this key combination under your current keyboard layout."
|
|
29
29
|
));
|
|
30
30
|
let DefineKeybindingEditorContribution = class DefineKeybindingEditorContribution extends Disposable {
|
|
@@ -182,14 +182,14 @@ let KeybindingEditorDecorationsRenderer = KeybindingEditorDecorationsRenderer_1
|
|
|
182
182
|
else {
|
|
183
183
|
if (usLabel && uiLabel !== usLabel) {
|
|
184
184
|
msg = ( new MarkdownString(( localize(
|
|
185
|
-
|
|
185
|
+
8197,
|
|
186
186
|
"**{0}** for your current keyboard layout (**{1}** for US standard).",
|
|
187
187
|
uiLabel,
|
|
188
188
|
usLabel
|
|
189
189
|
))));
|
|
190
190
|
}
|
|
191
191
|
else {
|
|
192
|
-
msg = ( new MarkdownString(( localize(
|
|
192
|
+
msg = ( new MarkdownString(( localize(8198, "**{0}** for your current keyboard layout.", uiLabel))));
|
|
193
193
|
}
|
|
194
194
|
className = 'keybindingInfo';
|
|
195
195
|
overviewRulerColor = themeColorFromId(overviewRulerInfo);
|
|
@@ -21,215 +21,215 @@ const apiMenus = [
|
|
|
21
21
|
{
|
|
22
22
|
key: 'commandPalette',
|
|
23
23
|
id: MenuId.CommandPalette,
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(11459, "The Command Palette")),
|
|
25
25
|
supportsSubmenus: false
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
key: 'touchBar',
|
|
29
29
|
id: MenuId.TouchBarContext,
|
|
30
|
-
description: ( localize(
|
|
30
|
+
description: ( localize(11460, "The touch bar (macOS only)")),
|
|
31
31
|
supportsSubmenus: false
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
key: 'editor/title',
|
|
35
35
|
id: MenuId.EditorTitle,
|
|
36
|
-
description: ( localize(
|
|
36
|
+
description: ( localize(11461, "The editor title menu"))
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
key: 'editor/title/run',
|
|
40
40
|
id: MenuId.EditorTitleRun,
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(11462, "Run submenu inside the editor title menu"))
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
key: 'editor/context',
|
|
45
45
|
id: MenuId.EditorContext,
|
|
46
|
-
description: ( localize(
|
|
46
|
+
description: ( localize(11463, "The editor context menu"))
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
key: 'editor/context/copy',
|
|
50
50
|
id: MenuId.EditorContextCopy,
|
|
51
|
-
description: ( localize(
|
|
51
|
+
description: ( localize(11464, "'Copy as' submenu in the editor context menu"))
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
key: 'editor/context/share',
|
|
55
55
|
id: MenuId.EditorContextShare,
|
|
56
|
-
description: ( localize(
|
|
56
|
+
description: ( localize(11465, "'Share' submenu in the editor context menu")),
|
|
57
57
|
proposed: 'contribShareMenu'
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
key: 'explorer/context',
|
|
61
61
|
id: MenuId.ExplorerContext,
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(11466, "The file explorer context menu"))
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
key: 'explorer/context/share',
|
|
66
66
|
id: MenuId.ExplorerContextShare,
|
|
67
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(11467, "'Share' submenu in the file explorer context menu")),
|
|
68
68
|
proposed: 'contribShareMenu'
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
key: 'editor/title/context',
|
|
72
72
|
id: MenuId.EditorTitleContext,
|
|
73
|
-
description: ( localize(
|
|
73
|
+
description: ( localize(11468, "The editor tabs context menu"))
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
key: 'editor/title/context/share',
|
|
77
77
|
id: MenuId.EditorTitleContextShare,
|
|
78
|
-
description: ( localize(
|
|
78
|
+
description: ( localize(11469, "'Share' submenu inside the editor title context menu")),
|
|
79
79
|
proposed: 'contribShareMenu'
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
key: 'debug/callstack/context',
|
|
83
83
|
id: MenuId.DebugCallStackContext,
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(11470, "The debug callstack view context menu"))
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
key: 'debug/variables/context',
|
|
88
88
|
id: MenuId.DebugVariablesContext,
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(11471, "The debug variables view context menu"))
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
key: 'debug/toolBar',
|
|
93
93
|
id: MenuId.DebugToolBar,
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(11472, "The debug toolbar menu"))
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
key: 'debug/createConfiguration',
|
|
98
98
|
id: MenuId.DebugCreateConfiguration,
|
|
99
99
|
proposed: 'contribDebugCreateConfiguration',
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(11473, "The debug create configuration menu"))
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
key: 'notebook/variables/context',
|
|
104
104
|
id: MenuId.NotebookVariablesContext,
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(11474, "The notebook variables view context menu"))
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
key: 'menuBar/home',
|
|
109
109
|
id: MenuId.MenubarHomeMenu,
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(11475, "The home indicator context menu (web only)")),
|
|
111
111
|
proposed: 'contribMenuBarHome',
|
|
112
112
|
supportsSubmenus: false
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
key: 'menuBar/edit/copy',
|
|
116
116
|
id: MenuId.MenubarCopy,
|
|
117
|
-
description: ( localize(
|
|
117
|
+
description: ( localize(11476, "'Copy as' submenu in the top level Edit menu"))
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
key: 'scm/title',
|
|
121
121
|
id: MenuId.SCMTitle,
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(11477, "The Source Control title menu"))
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
key: 'scm/sourceControl',
|
|
126
126
|
id: MenuId.SCMSourceControl,
|
|
127
|
-
description: ( localize(
|
|
127
|
+
description: ( localize(11478, "The Source Control menu"))
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
key: 'scm/sourceControl/title',
|
|
131
131
|
id: MenuId.SCMSourceControlTitle,
|
|
132
|
-
description: ( localize(
|
|
132
|
+
description: ( localize(11479, "The Source Control title menu")),
|
|
133
133
|
proposed: 'contribSourceControlTitleMenu'
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
key: 'scm/resourceState/context',
|
|
137
137
|
id: MenuId.SCMResourceContext,
|
|
138
|
-
description: ( localize(
|
|
138
|
+
description: ( localize(11480, "The Source Control resource state context menu"))
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
key: 'scm/resourceFolder/context',
|
|
142
142
|
id: MenuId.SCMResourceFolderContext,
|
|
143
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(11481, "The Source Control resource folder context menu"))
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
key: 'scm/resourceGroup/context',
|
|
147
147
|
id: MenuId.SCMResourceGroupContext,
|
|
148
|
-
description: ( localize(
|
|
148
|
+
description: ( localize(11482, "The Source Control resource group context menu"))
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
key: 'scm/change/title',
|
|
152
152
|
id: MenuId.SCMChangeContext,
|
|
153
|
-
description: ( localize(
|
|
153
|
+
description: ( localize(11483, "The Source Control inline change menu"))
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
key: 'scm/inputBox',
|
|
157
157
|
id: MenuId.SCMInputBox,
|
|
158
|
-
description: ( localize(
|
|
158
|
+
description: ( localize(11484, "The Source Control input box menu")),
|
|
159
159
|
proposed: 'contribSourceControlInputBoxMenu'
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
key: 'scm/history/title',
|
|
163
163
|
id: MenuId.SCMHistoryTitle,
|
|
164
|
-
description: ( localize(
|
|
164
|
+
description: ( localize(11485, "The Source Control History title menu")),
|
|
165
165
|
proposed: 'contribSourceControlHistoryTitleMenu'
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
key: 'scm/historyItem/context',
|
|
169
169
|
id: MenuId.SCMHistoryItemContext,
|
|
170
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(11486, "The Source Control history item context menu")),
|
|
171
171
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
key: 'scm/historyItem/hover',
|
|
175
175
|
id: MenuId.SCMHistoryItemHover,
|
|
176
|
-
description: ( localize(
|
|
176
|
+
description: ( localize(11487, "The Source Control history item hover menu")),
|
|
177
177
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
key: 'scm/historyItemRef/context',
|
|
181
181
|
id: MenuId.SCMHistoryItemRefContext,
|
|
182
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(11488, "The Source Control history item reference context menu")),
|
|
183
183
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
key: 'statusBar/remoteIndicator',
|
|
187
187
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
188
|
-
description: ( localize(
|
|
188
|
+
description: ( localize(11489, "The remote indicator menu in the status bar")),
|
|
189
189
|
supportsSubmenus: false
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
key: 'terminal/context',
|
|
193
193
|
id: MenuId.TerminalInstanceContext,
|
|
194
|
-
description: ( localize(
|
|
194
|
+
description: ( localize(11490, "The terminal context menu"))
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
key: 'terminal/title/context',
|
|
198
198
|
id: MenuId.TerminalTabContext,
|
|
199
|
-
description: ( localize(
|
|
199
|
+
description: ( localize(11491, "The terminal tabs context menu"))
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
key: 'view/title',
|
|
203
203
|
id: MenuId.ViewTitle,
|
|
204
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(11492, "The contributed view title menu"))
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
key: 'viewContainer/title',
|
|
208
208
|
id: MenuId.ViewContainerTitle,
|
|
209
|
-
description: ( localize(
|
|
209
|
+
description: ( localize(11493, "The contributed view container title menu")),
|
|
210
210
|
proposed: 'contribViewContainerTitle'
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
key: 'view/item/context',
|
|
214
214
|
id: MenuId.ViewItemContext,
|
|
215
|
-
description: ( localize(
|
|
215
|
+
description: ( localize(11494, "The contributed view item context menu"))
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
key: 'comments/comment/editorActions',
|
|
219
219
|
id: MenuId.CommentEditorActions,
|
|
220
|
-
description: ( localize(
|
|
220
|
+
description: ( localize(11495, "The contributed comment editor actions")),
|
|
221
221
|
proposed: 'contribCommentEditorActionsMenu'
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
key: 'comments/commentThread/title',
|
|
225
225
|
id: MenuId.CommentThreadTitle,
|
|
226
|
-
description: ( localize(
|
|
226
|
+
description: ( localize(11496, "The contributed comment thread title menu"))
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
key: 'comments/commentThread/context',
|
|
230
230
|
id: MenuId.CommentThreadActions,
|
|
231
231
|
description: ( localize(
|
|
232
|
-
|
|
232
|
+
11497,
|
|
233
233
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
234
234
|
)),
|
|
235
235
|
supportsSubmenus: false
|
|
@@ -238,7 +238,7 @@ const apiMenus = [
|
|
|
238
238
|
key: 'comments/commentThread/additionalActions',
|
|
239
239
|
id: MenuId.CommentThreadAdditionalActions,
|
|
240
240
|
description: ( localize(
|
|
241
|
-
|
|
241
|
+
11497,
|
|
242
242
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
243
243
|
)),
|
|
244
244
|
supportsSubmenus: true,
|
|
@@ -248,7 +248,7 @@ const apiMenus = [
|
|
|
248
248
|
key: 'comments/commentThread/title/context',
|
|
249
249
|
id: MenuId.CommentThreadTitleContext,
|
|
250
250
|
description: ( localize(
|
|
251
|
-
|
|
251
|
+
11498,
|
|
252
252
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
253
253
|
)),
|
|
254
254
|
proposed: 'contribCommentPeekContext'
|
|
@@ -256,13 +256,13 @@ const apiMenus = [
|
|
|
256
256
|
{
|
|
257
257
|
key: 'comments/comment/title',
|
|
258
258
|
id: MenuId.CommentTitle,
|
|
259
|
-
description: ( localize(
|
|
259
|
+
description: ( localize(11499, "The contributed comment title menu"))
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
key: 'comments/comment/context',
|
|
263
263
|
id: MenuId.CommentActions,
|
|
264
264
|
description: ( localize(
|
|
265
|
-
|
|
265
|
+
11500,
|
|
266
266
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
267
267
|
)),
|
|
268
268
|
supportsSubmenus: false
|
|
@@ -271,7 +271,7 @@ const apiMenus = [
|
|
|
271
271
|
key: 'comments/commentThread/comment/context',
|
|
272
272
|
id: MenuId.CommentThreadCommentContext,
|
|
273
273
|
description: ( localize(
|
|
274
|
-
|
|
274
|
+
11501,
|
|
275
275
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
276
276
|
)),
|
|
277
277
|
proposed: 'contribCommentPeekContext'
|
|
@@ -279,113 +279,113 @@ const apiMenus = [
|
|
|
279
279
|
{
|
|
280
280
|
key: 'commentsView/commentThread/context',
|
|
281
281
|
id: MenuId.CommentsViewThreadActions,
|
|
282
|
-
description: ( localize(
|
|
282
|
+
description: ( localize(11502, "The contributed comment thread context menu in the comments view")),
|
|
283
283
|
proposed: 'contribCommentsViewThreadMenus'
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
key: 'notebook/toolbar',
|
|
287
287
|
id: MenuId.NotebookToolbar,
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(11503, "The contributed notebook toolbar menu"))
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
291
|
key: 'notebook/kernelSource',
|
|
292
292
|
id: MenuId.NotebookKernelSource,
|
|
293
|
-
description: ( localize(
|
|
293
|
+
description: ( localize(11504, "The contributed notebook kernel sources menu")),
|
|
294
294
|
proposed: 'notebookKernelSource'
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
297
|
key: 'notebook/cell/title',
|
|
298
298
|
id: MenuId.NotebookCellTitle,
|
|
299
|
-
description: ( localize(
|
|
299
|
+
description: ( localize(11505, "The contributed notebook cell title menu"))
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
key: 'notebook/cell/execute',
|
|
303
303
|
id: MenuId.NotebookCellExecute,
|
|
304
|
-
description: ( localize(
|
|
304
|
+
description: ( localize(11506, "The contributed notebook cell execution menu"))
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
key: 'interactive/toolbar',
|
|
308
308
|
id: MenuId.InteractiveToolbar,
|
|
309
|
-
description: ( localize(
|
|
309
|
+
description: ( localize(11507, "The contributed interactive toolbar menu")),
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
key: 'interactive/cell/title',
|
|
313
313
|
id: MenuId.InteractiveCellTitle,
|
|
314
|
-
description: ( localize(
|
|
314
|
+
description: ( localize(11508, "The contributed interactive cell title menu")),
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
key: 'issue/reporter',
|
|
318
318
|
id: MenuId.IssueReporter,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(11509, "The contributed issue reporter menu"))
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
key: 'testing/item/context',
|
|
323
323
|
id: MenuId.TestItem,
|
|
324
|
-
description: ( localize(
|
|
324
|
+
description: ( localize(11510, "The contributed test item menu")),
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
key: 'testing/item/gutter',
|
|
328
328
|
id: MenuId.TestItemGutter,
|
|
329
|
-
description: ( localize(
|
|
329
|
+
description: ( localize(11511, "The menu for a gutter decoration for a test item")),
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
key: 'testing/profiles/context',
|
|
333
333
|
id: MenuId.TestProfilesContext,
|
|
334
|
-
description: ( localize(
|
|
334
|
+
description: ( localize(11512, "The menu for configuring testing profiles.")),
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
key: 'testing/item/result',
|
|
338
338
|
id: MenuId.TestPeekElement,
|
|
339
|
-
description: ( localize(
|
|
339
|
+
description: ( localize(11513, "The menu for an item in the Test Results view or peek.")),
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
key: 'testing/message/context',
|
|
343
343
|
id: MenuId.TestMessageContext,
|
|
344
344
|
description: ( localize(
|
|
345
|
-
|
|
345
|
+
11514,
|
|
346
346
|
"A prominent button overlaying editor content where the message is displayed"
|
|
347
347
|
)),
|
|
348
348
|
},
|
|
349
349
|
{
|
|
350
350
|
key: 'testing/message/content',
|
|
351
351
|
id: MenuId.TestMessageContent,
|
|
352
|
-
description: ( localize(
|
|
352
|
+
description: ( localize(11515, "Context menu for the message in the results tree")),
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
key: 'extension/context',
|
|
356
356
|
id: MenuId.ExtensionContext,
|
|
357
|
-
description: ( localize(
|
|
357
|
+
description: ( localize(11516, "The extension context menu"))
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
360
|
key: 'timeline/title',
|
|
361
361
|
id: MenuId.TimelineTitle,
|
|
362
|
-
description: ( localize(
|
|
362
|
+
description: ( localize(11517, "The Timeline view title menu"))
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
365
|
key: 'timeline/item/context',
|
|
366
366
|
id: MenuId.TimelineItemContext,
|
|
367
|
-
description: ( localize(
|
|
367
|
+
description: ( localize(11518, "The Timeline view item context menu"))
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
370
|
key: 'ports/item/context',
|
|
371
371
|
id: MenuId.TunnelContext,
|
|
372
|
-
description: ( localize(
|
|
372
|
+
description: ( localize(11519, "The Ports view item context menu"))
|
|
373
373
|
},
|
|
374
374
|
{
|
|
375
375
|
key: 'ports/item/origin/inline',
|
|
376
376
|
id: MenuId.TunnelOriginInline,
|
|
377
|
-
description: ( localize(
|
|
377
|
+
description: ( localize(11520, "The Ports view item origin inline menu"))
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
380
|
key: 'ports/item/port/inline',
|
|
381
381
|
id: MenuId.TunnelPortInline,
|
|
382
|
-
description: ( localize(
|
|
382
|
+
description: ( localize(11521, "The Ports view item port inline menu"))
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
385
|
key: 'file/newFile',
|
|
386
386
|
id: MenuId.NewFile,
|
|
387
387
|
description: ( localize(
|
|
388
|
-
|
|
388
|
+
11522,
|
|
389
389
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
390
390
|
)),
|
|
391
391
|
supportsSubmenus: false,
|
|
@@ -393,61 +393,61 @@ const apiMenus = [
|
|
|
393
393
|
{
|
|
394
394
|
key: 'webview/context',
|
|
395
395
|
id: MenuId.WebviewContext,
|
|
396
|
-
description: ( localize(
|
|
396
|
+
description: ( localize(11523, "The webview context menu"))
|
|
397
397
|
},
|
|
398
398
|
{
|
|
399
399
|
key: 'file/share',
|
|
400
400
|
id: MenuId.MenubarShare,
|
|
401
|
-
description: ( localize(
|
|
401
|
+
description: ( localize(11524, "Share submenu shown in the top level File menu.")),
|
|
402
402
|
proposed: 'contribShareMenu'
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
405
|
key: 'editor/inlineCompletions/actions',
|
|
406
406
|
id: MenuId.InlineCompletionsActions,
|
|
407
|
-
description: ( localize(
|
|
407
|
+
description: ( localize(11525, "The actions shown when hovering on an inline completion")),
|
|
408
408
|
supportsSubmenus: false,
|
|
409
409
|
proposed: 'inlineCompletionsAdditions'
|
|
410
410
|
},
|
|
411
411
|
{
|
|
412
412
|
key: 'editor/content',
|
|
413
413
|
id: MenuId.EditorContent,
|
|
414
|
-
description: ( localize(
|
|
414
|
+
description: ( localize(11526, "The prominent button in an editor, overlays its content")),
|
|
415
415
|
proposed: 'contribEditorContentMenu'
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
key: 'editor/lineNumber/context',
|
|
419
419
|
id: MenuId.EditorLineNumberContext,
|
|
420
|
-
description: ( localize(
|
|
420
|
+
description: ( localize(11527, "The contributed editor line number context menu"))
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
key: 'mergeEditor/result/title',
|
|
424
424
|
id: MenuId.MergeInputResultToolbar,
|
|
425
|
-
description: ( localize(
|
|
425
|
+
description: ( localize(11528, "The result toolbar of the merge editor")),
|
|
426
426
|
proposed: 'contribMergeEditorMenus'
|
|
427
427
|
},
|
|
428
428
|
{
|
|
429
429
|
key: 'multiDiffEditor/resource/title',
|
|
430
430
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
431
|
-
description: ( localize(
|
|
431
|
+
description: ( localize(11529, "The resource toolbar in the multi diff editor")),
|
|
432
432
|
proposed: 'contribMultiDiffEditorMenus'
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
435
|
key: 'diffEditor/gutter/hunk',
|
|
436
436
|
id: MenuId.DiffEditorHunkToolbar,
|
|
437
|
-
description: ( localize(
|
|
437
|
+
description: ( localize(11530, "The gutter toolbar in the diff editor")),
|
|
438
438
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
key: 'diffEditor/gutter/selection',
|
|
442
442
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
443
|
-
description: ( localize(
|
|
443
|
+
description: ( localize(11530, "The gutter toolbar in the diff editor")),
|
|
444
444
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
key: 'searchPanel/aiResults/commands',
|
|
448
448
|
id: MenuId.SearchActionMenu,
|
|
449
449
|
description: ( localize(
|
|
450
|
-
|
|
450
|
+
11531,
|
|
451
451
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
452
452
|
)),
|
|
453
453
|
}
|
|
@@ -461,23 +461,23 @@ var schema;
|
|
|
461
461
|
function isValidMenuItem(item, collector) {
|
|
462
462
|
if (typeof item.command !== 'string') {
|
|
463
463
|
collector.error(( localize(
|
|
464
|
-
|
|
464
|
+
11532,
|
|
465
465
|
"property `{0}` is mandatory and must be of type `string`",
|
|
466
466
|
'command'
|
|
467
467
|
)));
|
|
468
468
|
return false;
|
|
469
469
|
}
|
|
470
470
|
if (item.alt && typeof item.alt !== 'string') {
|
|
471
|
-
collector.error(( localize(
|
|
471
|
+
collector.error(( localize(11533, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
472
472
|
return false;
|
|
473
473
|
}
|
|
474
474
|
if (item.when && typeof item.when !== 'string') {
|
|
475
|
-
collector.error(( localize(
|
|
475
|
+
collector.error(( localize(11533, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
476
476
|
return false;
|
|
477
477
|
}
|
|
478
478
|
if (item.group && typeof item.group !== 'string') {
|
|
479
479
|
collector.error(( localize(
|
|
480
|
-
|
|
480
|
+
11533,
|
|
481
481
|
"property `{0}` can be omitted or must be of type `string`",
|
|
482
482
|
'group'
|
|
483
483
|
)));
|
|
@@ -489,19 +489,19 @@ var schema;
|
|
|
489
489
|
function isValidSubmenuItem(item, collector) {
|
|
490
490
|
if (typeof item.submenu !== 'string') {
|
|
491
491
|
collector.error(( localize(
|
|
492
|
-
|
|
492
|
+
11532,
|
|
493
493
|
"property `{0}` is mandatory and must be of type `string`",
|
|
494
494
|
'submenu'
|
|
495
495
|
)));
|
|
496
496
|
return false;
|
|
497
497
|
}
|
|
498
498
|
if (item.when && typeof item.when !== 'string') {
|
|
499
|
-
collector.error(( localize(
|
|
499
|
+
collector.error(( localize(11533, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
500
500
|
return false;
|
|
501
501
|
}
|
|
502
502
|
if (item.group && typeof item.group !== 'string') {
|
|
503
503
|
collector.error(( localize(
|
|
504
|
-
|
|
504
|
+
11533,
|
|
505
505
|
"property `{0}` can be omitted or must be of type `string`",
|
|
506
506
|
'group'
|
|
507
507
|
)));
|
|
@@ -512,7 +512,7 @@ var schema;
|
|
|
512
512
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
513
513
|
function isValidItems(items, collector) {
|
|
514
514
|
if (!Array.isArray(items)) {
|
|
515
|
-
collector.error(( localize(
|
|
515
|
+
collector.error(( localize(11534, "submenu items must be an array")));
|
|
516
516
|
return false;
|
|
517
517
|
}
|
|
518
518
|
for (const item of items) {
|
|
@@ -532,15 +532,15 @@ var schema;
|
|
|
532
532
|
schema.isValidItems = isValidItems;
|
|
533
533
|
function isValidSubmenu(submenu, collector) {
|
|
534
534
|
if (typeof submenu !== 'object') {
|
|
535
|
-
collector.error(( localize(
|
|
535
|
+
collector.error(( localize(11535, "submenu items must be an object")));
|
|
536
536
|
return false;
|
|
537
537
|
}
|
|
538
538
|
if (typeof submenu.id !== 'string') {
|
|
539
|
-
collector.error(( localize(
|
|
539
|
+
collector.error(( localize(11532, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
540
540
|
return false;
|
|
541
541
|
}
|
|
542
542
|
if (typeof submenu.label !== 'string') {
|
|
543
|
-
collector.error(( localize(
|
|
543
|
+
collector.error(( localize(11532, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
544
544
|
return false;
|
|
545
545
|
}
|
|
546
546
|
return true;
|
|
@@ -552,24 +552,24 @@ var schema;
|
|
|
552
552
|
properties: {
|
|
553
553
|
command: {
|
|
554
554
|
description: ( localize(
|
|
555
|
-
|
|
555
|
+
11536,
|
|
556
556
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
557
557
|
)),
|
|
558
558
|
type: 'string'
|
|
559
559
|
},
|
|
560
560
|
alt: {
|
|
561
561
|
description: ( localize(
|
|
562
|
-
|
|
562
|
+
11537,
|
|
563
563
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
564
564
|
)),
|
|
565
565
|
type: 'string'
|
|
566
566
|
},
|
|
567
567
|
when: {
|
|
568
|
-
description: ( localize(
|
|
568
|
+
description: ( localize(11538, 'Condition which must be true to show this item')),
|
|
569
569
|
type: 'string'
|
|
570
570
|
},
|
|
571
571
|
group: {
|
|
572
|
-
description: ( localize(
|
|
572
|
+
description: ( localize(11539, 'Group into which this item belongs')),
|
|
573
573
|
type: 'string'
|
|
574
574
|
}
|
|
575
575
|
}
|
|
@@ -579,15 +579,15 @@ var schema;
|
|
|
579
579
|
required: ['submenu'],
|
|
580
580
|
properties: {
|
|
581
581
|
submenu: {
|
|
582
|
-
description: ( localize(
|
|
582
|
+
description: ( localize(11540, 'Identifier of the submenu to display in this item.')),
|
|
583
583
|
type: 'string'
|
|
584
584
|
},
|
|
585
585
|
when: {
|
|
586
|
-
description: ( localize(
|
|
586
|
+
description: ( localize(11538, 'Condition which must be true to show this item')),
|
|
587
587
|
type: 'string'
|
|
588
588
|
},
|
|
589
589
|
group: {
|
|
590
|
-
description: ( localize(
|
|
590
|
+
description: ( localize(11539, 'Group into which this item belongs')),
|
|
591
591
|
type: 'string'
|
|
592
592
|
}
|
|
593
593
|
}
|
|
@@ -597,16 +597,16 @@ var schema;
|
|
|
597
597
|
required: ['id', 'label'],
|
|
598
598
|
properties: {
|
|
599
599
|
id: {
|
|
600
|
-
description: ( localize(
|
|
600
|
+
description: ( localize(11541, 'Identifier of the menu to display as a submenu.')),
|
|
601
601
|
type: 'string'
|
|
602
602
|
},
|
|
603
603
|
label: {
|
|
604
|
-
description: ( localize(
|
|
604
|
+
description: ( localize(11542, 'The label of the menu item which leads to this submenu.')),
|
|
605
605
|
type: 'string'
|
|
606
606
|
},
|
|
607
607
|
icon: {
|
|
608
608
|
description: ( localize(
|
|
609
|
-
|
|
609
|
+
11543,
|
|
610
610
|
'(Optional) Icon which is used to represent the submenu in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like `\\$(zap)`'
|
|
611
611
|
)),
|
|
612
612
|
anyOf: [{
|
|
@@ -616,11 +616,11 @@ var schema;
|
|
|
616
616
|
type: 'object',
|
|
617
617
|
properties: {
|
|
618
618
|
light: {
|
|
619
|
-
description: ( localize(
|
|
619
|
+
description: ( localize(11544, 'Icon path when a light theme is used')),
|
|
620
620
|
type: 'string'
|
|
621
621
|
},
|
|
622
622
|
dark: {
|
|
623
|
-
description: ( localize(
|
|
623
|
+
description: ( localize(11545, 'Icon path when a dark theme is used')),
|
|
624
624
|
type: 'string'
|
|
625
625
|
}
|
|
626
626
|
}
|
|
@@ -629,11 +629,11 @@ var schema;
|
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
schema.menusContribution = {
|
|
632
|
-
description: ( localize(
|
|
632
|
+
description: ( localize(11546, "Contributes menu items to the editor")),
|
|
633
633
|
type: 'object',
|
|
634
634
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
635
635
|
markdownDescription: menu.proposed ? ( localize(
|
|
636
|
-
|
|
636
|
+
11547,
|
|
637
637
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
638
638
|
menu.proposed,
|
|
639
639
|
menu.description
|
|
@@ -648,18 +648,18 @@ var schema;
|
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
650
|
schema.submenusContribution = {
|
|
651
|
-
description: ( localize(
|
|
651
|
+
description: ( localize(11548, "Contributes submenu items to the editor")),
|
|
652
652
|
type: 'array',
|
|
653
653
|
items: submenu
|
|
654
654
|
};
|
|
655
655
|
function isValidCommand(command, collector) {
|
|
656
656
|
if (!command) {
|
|
657
|
-
collector.error(( localize(
|
|
657
|
+
collector.error(( localize(11549, "expected non-empty value.")));
|
|
658
658
|
return false;
|
|
659
659
|
}
|
|
660
660
|
if (isFalsyOrWhitespace(command.command)) {
|
|
661
661
|
collector.error(( localize(
|
|
662
|
-
|
|
662
|
+
11532,
|
|
663
663
|
"property `{0}` is mandatory and must be of type `string`",
|
|
664
664
|
'command'
|
|
665
665
|
)));
|
|
@@ -673,7 +673,7 @@ var schema;
|
|
|
673
673
|
}
|
|
674
674
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
675
675
|
collector.error(( localize(
|
|
676
|
-
|
|
676
|
+
11533,
|
|
677
677
|
"property `{0}` can be omitted or must be of type `string`",
|
|
678
678
|
'precondition'
|
|
679
679
|
)));
|
|
@@ -699,7 +699,7 @@ var schema;
|
|
|
699
699
|
return true;
|
|
700
700
|
}
|
|
701
701
|
collector.error(( localize(
|
|
702
|
-
|
|
702
|
+
11550,
|
|
703
703
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
704
704
|
)));
|
|
705
705
|
return false;
|
|
@@ -707,7 +707,7 @@ var schema;
|
|
|
707
707
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
708
708
|
if (typeof localized === 'undefined') {
|
|
709
709
|
collector.error(( localize(
|
|
710
|
-
|
|
710
|
+
11551,
|
|
711
711
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
712
712
|
propertyName
|
|
713
713
|
)));
|
|
@@ -715,7 +715,7 @@ var schema;
|
|
|
715
715
|
}
|
|
716
716
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
717
717
|
collector.error(( localize(
|
|
718
|
-
|
|
718
|
+
11532,
|
|
719
719
|
"property `{0}` is mandatory and must be of type `string`",
|
|
720
720
|
propertyName
|
|
721
721
|
)));
|
|
@@ -723,7 +723,7 @@ var schema;
|
|
|
723
723
|
}
|
|
724
724
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
725
725
|
collector.error(( localize(
|
|
726
|
-
|
|
726
|
+
11552,
|
|
727
727
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
728
728
|
`${propertyName}.value`,
|
|
729
729
|
`${propertyName}.original`
|
|
@@ -737,37 +737,37 @@ var schema;
|
|
|
737
737
|
required: ['command', 'title'],
|
|
738
738
|
properties: {
|
|
739
739
|
command: {
|
|
740
|
-
description: ( localize(
|
|
740
|
+
description: ( localize(11553, 'Identifier of the command to execute')),
|
|
741
741
|
type: 'string'
|
|
742
742
|
},
|
|
743
743
|
title: {
|
|
744
|
-
description: ( localize(
|
|
744
|
+
description: ( localize(11554, 'Title by which the command is represented in the UI')),
|
|
745
745
|
type: 'string'
|
|
746
746
|
},
|
|
747
747
|
shortTitle: {
|
|
748
748
|
markdownDescription: ( localize(
|
|
749
|
-
|
|
749
|
+
11555,
|
|
750
750
|
'(Optional) Short title by which the command is represented in the UI. Menus pick either `title` or `shortTitle` depending on the context in which they show commands.'
|
|
751
751
|
)),
|
|
752
752
|
type: 'string'
|
|
753
753
|
},
|
|
754
754
|
category: {
|
|
755
755
|
description: ( localize(
|
|
756
|
-
|
|
756
|
+
11556,
|
|
757
757
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
758
758
|
)),
|
|
759
759
|
type: 'string'
|
|
760
760
|
},
|
|
761
761
|
enablement: {
|
|
762
762
|
description: ( localize(
|
|
763
|
-
|
|
763
|
+
11557,
|
|
764
764
|
'(Optional) Condition which must be true to enable the command in the UI (menu and keybindings). Does not prevent executing the command by other means, like the `executeCommand`-api.'
|
|
765
765
|
)),
|
|
766
766
|
type: 'string'
|
|
767
767
|
},
|
|
768
768
|
icon: {
|
|
769
769
|
description: ( localize(
|
|
770
|
-
|
|
770
|
+
11558,
|
|
771
771
|
'(Optional) Icon which is used to represent the command in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like `\\$(zap)`'
|
|
772
772
|
)),
|
|
773
773
|
anyOf: [{
|
|
@@ -777,11 +777,11 @@ var schema;
|
|
|
777
777
|
type: 'object',
|
|
778
778
|
properties: {
|
|
779
779
|
light: {
|
|
780
|
-
description: ( localize(
|
|
780
|
+
description: ( localize(11559, 'Icon path when a light theme is used')),
|
|
781
781
|
type: 'string'
|
|
782
782
|
},
|
|
783
783
|
dark: {
|
|
784
|
-
description: ( localize(
|
|
784
|
+
description: ( localize(11560, 'Icon path when a dark theme is used')),
|
|
785
785
|
type: 'string'
|
|
786
786
|
}
|
|
787
787
|
}
|
|
@@ -790,7 +790,7 @@ var schema;
|
|
|
790
790
|
}
|
|
791
791
|
};
|
|
792
792
|
schema.commandsContribution = {
|
|
793
|
-
description: ( localize(
|
|
793
|
+
description: ( localize(11561, "Contributes commands to the command palette.")),
|
|
794
794
|
oneOf: [
|
|
795
795
|
commandType,
|
|
796
796
|
{
|
|
@@ -834,7 +834,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
834
834
|
if (existingCmd) {
|
|
835
835
|
if (existingCmd.source) {
|
|
836
836
|
extension.collector.info(( localize(
|
|
837
|
-
|
|
837
|
+
11562,
|
|
838
838
|
"Command `{0}` already registered by {1} ({2})",
|
|
839
839
|
userFriendlyCommand.command,
|
|
840
840
|
existingCmd.source.title,
|
|
@@ -842,7 +842,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
842
842
|
)));
|
|
843
843
|
}
|
|
844
844
|
else {
|
|
845
|
-
extension.collector.info(( localize(
|
|
845
|
+
extension.collector.info(( localize(11563, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
848
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -883,19 +883,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
883
883
|
continue;
|
|
884
884
|
}
|
|
885
885
|
if (!submenuInfo.id) {
|
|
886
|
-
collector.warn(( localize(
|
|
886
|
+
collector.warn(( localize(11564, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
887
887
|
continue;
|
|
888
888
|
}
|
|
889
889
|
if (( _submenus.has(submenuInfo.id))) {
|
|
890
890
|
collector.info(( localize(
|
|
891
|
-
|
|
891
|
+
11565,
|
|
892
892
|
"The `{0}` submenu was already previously registered.",
|
|
893
893
|
submenuInfo.id
|
|
894
894
|
)));
|
|
895
895
|
continue;
|
|
896
896
|
}
|
|
897
897
|
if (!submenuInfo.label) {
|
|
898
|
-
collector.warn(( localize(
|
|
898
|
+
collector.warn(( localize(11566, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
899
899
|
continue;
|
|
900
900
|
}
|
|
901
901
|
let absoluteIcon;
|
|
@@ -952,7 +952,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
952
952
|
}
|
|
953
953
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
954
954
|
collector.error(( localize(
|
|
955
|
-
|
|
955
|
+
11567,
|
|
956
956
|
"{0} is a proposed menu identifier. It requires 'package.json#enabledApiProposals: [\"{1}\"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api {2}",
|
|
957
957
|
entry[0],
|
|
958
958
|
menu.proposed,
|
|
@@ -967,7 +967,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
967
967
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
968
968
|
if (!command) {
|
|
969
969
|
collector.error(( localize(
|
|
970
|
-
|
|
970
|
+
11568,
|
|
971
971
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
972
972
|
menuItem.command
|
|
973
973
|
)));
|
|
@@ -975,20 +975,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
975
975
|
}
|
|
976
976
|
if (menuItem.alt && !alt) {
|
|
977
977
|
collector.warn(( localize(
|
|
978
|
-
|
|
978
|
+
11569,
|
|
979
979
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
980
980
|
menuItem.alt
|
|
981
981
|
)));
|
|
982
982
|
}
|
|
983
983
|
if (menuItem.command === menuItem.alt) {
|
|
984
|
-
collector.info(( localize(
|
|
984
|
+
collector.info(( localize(11570, "Menu item references the same command as default and alt-command")));
|
|
985
985
|
}
|
|
986
986
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
987
987
|
}
|
|
988
988
|
else {
|
|
989
989
|
if (menu.supportsSubmenus === false) {
|
|
990
990
|
collector.error(( localize(
|
|
991
|
-
|
|
991
|
+
11571,
|
|
992
992
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
993
993
|
)));
|
|
994
994
|
continue;
|
|
@@ -996,7 +996,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
996
996
|
const submenu = _submenus.get(menuItem.submenu);
|
|
997
997
|
if (!submenu) {
|
|
998
998
|
collector.error(( localize(
|
|
999
|
-
|
|
999
|
+
11572,
|
|
1000
1000
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1001
1001
|
menuItem.submenu
|
|
1002
1002
|
)));
|
|
@@ -1009,7 +1009,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1011
1011
|
collector.warn(( localize(
|
|
1012
|
-
|
|
1012
|
+
11573,
|
|
1013
1013
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1014
1014
|
menuItem.submenu,
|
|
1015
1015
|
entry[0]
|
|
@@ -1031,7 +1031,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1033
1033
|
collector.error(( localize(
|
|
1034
|
-
|
|
1034
|
+
11574,
|
|
1035
1035
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1036
1036
|
'`viewContainer/title`',
|
|
1037
1037
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1118,10 +1118,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1118
1118
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1119
1119
|
}
|
|
1120
1120
|
const headers = [
|
|
1121
|
-
( localize(
|
|
1122
|
-
( localize(
|
|
1123
|
-
( localize(
|
|
1124
|
-
( localize(
|
|
1121
|
+
( localize(11575, "ID")),
|
|
1122
|
+
( localize(11576, "Title")),
|
|
1123
|
+
( localize(11577, "Keyboard Shortcuts")),
|
|
1124
|
+
( localize(11578, "Menu Contexts"))
|
|
1125
1125
|
];
|
|
1126
1126
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1127
1127
|
.map(command => {
|
|
@@ -1161,7 +1161,7 @@ CommandsTableRenderer = ( __decorate([
|
|
|
1161
1161
|
], CommandsTableRenderer));
|
|
1162
1162
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1163
1163
|
id: 'commands',
|
|
1164
|
-
label: ( localize(
|
|
1164
|
+
label: ( localize(11579, "Commands")),
|
|
1165
1165
|
access: {
|
|
1166
1166
|
canToggle: false,
|
|
1167
1167
|
},
|
|
@@ -49,39 +49,39 @@ import { IUserDataProfileService } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
49
49
|
var WorkbenchKeybindingService_1;
|
|
50
50
|
function isValidContributedKeyBinding(keyBinding, rejects) {
|
|
51
51
|
if (!keyBinding) {
|
|
52
|
-
rejects.push(( localize(
|
|
52
|
+
rejects.push(( localize(11948, "expected non-empty value.")));
|
|
53
53
|
return false;
|
|
54
54
|
}
|
|
55
55
|
if (typeof keyBinding.command !== 'string') {
|
|
56
56
|
rejects.push(( localize(
|
|
57
|
-
|
|
57
|
+
11949,
|
|
58
58
|
"property `{0}` is mandatory and must be of type `string`",
|
|
59
59
|
'command'
|
|
60
60
|
)));
|
|
61
61
|
return false;
|
|
62
62
|
}
|
|
63
63
|
if (keyBinding.key && typeof keyBinding.key !== 'string') {
|
|
64
|
-
rejects.push(( localize(
|
|
64
|
+
rejects.push(( localize(11950, "property `{0}` can be omitted or must be of type `string`", 'key')));
|
|
65
65
|
return false;
|
|
66
66
|
}
|
|
67
67
|
if (keyBinding.when && typeof keyBinding.when !== 'string') {
|
|
68
|
-
rejects.push(( localize(
|
|
68
|
+
rejects.push(( localize(11950, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
71
|
if (keyBinding.mac && typeof keyBinding.mac !== 'string') {
|
|
72
|
-
rejects.push(( localize(
|
|
72
|
+
rejects.push(( localize(11950, "property `{0}` can be omitted or must be of type `string`", 'mac')));
|
|
73
73
|
return false;
|
|
74
74
|
}
|
|
75
75
|
if (keyBinding.linux && typeof keyBinding.linux !== 'string') {
|
|
76
76
|
rejects.push(( localize(
|
|
77
|
-
|
|
77
|
+
11950,
|
|
78
78
|
"property `{0}` can be omitted or must be of type `string`",
|
|
79
79
|
'linux'
|
|
80
80
|
)));
|
|
81
81
|
return false;
|
|
82
82
|
}
|
|
83
83
|
if (keyBinding.win && typeof keyBinding.win !== 'string') {
|
|
84
|
-
rejects.push(( localize(
|
|
84
|
+
rejects.push(( localize(11950, "property `{0}` can be omitted or must be of type `string`", 'win')));
|
|
85
85
|
return false;
|
|
86
86
|
}
|
|
87
87
|
return true;
|
|
@@ -91,33 +91,33 @@ const keybindingType = {
|
|
|
91
91
|
default: { command: '', key: '' },
|
|
92
92
|
properties: {
|
|
93
93
|
command: {
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(11951, 'Identifier of the command to run when keybinding is triggered.')),
|
|
95
95
|
type: 'string'
|
|
96
96
|
},
|
|
97
97
|
args: {
|
|
98
|
-
description: ( localize(
|
|
98
|
+
description: ( localize(11952, "Arguments to pass to the command to execute."))
|
|
99
99
|
},
|
|
100
100
|
key: {
|
|
101
101
|
description: ( localize(
|
|
102
|
-
|
|
102
|
+
11953,
|
|
103
103
|
'Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).'
|
|
104
104
|
)),
|
|
105
105
|
type: 'string'
|
|
106
106
|
},
|
|
107
107
|
mac: {
|
|
108
|
-
description: ( localize(
|
|
108
|
+
description: ( localize(11954, 'Mac specific key or key sequence.')),
|
|
109
109
|
type: 'string'
|
|
110
110
|
},
|
|
111
111
|
linux: {
|
|
112
|
-
description: ( localize(
|
|
112
|
+
description: ( localize(11955, 'Linux specific key or key sequence.')),
|
|
113
113
|
type: 'string'
|
|
114
114
|
},
|
|
115
115
|
win: {
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(11956, 'Windows specific key or key sequence.')),
|
|
117
117
|
type: 'string'
|
|
118
118
|
},
|
|
119
119
|
when: {
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(11957, 'Condition when the key is active.')),
|
|
121
121
|
type: 'string'
|
|
122
122
|
},
|
|
123
123
|
}
|
|
@@ -126,7 +126,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
126
126
|
extensionPoint: 'keybindings',
|
|
127
127
|
deps: [commandsExtensionPoint],
|
|
128
128
|
jsonSchema: {
|
|
129
|
-
description: ( localize(
|
|
129
|
+
description: ( localize(11958, "Contributes keybindings.")),
|
|
130
130
|
oneOf: [
|
|
131
131
|
keybindingType,
|
|
132
132
|
{
|
|
@@ -505,7 +505,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
505
505
|
}
|
|
506
506
|
if (rejects.length > 0) {
|
|
507
507
|
collector.error(( localize(
|
|
508
|
-
|
|
508
|
+
11959,
|
|
509
509
|
"Invalid `contributes.{0}`: {1}",
|
|
510
510
|
keybindingsExtPoint.name,
|
|
511
511
|
rejects.join('\n')
|
|
@@ -593,7 +593,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
593
593
|
static _getAllCommandsAsComment(boundCommands) {
|
|
594
594
|
const unboundCommands = getAllUnboundCommands(boundCommands);
|
|
595
595
|
const pretty = unboundCommands.sort().join('\n// - ');
|
|
596
|
-
return '// ' + ( localize(
|
|
596
|
+
return '// ' + ( localize(11960, "Here are other available commands: ")) + '\n// - ' + pretty;
|
|
597
597
|
}
|
|
598
598
|
mightProducePrintableCharacter(event) {
|
|
599
599
|
if (event.ctrlKey || event.metaKey || event.altKey) {
|
|
@@ -718,7 +718,7 @@ class KeybindingsJsonSchema {
|
|
|
718
718
|
this.schema = {
|
|
719
719
|
id: KeybindingsJsonSchema.schemaId,
|
|
720
720
|
type: 'array',
|
|
721
|
-
title: ( localize(
|
|
721
|
+
title: ( localize(11961, "Keybindings configuration")),
|
|
722
722
|
allowTrailingCommas: true,
|
|
723
723
|
allowComments: true,
|
|
724
724
|
definitions: {
|
|
@@ -742,7 +742,7 @@ class KeybindingsJsonSchema {
|
|
|
742
742
|
'type': 'string',
|
|
743
743
|
'enum': this.commandsEnum,
|
|
744
744
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
745
|
-
'description': ( localize(
|
|
745
|
+
'description': ( localize(11962, "Name of the command to execute")),
|
|
746
746
|
},
|
|
747
747
|
'commandType': {
|
|
748
748
|
'anyOf': [
|
|
@@ -753,7 +753,7 @@ class KeybindingsJsonSchema {
|
|
|
753
753
|
'type': 'string',
|
|
754
754
|
'enum': this.removalCommandsEnum,
|
|
755
755
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
756
|
-
'description': ( localize(
|
|
756
|
+
'description': ( localize(11963, "Name of the command to remove keyboard shortcut for")),
|
|
757
757
|
},
|
|
758
758
|
{
|
|
759
759
|
'type': 'string'
|
|
@@ -771,7 +771,7 @@ class KeybindingsJsonSchema {
|
|
|
771
771
|
'properties': {
|
|
772
772
|
'key': {
|
|
773
773
|
'type': 'string',
|
|
774
|
-
'description': ( localize(
|
|
774
|
+
'description': ( localize(11964, "Key or key sequence (separated by space)")),
|
|
775
775
|
},
|
|
776
776
|
'command': {
|
|
777
777
|
'anyOf': [
|
|
@@ -784,7 +784,7 @@ class KeybindingsJsonSchema {
|
|
|
784
784
|
'type': 'array'
|
|
785
785
|
},
|
|
786
786
|
'errorMessage': ( localize(
|
|
787
|
-
|
|
787
|
+
11965,
|
|
788
788
|
"Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
|
|
789
789
|
'string'
|
|
790
790
|
))
|
|
@@ -800,10 +800,10 @@ class KeybindingsJsonSchema {
|
|
|
800
800
|
},
|
|
801
801
|
'when': {
|
|
802
802
|
'type': 'string',
|
|
803
|
-
'description': ( localize(
|
|
803
|
+
'description': ( localize(11966, "Condition when the key is active."))
|
|
804
804
|
},
|
|
805
805
|
'args': {
|
|
806
|
-
'description': ( localize(
|
|
806
|
+
'description': ( localize(11967, "Arguments to pass to the command to execute."))
|
|
807
807
|
}
|
|
808
808
|
},
|
|
809
809
|
'$ref': '#/definitions/commandsSchemas'
|
|
@@ -483,12 +483,12 @@ const keyboardConfiguration = {
|
|
|
483
483
|
'id': 'keyboard',
|
|
484
484
|
'order': 15,
|
|
485
485
|
'type': 'object',
|
|
486
|
-
'title': ( localize(
|
|
486
|
+
'title': ( localize(11968, "Keyboard")),
|
|
487
487
|
'properties': {
|
|
488
488
|
'keyboard.layout': {
|
|
489
489
|
'type': 'string',
|
|
490
490
|
'default': 'autodetect',
|
|
491
|
-
'description': ( localize(
|
|
491
|
+
'description': ( localize(11969, "Control the keyboard layout used in web."))
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
};
|