@codingame/monaco-vscode-keybindings-service-override 10.1.2 → 10.1.3
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 +4 -4
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +3 -3
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +133 -133
- 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": "10.1.
|
|
3
|
+
"version": "10.1.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git@github.com
|
|
12
|
+
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
30
|
-
"@codingame/monaco-vscode-files-service-override": "10.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.3",
|
|
30
|
+
"@codingame/monaco-vscode-files-service-override": "10.1.3"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -14,7 +14,7 @@ const keyboardConfiguration = {
|
|
|
14
14
|
'id': 'keyboard',
|
|
15
15
|
'order': 15,
|
|
16
16
|
'type': 'object',
|
|
17
|
-
'title': ( localize(
|
|
17
|
+
'title': ( localize(8782, "Keyboard")),
|
|
18
18
|
'properties': {
|
|
19
19
|
'keyboard.dispatch': {
|
|
20
20
|
scope: 1 ,
|
|
@@ -22,7 +22,7 @@ const keyboardConfiguration = {
|
|
|
22
22
|
enum: ['code', 'keyCode'],
|
|
23
23
|
default: 'code',
|
|
24
24
|
markdownDescription: ( localize(
|
|
25
|
-
|
|
25
|
+
8783,
|
|
26
26
|
"Controls the dispatching logic for key presses to use either `code` (recommended) or `keyCode`."
|
|
27
27
|
)),
|
|
28
28
|
included: OS === 2 || OS === 3
|
|
@@ -31,7 +31,7 @@ const keyboardConfiguration = {
|
|
|
31
31
|
scope: 1 ,
|
|
32
32
|
type: 'boolean',
|
|
33
33
|
default: false,
|
|
34
|
-
markdownDescription: ( localize(
|
|
34
|
+
markdownDescription: ( localize(8784, "Controls if the AltGraph+ modifier should be treated as Ctrl+Alt+.")),
|
|
35
35
|
included: OS === 1
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -20,203 +20,203 @@ const apiMenus = [
|
|
|
20
20
|
{
|
|
21
21
|
key: 'commandPalette',
|
|
22
22
|
id: MenuId.CommandPalette,
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(8663, "The Command Palette")),
|
|
24
24
|
supportsSubmenus: false
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
key: 'touchBar',
|
|
28
28
|
id: MenuId.TouchBarContext,
|
|
29
|
-
description: ( localize(
|
|
29
|
+
description: ( localize(8664, "The touch bar (macOS only)")),
|
|
30
30
|
supportsSubmenus: false
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
key: 'editor/title',
|
|
34
34
|
id: MenuId.EditorTitle,
|
|
35
|
-
description: ( localize(
|
|
35
|
+
description: ( localize(8665, "The editor title menu"))
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
key: 'editor/title/run',
|
|
39
39
|
id: MenuId.EditorTitleRun,
|
|
40
|
-
description: ( localize(
|
|
40
|
+
description: ( localize(8666, "Run submenu inside the editor title menu"))
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
key: 'editor/context',
|
|
44
44
|
id: MenuId.EditorContext,
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(8667, "The editor context menu"))
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
key: 'editor/context/copy',
|
|
49
49
|
id: MenuId.EditorContextCopy,
|
|
50
|
-
description: ( localize(
|
|
50
|
+
description: ( localize(8668, "'Copy as' submenu in the editor context menu"))
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
key: 'editor/context/share',
|
|
54
54
|
id: MenuId.EditorContextShare,
|
|
55
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(8669, "'Share' submenu in the editor context menu")),
|
|
56
56
|
proposed: 'contribShareMenu'
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
key: 'explorer/context',
|
|
60
60
|
id: MenuId.ExplorerContext,
|
|
61
|
-
description: ( localize(
|
|
61
|
+
description: ( localize(8670, "The file explorer context menu"))
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
key: 'explorer/context/share',
|
|
65
65
|
id: MenuId.ExplorerContextShare,
|
|
66
|
-
description: ( localize(
|
|
66
|
+
description: ( localize(8671, "'Share' submenu in the file explorer context menu")),
|
|
67
67
|
proposed: 'contribShareMenu'
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
key: 'editor/title/context',
|
|
71
71
|
id: MenuId.EditorTitleContext,
|
|
72
|
-
description: ( localize(
|
|
72
|
+
description: ( localize(8672, "The editor tabs context menu"))
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
key: 'editor/title/context/share',
|
|
76
76
|
id: MenuId.EditorTitleContextShare,
|
|
77
|
-
description: ( localize(
|
|
77
|
+
description: ( localize(8673, "'Share' submenu inside the editor title context menu")),
|
|
78
78
|
proposed: 'contribShareMenu'
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
key: 'debug/callstack/context',
|
|
82
82
|
id: MenuId.DebugCallStackContext,
|
|
83
|
-
description: ( localize(
|
|
83
|
+
description: ( localize(8674, "The debug callstack view context menu"))
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
key: 'debug/variables/context',
|
|
87
87
|
id: MenuId.DebugVariablesContext,
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(8675, "The debug variables view context menu"))
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
key: 'debug/toolBar',
|
|
92
92
|
id: MenuId.DebugToolBar,
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(8676, "The debug toolbar menu"))
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
key: 'debug/createConfiguration',
|
|
97
97
|
id: MenuId.DebugCreateConfiguration,
|
|
98
98
|
proposed: 'contribDebugCreateConfiguration',
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(8677, "The debug create configuration menu"))
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
key: 'notebook/variables/context',
|
|
103
103
|
id: MenuId.NotebookVariablesContext,
|
|
104
|
-
description: ( localize(
|
|
104
|
+
description: ( localize(8678, "The notebook variables view context menu"))
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
key: 'menuBar/home',
|
|
108
108
|
id: MenuId.MenubarHomeMenu,
|
|
109
|
-
description: ( localize(
|
|
109
|
+
description: ( localize(8679, "The home indicator context menu (web only)")),
|
|
110
110
|
proposed: 'contribMenuBarHome',
|
|
111
111
|
supportsSubmenus: false
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
key: 'menuBar/edit/copy',
|
|
115
115
|
id: MenuId.MenubarCopy,
|
|
116
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(8680, "'Copy as' submenu in the top level Edit menu"))
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
key: 'scm/title',
|
|
120
120
|
id: MenuId.SCMTitle,
|
|
121
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(8681, "The Source Control title menu"))
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
124
|
key: 'scm/sourceControl',
|
|
125
125
|
id: MenuId.SCMSourceControl,
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(8682, "The Source Control menu"))
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
key: 'scm/sourceControl/title',
|
|
130
130
|
id: MenuId.SCMSourceControlTitle,
|
|
131
|
-
description: ( localize(
|
|
131
|
+
description: ( localize(8683, "The Source Control title menu")),
|
|
132
132
|
proposed: 'contribSourceControlTitleMenu'
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
key: 'scm/resourceState/context',
|
|
136
136
|
id: MenuId.SCMResourceContext,
|
|
137
|
-
description: ( localize(
|
|
137
|
+
description: ( localize(8684, "The Source Control resource state context menu"))
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
key: 'scm/resourceFolder/context',
|
|
141
141
|
id: MenuId.SCMResourceFolderContext,
|
|
142
|
-
description: ( localize(
|
|
142
|
+
description: ( localize(8685, "The Source Control resource folder context menu"))
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
key: 'scm/resourceGroup/context',
|
|
146
146
|
id: MenuId.SCMResourceGroupContext,
|
|
147
|
-
description: ( localize(
|
|
147
|
+
description: ( localize(8686, "The Source Control resource group context menu"))
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
key: 'scm/change/title',
|
|
151
151
|
id: MenuId.SCMChangeContext,
|
|
152
|
-
description: ( localize(
|
|
152
|
+
description: ( localize(8687, "The Source Control inline change menu"))
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
key: 'scm/inputBox',
|
|
156
156
|
id: MenuId.SCMInputBox,
|
|
157
|
-
description: ( localize(
|
|
157
|
+
description: ( localize(8688, "The Source Control input box menu")),
|
|
158
158
|
proposed: 'contribSourceControlInputBoxMenu'
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
key: 'scm/history/title',
|
|
162
162
|
id: MenuId.SCMHistoryTitle,
|
|
163
|
-
description: ( localize(
|
|
163
|
+
description: ( localize(8689, "The Source Control History title menu")),
|
|
164
164
|
proposed: 'contribSourceControlHistoryTitleMenu'
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
key: 'scm/historyItem/context',
|
|
168
168
|
id: MenuId.SCMChangesContext,
|
|
169
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(8690, "The Source Control history item context menu")),
|
|
170
170
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
key: 'statusBar/remoteIndicator',
|
|
174
174
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(8691, "The remote indicator menu in the status bar")),
|
|
176
176
|
supportsSubmenus: false
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
key: 'terminal/context',
|
|
180
180
|
id: MenuId.TerminalInstanceContext,
|
|
181
|
-
description: ( localize(
|
|
181
|
+
description: ( localize(8692, "The terminal context menu"))
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
key: 'terminal/title/context',
|
|
185
185
|
id: MenuId.TerminalTabContext,
|
|
186
|
-
description: ( localize(
|
|
186
|
+
description: ( localize(8693, "The terminal tabs context menu"))
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
key: 'view/title',
|
|
190
190
|
id: MenuId.ViewTitle,
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(8694, "The contributed view title menu"))
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
key: 'viewContainer/title',
|
|
195
195
|
id: MenuId.ViewContainerTitle,
|
|
196
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(8695, "The contributed view container title menu")),
|
|
197
197
|
proposed: 'contribViewContainerTitle'
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
key: 'view/item/context',
|
|
201
201
|
id: MenuId.ViewItemContext,
|
|
202
|
-
description: ( localize(
|
|
202
|
+
description: ( localize(8696, "The contributed view item context menu"))
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
key: 'comments/comment/editorActions',
|
|
206
206
|
id: MenuId.CommentEditorActions,
|
|
207
|
-
description: ( localize(
|
|
207
|
+
description: ( localize(8697, "The contributed comment editor actions")),
|
|
208
208
|
proposed: 'contribCommentEditorActionsMenu'
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
key: 'comments/commentThread/title',
|
|
212
212
|
id: MenuId.CommentThreadTitle,
|
|
213
|
-
description: ( localize(
|
|
213
|
+
description: ( localize(8698, "The contributed comment thread title menu"))
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
key: 'comments/commentThread/context',
|
|
217
217
|
id: MenuId.CommentThreadActions,
|
|
218
218
|
description: ( localize(
|
|
219
|
-
|
|
219
|
+
8699,
|
|
220
220
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
221
221
|
)),
|
|
222
222
|
supportsSubmenus: false
|
|
@@ -225,7 +225,7 @@ const apiMenus = [
|
|
|
225
225
|
key: 'comments/commentThread/additionalActions',
|
|
226
226
|
id: MenuId.CommentThreadAdditionalActions,
|
|
227
227
|
description: ( localize(
|
|
228
|
-
|
|
228
|
+
8699,
|
|
229
229
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
230
230
|
)),
|
|
231
231
|
supportsSubmenus: true,
|
|
@@ -235,7 +235,7 @@ const apiMenus = [
|
|
|
235
235
|
key: 'comments/commentThread/title/context',
|
|
236
236
|
id: MenuId.CommentThreadTitleContext,
|
|
237
237
|
description: ( localize(
|
|
238
|
-
|
|
238
|
+
8700,
|
|
239
239
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
240
240
|
)),
|
|
241
241
|
proposed: 'contribCommentPeekContext'
|
|
@@ -243,13 +243,13 @@ const apiMenus = [
|
|
|
243
243
|
{
|
|
244
244
|
key: 'comments/comment/title',
|
|
245
245
|
id: MenuId.CommentTitle,
|
|
246
|
-
description: ( localize(
|
|
246
|
+
description: ( localize(8701, "The contributed comment title menu"))
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
key: 'comments/comment/context',
|
|
250
250
|
id: MenuId.CommentActions,
|
|
251
251
|
description: ( localize(
|
|
252
|
-
|
|
252
|
+
8702,
|
|
253
253
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
254
254
|
)),
|
|
255
255
|
supportsSubmenus: false
|
|
@@ -258,7 +258,7 @@ const apiMenus = [
|
|
|
258
258
|
key: 'comments/commentThread/comment/context',
|
|
259
259
|
id: MenuId.CommentThreadCommentContext,
|
|
260
260
|
description: ( localize(
|
|
261
|
-
|
|
261
|
+
8703,
|
|
262
262
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
263
263
|
)),
|
|
264
264
|
proposed: 'contribCommentPeekContext'
|
|
@@ -266,173 +266,173 @@ const apiMenus = [
|
|
|
266
266
|
{
|
|
267
267
|
key: 'commentsView/commentThread/context',
|
|
268
268
|
id: MenuId.CommentsViewThreadActions,
|
|
269
|
-
description: ( localize(
|
|
269
|
+
description: ( localize(8704, "The contributed comment thread context menu in the comments view")),
|
|
270
270
|
proposed: 'contribCommentsViewThreadMenus'
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
key: 'notebook/toolbar',
|
|
274
274
|
id: MenuId.NotebookToolbar,
|
|
275
|
-
description: ( localize(
|
|
275
|
+
description: ( localize(8705, "The contributed notebook toolbar menu"))
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
key: 'notebook/kernelSource',
|
|
279
279
|
id: MenuId.NotebookKernelSource,
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(8706, "The contributed notebook kernel sources menu")),
|
|
281
281
|
proposed: 'notebookKernelSource'
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
key: 'notebook/cell/title',
|
|
285
285
|
id: MenuId.NotebookCellTitle,
|
|
286
|
-
description: ( localize(
|
|
286
|
+
description: ( localize(8707, "The contributed notebook cell title menu"))
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
289
|
key: 'notebook/cell/execute',
|
|
290
290
|
id: MenuId.NotebookCellExecute,
|
|
291
|
-
description: ( localize(
|
|
291
|
+
description: ( localize(8708, "The contributed notebook cell execution menu"))
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
key: 'interactive/toolbar',
|
|
295
295
|
id: MenuId.InteractiveToolbar,
|
|
296
|
-
description: ( localize(
|
|
296
|
+
description: ( localize(8709, "The contributed interactive toolbar menu")),
|
|
297
297
|
},
|
|
298
298
|
{
|
|
299
299
|
key: 'interactive/cell/title',
|
|
300
300
|
id: MenuId.InteractiveCellTitle,
|
|
301
|
-
description: ( localize(
|
|
301
|
+
description: ( localize(8710, "The contributed interactive cell title menu")),
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
key: 'issue/reporter',
|
|
305
305
|
id: MenuId.IssueReporter,
|
|
306
|
-
description: ( localize(
|
|
306
|
+
description: ( localize(8711, "The contributed issue reporter menu")),
|
|
307
307
|
proposed: 'contribIssueReporter'
|
|
308
308
|
},
|
|
309
309
|
{
|
|
310
310
|
key: 'testing/item/context',
|
|
311
311
|
id: MenuId.TestItem,
|
|
312
|
-
description: ( localize(
|
|
312
|
+
description: ( localize(8712, "The contributed test item menu")),
|
|
313
313
|
},
|
|
314
314
|
{
|
|
315
315
|
key: 'testing/item/gutter',
|
|
316
316
|
id: MenuId.TestItemGutter,
|
|
317
|
-
description: ( localize(
|
|
317
|
+
description: ( localize(8713, "The menu for a gutter decoration for a test item")),
|
|
318
318
|
},
|
|
319
319
|
{
|
|
320
320
|
key: 'testing/profiles/context',
|
|
321
321
|
id: MenuId.TestProfilesContext,
|
|
322
|
-
description: ( localize(
|
|
322
|
+
description: ( localize(8714, "The menu for configuring testing profiles.")),
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
key: 'testing/item/result',
|
|
326
326
|
id: MenuId.TestPeekElement,
|
|
327
|
-
description: ( localize(
|
|
327
|
+
description: ( localize(8715, "The menu for an item in the Test Results view or peek.")),
|
|
328
328
|
},
|
|
329
329
|
{
|
|
330
330
|
key: 'testing/message/context',
|
|
331
331
|
id: MenuId.TestMessageContext,
|
|
332
332
|
description: ( localize(
|
|
333
|
-
|
|
333
|
+
8716,
|
|
334
334
|
"A prominent button overlaying editor content where the message is displayed"
|
|
335
335
|
)),
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
key: 'testing/message/content',
|
|
339
339
|
id: MenuId.TestMessageContent,
|
|
340
|
-
description: ( localize(
|
|
340
|
+
description: ( localize(8717, "Context menu for the message in the results tree")),
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
key: 'extension/context',
|
|
344
344
|
id: MenuId.ExtensionContext,
|
|
345
|
-
description: ( localize(
|
|
345
|
+
description: ( localize(8718, "The extension context menu"))
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
key: 'timeline/title',
|
|
349
349
|
id: MenuId.TimelineTitle,
|
|
350
|
-
description: ( localize(
|
|
350
|
+
description: ( localize(8719, "The Timeline view title menu"))
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
key: 'timeline/item/context',
|
|
354
354
|
id: MenuId.TimelineItemContext,
|
|
355
|
-
description: ( localize(
|
|
355
|
+
description: ( localize(8720, "The Timeline view item context menu"))
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
key: 'ports/item/context',
|
|
359
359
|
id: MenuId.TunnelContext,
|
|
360
|
-
description: ( localize(
|
|
360
|
+
description: ( localize(8721, "The Ports view item context menu"))
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
key: 'ports/item/origin/inline',
|
|
364
364
|
id: MenuId.TunnelOriginInline,
|
|
365
|
-
description: ( localize(
|
|
365
|
+
description: ( localize(8722, "The Ports view item origin inline menu"))
|
|
366
366
|
},
|
|
367
367
|
{
|
|
368
368
|
key: 'ports/item/port/inline',
|
|
369
369
|
id: MenuId.TunnelPortInline,
|
|
370
|
-
description: ( localize(
|
|
370
|
+
description: ( localize(8723, "The Ports view item port inline menu"))
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
key: 'file/newFile',
|
|
374
374
|
id: MenuId.NewFile,
|
|
375
|
-
description: ( localize(
|
|
375
|
+
description: ( localize(8724, "The 'New File...' quick pick, shown on welcome page and File menu.")),
|
|
376
376
|
supportsSubmenus: false,
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
key: 'webview/context',
|
|
380
380
|
id: MenuId.WebviewContext,
|
|
381
|
-
description: ( localize(
|
|
381
|
+
description: ( localize(8725, "The webview context menu"))
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
key: 'file/share',
|
|
385
385
|
id: MenuId.MenubarShare,
|
|
386
|
-
description: ( localize(
|
|
386
|
+
description: ( localize(8726, "Share submenu shown in the top level File menu.")),
|
|
387
387
|
proposed: 'contribShareMenu'
|
|
388
388
|
},
|
|
389
389
|
{
|
|
390
390
|
key: 'editor/inlineCompletions/actions',
|
|
391
391
|
id: MenuId.InlineCompletionsActions,
|
|
392
|
-
description: ( localize(
|
|
392
|
+
description: ( localize(8727, "The actions shown when hovering on an inline completion")),
|
|
393
393
|
supportsSubmenus: false,
|
|
394
394
|
proposed: 'inlineCompletionsAdditions'
|
|
395
395
|
},
|
|
396
396
|
{
|
|
397
397
|
key: 'editor/inlineEdit/actions',
|
|
398
398
|
id: MenuId.InlineEditActions,
|
|
399
|
-
description: ( localize(
|
|
399
|
+
description: ( localize(8728, "The actions shown when hovering on an inline edit")),
|
|
400
400
|
supportsSubmenus: false,
|
|
401
401
|
proposed: 'inlineEdit'
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
404
|
key: 'editor/content',
|
|
405
405
|
id: MenuId.EditorContent,
|
|
406
|
-
description: ( localize(
|
|
406
|
+
description: ( localize(8729, "The prominent button in an editor, overlays its content")),
|
|
407
407
|
proposed: 'contribEditorContentMenu'
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
key: 'editor/lineNumber/context',
|
|
411
411
|
id: MenuId.EditorLineNumberContext,
|
|
412
|
-
description: ( localize(
|
|
412
|
+
description: ( localize(8730, "The contributed editor line number context menu"))
|
|
413
413
|
},
|
|
414
414
|
{
|
|
415
415
|
key: 'mergeEditor/result/title',
|
|
416
416
|
id: MenuId.MergeInputResultToolbar,
|
|
417
|
-
description: ( localize(
|
|
417
|
+
description: ( localize(8731, "The result toolbar of the merge editor")),
|
|
418
418
|
proposed: 'contribMergeEditorMenus'
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
421
|
key: 'multiDiffEditor/resource/title',
|
|
422
422
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
423
|
-
description: ( localize(
|
|
423
|
+
description: ( localize(8732, "The resource toolbar in the multi diff editor")),
|
|
424
424
|
proposed: 'contribMultiDiffEditorMenus'
|
|
425
425
|
},
|
|
426
426
|
{
|
|
427
427
|
key: 'diffEditor/gutter/hunk',
|
|
428
428
|
id: MenuId.DiffEditorHunkToolbar,
|
|
429
|
-
description: ( localize(
|
|
429
|
+
description: ( localize(8733, "The gutter toolbar in the diff editor")),
|
|
430
430
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
key: 'diffEditor/gutter/selection',
|
|
434
434
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
435
|
-
description: ( localize(
|
|
435
|
+
description: ( localize(8733, "The gutter toolbar in the diff editor")),
|
|
436
436
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
437
437
|
}
|
|
438
438
|
];
|
|
@@ -445,22 +445,22 @@ var schema;
|
|
|
445
445
|
function isValidMenuItem(item, collector) {
|
|
446
446
|
if (typeof item.command !== 'string') {
|
|
447
447
|
collector.error(( localize(
|
|
448
|
-
|
|
448
|
+
8734,
|
|
449
449
|
"property `{0}` is mandatory and must be of type `string`",
|
|
450
450
|
'command'
|
|
451
451
|
)));
|
|
452
452
|
return false;
|
|
453
453
|
}
|
|
454
454
|
if (item.alt && typeof item.alt !== 'string') {
|
|
455
|
-
collector.error(( localize(
|
|
455
|
+
collector.error(( localize(8735, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
456
456
|
return false;
|
|
457
457
|
}
|
|
458
458
|
if (item.when && typeof item.when !== 'string') {
|
|
459
|
-
collector.error(( localize(
|
|
459
|
+
collector.error(( localize(8735, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
460
460
|
return false;
|
|
461
461
|
}
|
|
462
462
|
if (item.group && typeof item.group !== 'string') {
|
|
463
|
-
collector.error(( localize(
|
|
463
|
+
collector.error(( localize(8735, "property `{0}` can be omitted or must be of type `string`", 'group')));
|
|
464
464
|
return false;
|
|
465
465
|
}
|
|
466
466
|
return true;
|
|
@@ -469,18 +469,18 @@ var schema;
|
|
|
469
469
|
function isValidSubmenuItem(item, collector) {
|
|
470
470
|
if (typeof item.submenu !== 'string') {
|
|
471
471
|
collector.error(( localize(
|
|
472
|
-
|
|
472
|
+
8734,
|
|
473
473
|
"property `{0}` is mandatory and must be of type `string`",
|
|
474
474
|
'submenu'
|
|
475
475
|
)));
|
|
476
476
|
return false;
|
|
477
477
|
}
|
|
478
478
|
if (item.when && typeof item.when !== 'string') {
|
|
479
|
-
collector.error(( localize(
|
|
479
|
+
collector.error(( localize(8735, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
480
480
|
return false;
|
|
481
481
|
}
|
|
482
482
|
if (item.group && typeof item.group !== 'string') {
|
|
483
|
-
collector.error(( localize(
|
|
483
|
+
collector.error(( localize(8735, "property `{0}` can be omitted or must be of type `string`", 'group')));
|
|
484
484
|
return false;
|
|
485
485
|
}
|
|
486
486
|
return true;
|
|
@@ -488,7 +488,7 @@ var schema;
|
|
|
488
488
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
489
489
|
function isValidItems(items, collector) {
|
|
490
490
|
if (!Array.isArray(items)) {
|
|
491
|
-
collector.error(( localize(
|
|
491
|
+
collector.error(( localize(8736, "submenu items must be an array")));
|
|
492
492
|
return false;
|
|
493
493
|
}
|
|
494
494
|
for (const item of items) {
|
|
@@ -508,15 +508,15 @@ var schema;
|
|
|
508
508
|
schema.isValidItems = isValidItems;
|
|
509
509
|
function isValidSubmenu(submenu, collector) {
|
|
510
510
|
if (typeof submenu !== 'object') {
|
|
511
|
-
collector.error(( localize(
|
|
511
|
+
collector.error(( localize(8737, "submenu items must be an object")));
|
|
512
512
|
return false;
|
|
513
513
|
}
|
|
514
514
|
if (typeof submenu.id !== 'string') {
|
|
515
|
-
collector.error(( localize(
|
|
515
|
+
collector.error(( localize(8734, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
516
516
|
return false;
|
|
517
517
|
}
|
|
518
518
|
if (typeof submenu.label !== 'string') {
|
|
519
|
-
collector.error(( localize(
|
|
519
|
+
collector.error(( localize(8734, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
520
520
|
return false;
|
|
521
521
|
}
|
|
522
522
|
return true;
|
|
@@ -528,24 +528,24 @@ var schema;
|
|
|
528
528
|
properties: {
|
|
529
529
|
command: {
|
|
530
530
|
description: ( localize(
|
|
531
|
-
|
|
531
|
+
8738,
|
|
532
532
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
533
533
|
)),
|
|
534
534
|
type: 'string'
|
|
535
535
|
},
|
|
536
536
|
alt: {
|
|
537
537
|
description: ( localize(
|
|
538
|
-
|
|
538
|
+
8739,
|
|
539
539
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
540
540
|
)),
|
|
541
541
|
type: 'string'
|
|
542
542
|
},
|
|
543
543
|
when: {
|
|
544
|
-
description: ( localize(
|
|
544
|
+
description: ( localize(8740, 'Condition which must be true to show this item')),
|
|
545
545
|
type: 'string'
|
|
546
546
|
},
|
|
547
547
|
group: {
|
|
548
|
-
description: ( localize(
|
|
548
|
+
description: ( localize(8741, 'Group into which this item belongs')),
|
|
549
549
|
type: 'string'
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -555,15 +555,15 @@ var schema;
|
|
|
555
555
|
required: ['submenu'],
|
|
556
556
|
properties: {
|
|
557
557
|
submenu: {
|
|
558
|
-
description: ( localize(
|
|
558
|
+
description: ( localize(8742, 'Identifier of the submenu to display in this item.')),
|
|
559
559
|
type: 'string'
|
|
560
560
|
},
|
|
561
561
|
when: {
|
|
562
|
-
description: ( localize(
|
|
562
|
+
description: ( localize(8740, 'Condition which must be true to show this item')),
|
|
563
563
|
type: 'string'
|
|
564
564
|
},
|
|
565
565
|
group: {
|
|
566
|
-
description: ( localize(
|
|
566
|
+
description: ( localize(8741, 'Group into which this item belongs')),
|
|
567
567
|
type: 'string'
|
|
568
568
|
}
|
|
569
569
|
}
|
|
@@ -573,16 +573,16 @@ var schema;
|
|
|
573
573
|
required: ['id', 'label'],
|
|
574
574
|
properties: {
|
|
575
575
|
id: {
|
|
576
|
-
description: ( localize(
|
|
576
|
+
description: ( localize(8743, 'Identifier of the menu to display as a submenu.')),
|
|
577
577
|
type: 'string'
|
|
578
578
|
},
|
|
579
579
|
label: {
|
|
580
|
-
description: ( localize(
|
|
580
|
+
description: ( localize(8744, 'The label of the menu item which leads to this submenu.')),
|
|
581
581
|
type: 'string'
|
|
582
582
|
},
|
|
583
583
|
icon: {
|
|
584
584
|
description: ( localize(
|
|
585
|
-
|
|
585
|
+
8745,
|
|
586
586
|
'(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)`'
|
|
587
587
|
)),
|
|
588
588
|
anyOf: [{
|
|
@@ -592,11 +592,11 @@ var schema;
|
|
|
592
592
|
type: 'object',
|
|
593
593
|
properties: {
|
|
594
594
|
light: {
|
|
595
|
-
description: ( localize(
|
|
595
|
+
description: ( localize(8746, 'Icon path when a light theme is used')),
|
|
596
596
|
type: 'string'
|
|
597
597
|
},
|
|
598
598
|
dark: {
|
|
599
|
-
description: ( localize(
|
|
599
|
+
description: ( localize(8747, 'Icon path when a dark theme is used')),
|
|
600
600
|
type: 'string'
|
|
601
601
|
}
|
|
602
602
|
}
|
|
@@ -605,11 +605,11 @@ var schema;
|
|
|
605
605
|
}
|
|
606
606
|
};
|
|
607
607
|
schema.menusContribution = {
|
|
608
|
-
description: ( localize(
|
|
608
|
+
description: ( localize(8748, "Contributes menu items to the editor")),
|
|
609
609
|
type: 'object',
|
|
610
610
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
611
611
|
markdownDescription: menu.proposed ? ( localize(
|
|
612
|
-
|
|
612
|
+
8749,
|
|
613
613
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
614
614
|
menu.proposed,
|
|
615
615
|
menu.description
|
|
@@ -624,18 +624,18 @@ var schema;
|
|
|
624
624
|
}
|
|
625
625
|
};
|
|
626
626
|
schema.submenusContribution = {
|
|
627
|
-
description: ( localize(
|
|
627
|
+
description: ( localize(8750, "Contributes submenu items to the editor")),
|
|
628
628
|
type: 'array',
|
|
629
629
|
items: submenu
|
|
630
630
|
};
|
|
631
631
|
function isValidCommand(command, collector) {
|
|
632
632
|
if (!command) {
|
|
633
|
-
collector.error(( localize(
|
|
633
|
+
collector.error(( localize(8751, "expected non-empty value.")));
|
|
634
634
|
return false;
|
|
635
635
|
}
|
|
636
636
|
if (isFalsyOrWhitespace(command.command)) {
|
|
637
637
|
collector.error(( localize(
|
|
638
|
-
|
|
638
|
+
8734,
|
|
639
639
|
"property `{0}` is mandatory and must be of type `string`",
|
|
640
640
|
'command'
|
|
641
641
|
)));
|
|
@@ -649,7 +649,7 @@ var schema;
|
|
|
649
649
|
}
|
|
650
650
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
651
651
|
collector.error(( localize(
|
|
652
|
-
|
|
652
|
+
8735,
|
|
653
653
|
"property `{0}` can be omitted or must be of type `string`",
|
|
654
654
|
'precondition'
|
|
655
655
|
)));
|
|
@@ -675,7 +675,7 @@ var schema;
|
|
|
675
675
|
return true;
|
|
676
676
|
}
|
|
677
677
|
collector.error(( localize(
|
|
678
|
-
|
|
678
|
+
8752,
|
|
679
679
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
680
680
|
)));
|
|
681
681
|
return false;
|
|
@@ -683,7 +683,7 @@ var schema;
|
|
|
683
683
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
684
684
|
if (typeof localized === 'undefined') {
|
|
685
685
|
collector.error(( localize(
|
|
686
|
-
|
|
686
|
+
8753,
|
|
687
687
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
688
688
|
propertyName
|
|
689
689
|
)));
|
|
@@ -691,7 +691,7 @@ var schema;
|
|
|
691
691
|
}
|
|
692
692
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
693
693
|
collector.error(( localize(
|
|
694
|
-
|
|
694
|
+
8734,
|
|
695
695
|
"property `{0}` is mandatory and must be of type `string`",
|
|
696
696
|
propertyName
|
|
697
697
|
)));
|
|
@@ -699,7 +699,7 @@ var schema;
|
|
|
699
699
|
}
|
|
700
700
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
701
701
|
collector.error(( localize(
|
|
702
|
-
|
|
702
|
+
8754,
|
|
703
703
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
704
704
|
`${propertyName}.value`,
|
|
705
705
|
`${propertyName}.original`
|
|
@@ -713,37 +713,37 @@ var schema;
|
|
|
713
713
|
required: ['command', 'title'],
|
|
714
714
|
properties: {
|
|
715
715
|
command: {
|
|
716
|
-
description: ( localize(
|
|
716
|
+
description: ( localize(8755, 'Identifier of the command to execute')),
|
|
717
717
|
type: 'string'
|
|
718
718
|
},
|
|
719
719
|
title: {
|
|
720
|
-
description: ( localize(
|
|
720
|
+
description: ( localize(8756, 'Title by which the command is represented in the UI')),
|
|
721
721
|
type: 'string'
|
|
722
722
|
},
|
|
723
723
|
shortTitle: {
|
|
724
724
|
markdownDescription: ( localize(
|
|
725
|
-
|
|
725
|
+
8757,
|
|
726
726
|
'(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.'
|
|
727
727
|
)),
|
|
728
728
|
type: 'string'
|
|
729
729
|
},
|
|
730
730
|
category: {
|
|
731
731
|
description: ( localize(
|
|
732
|
-
|
|
732
|
+
8758,
|
|
733
733
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
734
734
|
)),
|
|
735
735
|
type: 'string'
|
|
736
736
|
},
|
|
737
737
|
enablement: {
|
|
738
738
|
description: ( localize(
|
|
739
|
-
|
|
739
|
+
8759,
|
|
740
740
|
'(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.'
|
|
741
741
|
)),
|
|
742
742
|
type: 'string'
|
|
743
743
|
},
|
|
744
744
|
icon: {
|
|
745
745
|
description: ( localize(
|
|
746
|
-
|
|
746
|
+
8760,
|
|
747
747
|
'(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)`'
|
|
748
748
|
)),
|
|
749
749
|
anyOf: [{
|
|
@@ -753,11 +753,11 @@ var schema;
|
|
|
753
753
|
type: 'object',
|
|
754
754
|
properties: {
|
|
755
755
|
light: {
|
|
756
|
-
description: ( localize(
|
|
756
|
+
description: ( localize(8761, 'Icon path when a light theme is used')),
|
|
757
757
|
type: 'string'
|
|
758
758
|
},
|
|
759
759
|
dark: {
|
|
760
|
-
description: ( localize(
|
|
760
|
+
description: ( localize(8762, 'Icon path when a dark theme is used')),
|
|
761
761
|
type: 'string'
|
|
762
762
|
}
|
|
763
763
|
}
|
|
@@ -766,7 +766,7 @@ var schema;
|
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
768
|
schema.commandsContribution = {
|
|
769
|
-
description: ( localize(
|
|
769
|
+
description: ( localize(8763, "Contributes commands to the command palette.")),
|
|
770
770
|
oneOf: [
|
|
771
771
|
commandType,
|
|
772
772
|
{
|
|
@@ -810,7 +810,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
810
810
|
if (existingCmd) {
|
|
811
811
|
if (existingCmd.source) {
|
|
812
812
|
extension.collector.info(( localize(
|
|
813
|
-
|
|
813
|
+
8764,
|
|
814
814
|
"Command `{0}` already registered by {1} ({2})",
|
|
815
815
|
userFriendlyCommand.command,
|
|
816
816
|
existingCmd.source.title,
|
|
@@ -818,7 +818,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
818
818
|
)));
|
|
819
819
|
}
|
|
820
820
|
else {
|
|
821
|
-
extension.collector.info(( localize(
|
|
821
|
+
extension.collector.info(( localize(8765, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
824
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -859,19 +859,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
859
859
|
continue;
|
|
860
860
|
}
|
|
861
861
|
if (!submenuInfo.id) {
|
|
862
|
-
collector.warn(( localize(
|
|
862
|
+
collector.warn(( localize(8766, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
863
863
|
continue;
|
|
864
864
|
}
|
|
865
865
|
if (( (_submenus.has(submenuInfo.id)))) {
|
|
866
866
|
collector.info(( localize(
|
|
867
|
-
|
|
867
|
+
8767,
|
|
868
868
|
"The `{0}` submenu was already previously registered.",
|
|
869
869
|
submenuInfo.id
|
|
870
870
|
)));
|
|
871
871
|
continue;
|
|
872
872
|
}
|
|
873
873
|
if (!submenuInfo.label) {
|
|
874
|
-
collector.warn(( localize(
|
|
874
|
+
collector.warn(( localize(8768, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
875
875
|
continue;
|
|
876
876
|
}
|
|
877
877
|
let absoluteIcon;
|
|
@@ -928,7 +928,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
928
928
|
}
|
|
929
929
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
930
930
|
collector.error(( localize(
|
|
931
|
-
|
|
931
|
+
8769,
|
|
932
932
|
"{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}",
|
|
933
933
|
entry[0],
|
|
934
934
|
menu.proposed,
|
|
@@ -943,7 +943,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
943
943
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
944
944
|
if (!command) {
|
|
945
945
|
collector.error(( localize(
|
|
946
|
-
|
|
946
|
+
8770,
|
|
947
947
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
948
948
|
menuItem.command
|
|
949
949
|
)));
|
|
@@ -951,20 +951,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
951
951
|
}
|
|
952
952
|
if (menuItem.alt && !alt) {
|
|
953
953
|
collector.warn(( localize(
|
|
954
|
-
|
|
954
|
+
8771,
|
|
955
955
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
956
956
|
menuItem.alt
|
|
957
957
|
)));
|
|
958
958
|
}
|
|
959
959
|
if (menuItem.command === menuItem.alt) {
|
|
960
|
-
collector.info(( localize(
|
|
960
|
+
collector.info(( localize(8772, "Menu item references the same command as default and alt-command")));
|
|
961
961
|
}
|
|
962
962
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
963
963
|
}
|
|
964
964
|
else {
|
|
965
965
|
if (menu.supportsSubmenus === false) {
|
|
966
966
|
collector.error(( localize(
|
|
967
|
-
|
|
967
|
+
8773,
|
|
968
968
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
969
969
|
)));
|
|
970
970
|
continue;
|
|
@@ -972,7 +972,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
972
972
|
const submenu = _submenus.get(menuItem.submenu);
|
|
973
973
|
if (!submenu) {
|
|
974
974
|
collector.error(( localize(
|
|
975
|
-
|
|
975
|
+
8774,
|
|
976
976
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
977
977
|
menuItem.submenu
|
|
978
978
|
)));
|
|
@@ -985,7 +985,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
985
985
|
}
|
|
986
986
|
if (( (submenuRegistrations.has(submenu.id.id)))) {
|
|
987
987
|
collector.warn(( localize(
|
|
988
|
-
|
|
988
|
+
8775,
|
|
989
989
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
990
990
|
menuItem.submenu,
|
|
991
991
|
entry[0]
|
|
@@ -1007,7 +1007,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1007
1007
|
}
|
|
1008
1008
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1009
1009
|
collector.error(( localize(
|
|
1010
|
-
|
|
1010
|
+
8776,
|
|
1011
1011
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1012
1012
|
'`viewContainer/title`',
|
|
1013
1013
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1075,10 +1075,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1075
1075
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1076
1076
|
}
|
|
1077
1077
|
const headers = [
|
|
1078
|
-
( localize(
|
|
1079
|
-
( localize(
|
|
1080
|
-
( localize(
|
|
1081
|
-
( localize(
|
|
1078
|
+
( localize(8777, "ID")),
|
|
1079
|
+
( localize(8778, "Title")),
|
|
1080
|
+
( localize(8779, "Keyboard Shortcuts")),
|
|
1081
|
+
( localize(8780, "Menu Contexts"))
|
|
1082
1082
|
];
|
|
1083
1083
|
const rows = ( (commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1084
1084
|
.map(command => {
|
|
@@ -1118,7 +1118,7 @@ CommandsTableRenderer = ( (__decorate([
|
|
|
1118
1118
|
], CommandsTableRenderer)));
|
|
1119
1119
|
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
1120
1120
|
id: 'commands',
|
|
1121
|
-
label: ( localize(
|
|
1121
|
+
label: ( localize(8781, "Commands")),
|
|
1122
1122
|
access: {
|
|
1123
1123
|
canToggle: false,
|
|
1124
1124
|
},
|
|
@@ -46,35 +46,35 @@ import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/use
|
|
|
46
46
|
var WorkbenchKeybindingService_1;
|
|
47
47
|
function isValidContributedKeyBinding(keyBinding, rejects) {
|
|
48
48
|
if (!keyBinding) {
|
|
49
|
-
rejects.push(( localize(
|
|
49
|
+
rejects.push(( localize(3537, "expected non-empty value.")));
|
|
50
50
|
return false;
|
|
51
51
|
}
|
|
52
52
|
if (typeof keyBinding.command !== 'string') {
|
|
53
53
|
rejects.push(( localize(
|
|
54
|
-
|
|
54
|
+
3538,
|
|
55
55
|
"property `{0}` is mandatory and must be of type `string`",
|
|
56
56
|
'command'
|
|
57
57
|
)));
|
|
58
58
|
return false;
|
|
59
59
|
}
|
|
60
60
|
if (keyBinding.key && typeof keyBinding.key !== 'string') {
|
|
61
|
-
rejects.push(( localize(
|
|
61
|
+
rejects.push(( localize(3539, "property `{0}` can be omitted or must be of type `string`", 'key')));
|
|
62
62
|
return false;
|
|
63
63
|
}
|
|
64
64
|
if (keyBinding.when && typeof keyBinding.when !== 'string') {
|
|
65
|
-
rejects.push(( localize(
|
|
65
|
+
rejects.push(( localize(3539, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
66
66
|
return false;
|
|
67
67
|
}
|
|
68
68
|
if (keyBinding.mac && typeof keyBinding.mac !== 'string') {
|
|
69
|
-
rejects.push(( localize(
|
|
69
|
+
rejects.push(( localize(3539, "property `{0}` can be omitted or must be of type `string`", 'mac')));
|
|
70
70
|
return false;
|
|
71
71
|
}
|
|
72
72
|
if (keyBinding.linux && typeof keyBinding.linux !== 'string') {
|
|
73
|
-
rejects.push(( localize(
|
|
73
|
+
rejects.push(( localize(3539, "property `{0}` can be omitted or must be of type `string`", 'linux')));
|
|
74
74
|
return false;
|
|
75
75
|
}
|
|
76
76
|
if (keyBinding.win && typeof keyBinding.win !== 'string') {
|
|
77
|
-
rejects.push(( localize(
|
|
77
|
+
rejects.push(( localize(3539, "property `{0}` can be omitted or must be of type `string`", 'win')));
|
|
78
78
|
return false;
|
|
79
79
|
}
|
|
80
80
|
return true;
|
|
@@ -84,33 +84,33 @@ const keybindingType = {
|
|
|
84
84
|
default: { command: '', key: '' },
|
|
85
85
|
properties: {
|
|
86
86
|
command: {
|
|
87
|
-
description: ( localize(
|
|
87
|
+
description: ( localize(3540, 'Identifier of the command to run when keybinding is triggered.')),
|
|
88
88
|
type: 'string'
|
|
89
89
|
},
|
|
90
90
|
args: {
|
|
91
|
-
description: ( localize(
|
|
91
|
+
description: ( localize(3541, "Arguments to pass to the command to execute."))
|
|
92
92
|
},
|
|
93
93
|
key: {
|
|
94
94
|
description: ( localize(
|
|
95
|
-
|
|
95
|
+
3542,
|
|
96
96
|
'Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).'
|
|
97
97
|
)),
|
|
98
98
|
type: 'string'
|
|
99
99
|
},
|
|
100
100
|
mac: {
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(3543, 'Mac specific key or key sequence.')),
|
|
102
102
|
type: 'string'
|
|
103
103
|
},
|
|
104
104
|
linux: {
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(3544, 'Linux specific key or key sequence.')),
|
|
106
106
|
type: 'string'
|
|
107
107
|
},
|
|
108
108
|
win: {
|
|
109
|
-
description: ( localize(
|
|
109
|
+
description: ( localize(3545, 'Windows specific key or key sequence.')),
|
|
110
110
|
type: 'string'
|
|
111
111
|
},
|
|
112
112
|
when: {
|
|
113
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(3546, 'Condition when the key is active.')),
|
|
114
114
|
type: 'string'
|
|
115
115
|
},
|
|
116
116
|
}
|
|
@@ -119,7 +119,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
119
119
|
extensionPoint: 'keybindings',
|
|
120
120
|
deps: [commandsExtensionPoint],
|
|
121
121
|
jsonSchema: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(3547, "Contributes keybindings.")),
|
|
123
123
|
oneOf: [
|
|
124
124
|
keybindingType,
|
|
125
125
|
{
|
|
@@ -502,7 +502,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
502
502
|
}
|
|
503
503
|
if (rejects.length > 0) {
|
|
504
504
|
collector.error(( localize(
|
|
505
|
-
|
|
505
|
+
3548,
|
|
506
506
|
"Invalid `contributes.{0}`: {1}",
|
|
507
507
|
keybindingsExtPoint.name,
|
|
508
508
|
rejects.join('\n')
|
|
@@ -592,7 +592,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
592
592
|
static _getAllCommandsAsComment(boundCommands) {
|
|
593
593
|
const unboundCommands = getAllUnboundCommands(boundCommands);
|
|
594
594
|
const pretty = unboundCommands.sort().join('\n// - ');
|
|
595
|
-
return '// ' + ( localize(
|
|
595
|
+
return '// ' + ( localize(3549, "Here are other available commands: ")) + '\n// - ' + pretty;
|
|
596
596
|
}
|
|
597
597
|
mightProducePrintableCharacter(event) {
|
|
598
598
|
if (event.ctrlKey || event.metaKey || event.altKey) {
|
|
@@ -717,7 +717,7 @@ class KeybindingsJsonSchema {
|
|
|
717
717
|
this.schema = {
|
|
718
718
|
id: KeybindingsJsonSchema.schemaId,
|
|
719
719
|
type: 'array',
|
|
720
|
-
title: ( localize(
|
|
720
|
+
title: ( localize(3550, "Keybindings configuration")),
|
|
721
721
|
allowTrailingCommas: true,
|
|
722
722
|
allowComments: true,
|
|
723
723
|
definitions: {
|
|
@@ -741,7 +741,7 @@ class KeybindingsJsonSchema {
|
|
|
741
741
|
'type': 'string',
|
|
742
742
|
'enum': this.commandsEnum,
|
|
743
743
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
744
|
-
'description': ( localize(
|
|
744
|
+
'description': ( localize(3551, "Name of the command to execute")),
|
|
745
745
|
},
|
|
746
746
|
'commandType': {
|
|
747
747
|
'anyOf': [
|
|
@@ -752,7 +752,7 @@ class KeybindingsJsonSchema {
|
|
|
752
752
|
'type': 'string',
|
|
753
753
|
'enum': this.removalCommandsEnum,
|
|
754
754
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
755
|
-
'description': ( localize(
|
|
755
|
+
'description': ( localize(3552, "Name of the command to remove keyboard shortcut for")),
|
|
756
756
|
},
|
|
757
757
|
{
|
|
758
758
|
'type': 'string'
|
|
@@ -770,7 +770,7 @@ class KeybindingsJsonSchema {
|
|
|
770
770
|
'properties': {
|
|
771
771
|
'key': {
|
|
772
772
|
'type': 'string',
|
|
773
|
-
'description': ( localize(
|
|
773
|
+
'description': ( localize(3553, "Key or key sequence (separated by space)")),
|
|
774
774
|
},
|
|
775
775
|
'command': {
|
|
776
776
|
'anyOf': [
|
|
@@ -783,7 +783,7 @@ class KeybindingsJsonSchema {
|
|
|
783
783
|
'type': 'array'
|
|
784
784
|
},
|
|
785
785
|
'errorMessage': ( localize(
|
|
786
|
-
|
|
786
|
+
3554,
|
|
787
787
|
"Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
|
|
788
788
|
'string'
|
|
789
789
|
))
|
|
@@ -799,10 +799,10 @@ class KeybindingsJsonSchema {
|
|
|
799
799
|
},
|
|
800
800
|
'when': {
|
|
801
801
|
'type': 'string',
|
|
802
|
-
'description': ( localize(
|
|
802
|
+
'description': ( localize(3555, "Condition when the key is active."))
|
|
803
803
|
},
|
|
804
804
|
'args': {
|
|
805
|
-
'description': ( localize(
|
|
805
|
+
'description': ( localize(3556, "Arguments to pass to the command to execute."))
|
|
806
806
|
}
|
|
807
807
|
},
|
|
808
808
|
'$ref': '#/definitions/commandsSchemas'
|
|
@@ -491,12 +491,12 @@ const keyboardConfiguration = {
|
|
|
491
491
|
'id': 'keyboard',
|
|
492
492
|
'order': 15,
|
|
493
493
|
'type': 'object',
|
|
494
|
-
'title': ( localize(
|
|
494
|
+
'title': ( localize(3557, "Keyboard")),
|
|
495
495
|
'properties': {
|
|
496
496
|
'keyboard.layout': {
|
|
497
497
|
'type': 'string',
|
|
498
498
|
'default': 'autodetect',
|
|
499
|
-
'description': ( localize(
|
|
499
|
+
'description': ( localize(3558, "Control the keyboard layout used in web."))
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
};
|