@codingame/monaco-vscode-keybindings-service-override 25.0.1 → 25.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-keybindings-service-override",
|
|
3
|
-
"version": "25.0
|
|
3
|
+
"version": "25.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - keybindings service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "25.0
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "25.0
|
|
18
|
+
"@codingame/monaco-vscode-api": "25.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "25.1.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -21,231 +21,231 @@ const apiMenus = [
|
|
|
21
21
|
{
|
|
22
22
|
key: 'commandPalette',
|
|
23
23
|
id: MenuId.CommandPalette,
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(13586, "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(13587, "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(13588, "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(13589, "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(13590, "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(13591, "'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(13592, "'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(13593, "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(13594, "'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(13595, "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(13596, "'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(13597, "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(13598, "The debug variables view context menu"))
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
key: 'debug/watch/context',
|
|
93
93
|
id: MenuId.DebugWatchContext,
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(13599, "The debug watch view context menu"))
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
key: 'debug/toolBar',
|
|
98
98
|
id: MenuId.DebugToolBar,
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(13600, "The debug toolbar menu"))
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
key: 'debug/createConfiguration',
|
|
103
103
|
id: MenuId.DebugCreateConfiguration,
|
|
104
104
|
proposed: 'contribDebugCreateConfiguration',
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(13601, "The debug create configuration menu"))
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
key: 'notebook/variables/context',
|
|
109
109
|
id: MenuId.NotebookVariablesContext,
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(13602, "The notebook variables view context menu"))
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
key: 'menuBar/home',
|
|
114
114
|
id: MenuId.MenubarHomeMenu,
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(13603, "The home indicator context menu (web only)")),
|
|
116
116
|
proposed: 'contribMenuBarHome',
|
|
117
117
|
supportsSubmenus: false
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
key: 'menuBar/edit/copy',
|
|
121
121
|
id: MenuId.MenubarCopy,
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(13604, "'Copy as' submenu in the top level Edit menu"))
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
key: 'scm/title',
|
|
126
126
|
id: MenuId.SCMTitle,
|
|
127
|
-
description: ( localize(
|
|
127
|
+
description: ( localize(13605, "The Source Control title menu"))
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
key: 'scm/sourceControl',
|
|
131
131
|
id: MenuId.SCMSourceControl,
|
|
132
|
-
description: ( localize(
|
|
132
|
+
description: ( localize(13606, "The Source Control menu"))
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
key: 'scm/repositories/title',
|
|
136
136
|
id: MenuId.SCMSourceControlTitle,
|
|
137
|
-
description: ( localize(
|
|
137
|
+
description: ( localize(13607, "The Source Control Repositories title menu")),
|
|
138
138
|
proposed: 'contribSourceControlTitleMenu'
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
key: 'scm/repository',
|
|
142
142
|
id: MenuId.SCMSourceControlInline,
|
|
143
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(13608, "The Source Control repository menu")),
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
key: 'scm/resourceState/context',
|
|
147
147
|
id: MenuId.SCMResourceContext,
|
|
148
|
-
description: ( localize(
|
|
148
|
+
description: ( localize(13609, "The Source Control resource state context menu"))
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
key: 'scm/resourceFolder/context',
|
|
152
152
|
id: MenuId.SCMResourceFolderContext,
|
|
153
|
-
description: ( localize(
|
|
153
|
+
description: ( localize(13610, "The Source Control resource folder context menu"))
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
key: 'scm/resourceGroup/context',
|
|
157
157
|
id: MenuId.SCMResourceGroupContext,
|
|
158
|
-
description: ( localize(
|
|
158
|
+
description: ( localize(13611, "The Source Control resource group context menu"))
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
key: 'scm/change/title',
|
|
162
162
|
id: MenuId.SCMChangeContext,
|
|
163
|
-
description: ( localize(
|
|
163
|
+
description: ( localize(13612, "The Source Control inline change menu"))
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
key: 'scm/inputBox',
|
|
167
167
|
id: MenuId.SCMInputBox,
|
|
168
|
-
description: ( localize(
|
|
168
|
+
description: ( localize(13613, "The Source Control input box menu")),
|
|
169
169
|
proposed: 'contribSourceControlInputBoxMenu'
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
key: 'scm/history/title',
|
|
173
173
|
id: MenuId.SCMHistoryTitle,
|
|
174
|
-
description: ( localize(
|
|
174
|
+
description: ( localize(13614, "The Source Control History title menu")),
|
|
175
175
|
proposed: 'contribSourceControlHistoryTitleMenu'
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
key: 'scm/historyItem/context',
|
|
179
179
|
id: MenuId.SCMHistoryItemContext,
|
|
180
|
-
description: ( localize(
|
|
180
|
+
description: ( localize(13615, "The Source Control history item context menu")),
|
|
181
181
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
key: 'scm/historyItemRef/context',
|
|
185
185
|
id: MenuId.SCMHistoryItemRefContext,
|
|
186
|
-
description: ( localize(
|
|
186
|
+
description: ( localize(13616, "The Source Control history item reference context menu")),
|
|
187
187
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
key: 'scm/artifactGroup/context',
|
|
191
191
|
id: MenuId.SCMArtifactGroupContext,
|
|
192
|
-
description: ( localize(
|
|
192
|
+
description: ( localize(13617, "The Source Control artifact group context menu")),
|
|
193
193
|
proposed: 'contribSourceControlArtifactGroupMenu'
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
key: 'scm/artifact/context',
|
|
197
197
|
id: MenuId.SCMArtifactContext,
|
|
198
|
-
description: ( localize(
|
|
198
|
+
description: ( localize(13618, "The Source Control artifact context menu")),
|
|
199
199
|
proposed: 'contribSourceControlArtifactMenu'
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
key: 'statusBar/remoteIndicator',
|
|
203
203
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
204
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(13619, "The remote indicator menu in the status bar")),
|
|
205
205
|
supportsSubmenus: false
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
key: 'terminal/context',
|
|
209
209
|
id: MenuId.TerminalInstanceContext,
|
|
210
|
-
description: ( localize(
|
|
210
|
+
description: ( localize(13620, "The terminal context menu"))
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
key: 'terminal/title/context',
|
|
214
214
|
id: MenuId.TerminalTabContext,
|
|
215
|
-
description: ( localize(
|
|
215
|
+
description: ( localize(13621, "The terminal tabs context menu"))
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
key: 'view/title',
|
|
219
219
|
id: MenuId.ViewTitle,
|
|
220
|
-
description: ( localize(
|
|
220
|
+
description: ( localize(13622, "The contributed view title menu"))
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
key: 'viewContainer/title',
|
|
224
224
|
id: MenuId.ViewContainerTitle,
|
|
225
|
-
description: ( localize(
|
|
225
|
+
description: ( localize(13623, "The contributed view container title menu")),
|
|
226
226
|
proposed: 'contribViewContainerTitle'
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
key: 'view/item/context',
|
|
230
230
|
id: MenuId.ViewItemContext,
|
|
231
|
-
description: ( localize(
|
|
231
|
+
description: ( localize(13624, "The contributed view item context menu"))
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
key: 'comments/comment/editorActions',
|
|
235
235
|
id: MenuId.CommentEditorActions,
|
|
236
|
-
description: ( localize(
|
|
236
|
+
description: ( localize(13625, "The contributed comment editor actions")),
|
|
237
237
|
proposed: 'contribCommentEditorActionsMenu'
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
240
|
key: 'comments/commentThread/title',
|
|
241
241
|
id: MenuId.CommentThreadTitle,
|
|
242
|
-
description: ( localize(
|
|
242
|
+
description: ( localize(13626, "The contributed comment thread title menu"))
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
245
|
key: 'comments/commentThread/context',
|
|
246
246
|
id: MenuId.CommentThreadActions,
|
|
247
247
|
description: ( localize(
|
|
248
|
-
|
|
248
|
+
13627,
|
|
249
249
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
250
250
|
)),
|
|
251
251
|
supportsSubmenus: false
|
|
@@ -254,7 +254,7 @@ const apiMenus = [
|
|
|
254
254
|
key: 'comments/commentThread/additionalActions',
|
|
255
255
|
id: MenuId.CommentThreadAdditionalActions,
|
|
256
256
|
description: ( localize(
|
|
257
|
-
|
|
257
|
+
13627,
|
|
258
258
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
259
259
|
)),
|
|
260
260
|
supportsSubmenus: true,
|
|
@@ -264,7 +264,7 @@ const apiMenus = [
|
|
|
264
264
|
key: 'comments/commentThread/title/context',
|
|
265
265
|
id: MenuId.CommentThreadTitleContext,
|
|
266
266
|
description: ( localize(
|
|
267
|
-
|
|
267
|
+
13628,
|
|
268
268
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
269
269
|
)),
|
|
270
270
|
proposed: 'contribCommentPeekContext'
|
|
@@ -272,13 +272,13 @@ const apiMenus = [
|
|
|
272
272
|
{
|
|
273
273
|
key: 'comments/comment/title',
|
|
274
274
|
id: MenuId.CommentTitle,
|
|
275
|
-
description: ( localize(
|
|
275
|
+
description: ( localize(13629, "The contributed comment title menu"))
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
key: 'comments/comment/context',
|
|
279
279
|
id: MenuId.CommentActions,
|
|
280
280
|
description: ( localize(
|
|
281
|
-
|
|
281
|
+
13630,
|
|
282
282
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
283
283
|
)),
|
|
284
284
|
supportsSubmenus: false
|
|
@@ -287,7 +287,7 @@ const apiMenus = [
|
|
|
287
287
|
key: 'comments/commentThread/comment/context',
|
|
288
288
|
id: MenuId.CommentThreadCommentContext,
|
|
289
289
|
description: ( localize(
|
|
290
|
-
|
|
290
|
+
13631,
|
|
291
291
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
292
292
|
)),
|
|
293
293
|
proposed: 'contribCommentPeekContext'
|
|
@@ -295,113 +295,113 @@ const apiMenus = [
|
|
|
295
295
|
{
|
|
296
296
|
key: 'commentsView/commentThread/context',
|
|
297
297
|
id: MenuId.CommentsViewThreadActions,
|
|
298
|
-
description: ( localize(
|
|
298
|
+
description: ( localize(13632, "The contributed comment thread context menu in the comments view")),
|
|
299
299
|
proposed: 'contribCommentsViewThreadMenus'
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
key: 'notebook/toolbar',
|
|
303
303
|
id: MenuId.NotebookToolbar,
|
|
304
|
-
description: ( localize(
|
|
304
|
+
description: ( localize(13633, "The contributed notebook toolbar menu"))
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
key: 'notebook/kernelSource',
|
|
308
308
|
id: MenuId.NotebookKernelSource,
|
|
309
|
-
description: ( localize(
|
|
309
|
+
description: ( localize(13634, "The contributed notebook kernel sources menu")),
|
|
310
310
|
proposed: 'notebookKernelSource'
|
|
311
311
|
},
|
|
312
312
|
{
|
|
313
313
|
key: 'notebook/cell/title',
|
|
314
314
|
id: MenuId.NotebookCellTitle,
|
|
315
|
-
description: ( localize(
|
|
315
|
+
description: ( localize(13635, "The contributed notebook cell title menu"))
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
key: 'notebook/cell/execute',
|
|
319
319
|
id: MenuId.NotebookCellExecute,
|
|
320
|
-
description: ( localize(
|
|
320
|
+
description: ( localize(13636, "The contributed notebook cell execution menu"))
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
key: 'interactive/toolbar',
|
|
324
324
|
id: MenuId.InteractiveToolbar,
|
|
325
|
-
description: ( localize(
|
|
325
|
+
description: ( localize(13637, "The contributed interactive toolbar menu")),
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
328
|
key: 'interactive/cell/title',
|
|
329
329
|
id: MenuId.InteractiveCellTitle,
|
|
330
|
-
description: ( localize(
|
|
330
|
+
description: ( localize(13638, "The contributed interactive cell title menu")),
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
key: 'issue/reporter',
|
|
334
334
|
id: MenuId.IssueReporter,
|
|
335
|
-
description: ( localize(
|
|
335
|
+
description: ( localize(13639, "The contributed issue reporter menu"))
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
key: 'testing/item/context',
|
|
339
339
|
id: MenuId.TestItem,
|
|
340
|
-
description: ( localize(
|
|
340
|
+
description: ( localize(13640, "The contributed test item menu")),
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
key: 'testing/item/gutter',
|
|
344
344
|
id: MenuId.TestItemGutter,
|
|
345
|
-
description: ( localize(
|
|
345
|
+
description: ( localize(13641, "The menu for a gutter decoration for a test item")),
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
key: 'testing/profiles/context',
|
|
349
349
|
id: MenuId.TestProfilesContext,
|
|
350
|
-
description: ( localize(
|
|
350
|
+
description: ( localize(13642, "The menu for configuring testing profiles.")),
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
key: 'testing/item/result',
|
|
354
354
|
id: MenuId.TestPeekElement,
|
|
355
|
-
description: ( localize(
|
|
355
|
+
description: ( localize(13643, "The menu for an item in the Test Results view or peek.")),
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
key: 'testing/message/context',
|
|
359
359
|
id: MenuId.TestMessageContext,
|
|
360
360
|
description: ( localize(
|
|
361
|
-
|
|
361
|
+
13644,
|
|
362
362
|
"A prominent button overlaying editor content where the message is displayed"
|
|
363
363
|
)),
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
key: 'testing/message/content',
|
|
367
367
|
id: MenuId.TestMessageContent,
|
|
368
|
-
description: ( localize(
|
|
368
|
+
description: ( localize(13645, "Context menu for the message in the results tree")),
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
371
|
key: 'extension/context',
|
|
372
372
|
id: MenuId.ExtensionContext,
|
|
373
|
-
description: ( localize(
|
|
373
|
+
description: ( localize(13646, "The extension context menu"))
|
|
374
374
|
},
|
|
375
375
|
{
|
|
376
376
|
key: 'timeline/title',
|
|
377
377
|
id: MenuId.TimelineTitle,
|
|
378
|
-
description: ( localize(
|
|
378
|
+
description: ( localize(13647, "The Timeline view title menu"))
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
381
|
key: 'timeline/item/context',
|
|
382
382
|
id: MenuId.TimelineItemContext,
|
|
383
|
-
description: ( localize(
|
|
383
|
+
description: ( localize(13648, "The Timeline view item context menu"))
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
386
|
key: 'ports/item/context',
|
|
387
387
|
id: MenuId.TunnelContext,
|
|
388
|
-
description: ( localize(
|
|
388
|
+
description: ( localize(13649, "The Ports view item context menu"))
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
391
|
key: 'ports/item/origin/inline',
|
|
392
392
|
id: MenuId.TunnelOriginInline,
|
|
393
|
-
description: ( localize(
|
|
393
|
+
description: ( localize(13650, "The Ports view item origin inline menu"))
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
396
|
key: 'ports/item/port/inline',
|
|
397
397
|
id: MenuId.TunnelPortInline,
|
|
398
|
-
description: ( localize(
|
|
398
|
+
description: ( localize(13651, "The Ports view item port inline menu"))
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
key: 'file/newFile',
|
|
402
402
|
id: MenuId.NewFile,
|
|
403
403
|
description: ( localize(
|
|
404
|
-
|
|
404
|
+
13652,
|
|
405
405
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
406
406
|
)),
|
|
407
407
|
supportsSubmenus: false,
|
|
@@ -409,101 +409,101 @@ const apiMenus = [
|
|
|
409
409
|
{
|
|
410
410
|
key: 'webview/context',
|
|
411
411
|
id: MenuId.WebviewContext,
|
|
412
|
-
description: ( localize(
|
|
412
|
+
description: ( localize(13653, "The webview context menu"))
|
|
413
413
|
},
|
|
414
414
|
{
|
|
415
415
|
key: 'file/share',
|
|
416
416
|
id: MenuId.MenubarShare,
|
|
417
|
-
description: ( localize(
|
|
417
|
+
description: ( localize(13654, "Share submenu shown in the top level File menu.")),
|
|
418
418
|
proposed: 'contribShareMenu'
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
421
|
key: 'editor/inlineCompletions/actions',
|
|
422
422
|
id: MenuId.InlineCompletionsActions,
|
|
423
|
-
description: ( localize(
|
|
423
|
+
description: ( localize(13655, "The actions shown when hovering on an inline completion")),
|
|
424
424
|
supportsSubmenus: false,
|
|
425
425
|
proposed: 'inlineCompletionsAdditions'
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
428
|
key: 'editor/content',
|
|
429
429
|
id: MenuId.EditorContent,
|
|
430
|
-
description: ( localize(
|
|
430
|
+
description: ( localize(13656, "The prominent button in an editor, overlays its content")),
|
|
431
431
|
proposed: 'contribEditorContentMenu'
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
434
|
key: 'editor/lineNumber/context',
|
|
435
435
|
id: MenuId.EditorLineNumberContext,
|
|
436
|
-
description: ( localize(
|
|
436
|
+
description: ( localize(13657, "The contributed editor line number context menu"))
|
|
437
437
|
},
|
|
438
438
|
{
|
|
439
439
|
key: 'mergeEditor/result/title',
|
|
440
440
|
id: MenuId.MergeInputResultToolbar,
|
|
441
|
-
description: ( localize(
|
|
441
|
+
description: ( localize(13658, "The result toolbar of the merge editor")),
|
|
442
442
|
proposed: 'contribMergeEditorMenus'
|
|
443
443
|
},
|
|
444
444
|
{
|
|
445
445
|
key: 'multiDiffEditor/content',
|
|
446
446
|
id: MenuId.MultiDiffEditorContent,
|
|
447
|
-
description: ( localize(
|
|
447
|
+
description: ( localize(13659, "A prominent button overlaying the multi diff editor")),
|
|
448
448
|
proposed: 'contribEditorContentMenu'
|
|
449
449
|
},
|
|
450
450
|
{
|
|
451
451
|
key: 'multiDiffEditor/resource/title',
|
|
452
452
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
453
|
-
description: ( localize(
|
|
453
|
+
description: ( localize(13660, "The resource toolbar in the multi diff editor")),
|
|
454
454
|
proposed: 'contribMultiDiffEditorMenus'
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
457
|
key: 'diffEditor/gutter/hunk',
|
|
458
458
|
id: MenuId.DiffEditorHunkToolbar,
|
|
459
|
-
description: ( localize(
|
|
459
|
+
description: ( localize(13661, "The gutter toolbar in the diff editor")),
|
|
460
460
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
461
461
|
},
|
|
462
462
|
{
|
|
463
463
|
key: 'diffEditor/gutter/selection',
|
|
464
464
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
465
|
-
description: ( localize(
|
|
465
|
+
description: ( localize(13661, "The gutter toolbar in the diff editor")),
|
|
466
466
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
467
467
|
},
|
|
468
468
|
{
|
|
469
469
|
key: 'searchPanel/aiResults/commands',
|
|
470
470
|
id: MenuId.SearchActionMenu,
|
|
471
471
|
description: ( localize(
|
|
472
|
-
|
|
472
|
+
13662,
|
|
473
473
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
474
474
|
)),
|
|
475
475
|
},
|
|
476
476
|
{
|
|
477
477
|
key: 'editor/context/chat',
|
|
478
478
|
id: MenuId.ChatTextEditorMenu,
|
|
479
|
-
description: ( localize(
|
|
479
|
+
description: ( localize(13663, "The Chat submenu in the text editor context menu.")),
|
|
480
480
|
supportsSubmenus: false,
|
|
481
481
|
proposed: 'chatParticipantPrivate'
|
|
482
482
|
},
|
|
483
483
|
{
|
|
484
484
|
key: 'chat/input/editing/sessionToolbar',
|
|
485
485
|
id: MenuId.ChatEditingSessionChangesToolbar,
|
|
486
|
-
description: ( localize(
|
|
486
|
+
description: ( localize(13664, "The Chat Editing widget toolbar menu for session changes.")),
|
|
487
487
|
proposed: 'chatSessionsProvider'
|
|
488
488
|
},
|
|
489
489
|
{
|
|
490
490
|
key: 'chat/chatSessions',
|
|
491
491
|
id: MenuId.AgentSessionsContext,
|
|
492
|
-
description: ( localize(
|
|
492
|
+
description: ( localize(13665, "The Chat Sessions menu.")),
|
|
493
493
|
supportsSubmenus: false,
|
|
494
494
|
proposed: 'chatSessionsProvider'
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
497
|
key: 'chatSessions/newSession',
|
|
498
498
|
id: MenuId.AgentSessionsCreateSubMenu,
|
|
499
|
-
description: ( localize(
|
|
499
|
+
description: ( localize(13666, "Menu for new chat sessions.")),
|
|
500
500
|
supportsSubmenus: false,
|
|
501
501
|
proposed: 'chatSessionsProvider'
|
|
502
502
|
},
|
|
503
503
|
{
|
|
504
504
|
key: 'chat/multiDiff/context',
|
|
505
505
|
id: MenuId.ChatMultiDiffContext,
|
|
506
|
-
description: ( localize(
|
|
506
|
+
description: ( localize(13667, "The Chat Multi-Diff context menu.")),
|
|
507
507
|
supportsSubmenus: false,
|
|
508
508
|
proposed: 'chatSessionsProvider',
|
|
509
509
|
},
|
|
@@ -517,23 +517,23 @@ var schema;
|
|
|
517
517
|
function isValidMenuItem(item, collector) {
|
|
518
518
|
if (typeof item.command !== 'string') {
|
|
519
519
|
collector.error(( localize(
|
|
520
|
-
|
|
520
|
+
13668,
|
|
521
521
|
"property `{0}` is mandatory and must be of type `string`",
|
|
522
522
|
'command'
|
|
523
523
|
)));
|
|
524
524
|
return false;
|
|
525
525
|
}
|
|
526
526
|
if (item.alt && typeof item.alt !== 'string') {
|
|
527
|
-
collector.error(( localize(
|
|
527
|
+
collector.error(( localize(13669, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
528
528
|
return false;
|
|
529
529
|
}
|
|
530
530
|
if (item.when && typeof item.when !== 'string') {
|
|
531
|
-
collector.error(( localize(
|
|
531
|
+
collector.error(( localize(13669, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
532
532
|
return false;
|
|
533
533
|
}
|
|
534
534
|
if (item.group && typeof item.group !== 'string') {
|
|
535
535
|
collector.error(( localize(
|
|
536
|
-
|
|
536
|
+
13669,
|
|
537
537
|
"property `{0}` can be omitted or must be of type `string`",
|
|
538
538
|
'group'
|
|
539
539
|
)));
|
|
@@ -545,19 +545,19 @@ var schema;
|
|
|
545
545
|
function isValidSubmenuItem(item, collector) {
|
|
546
546
|
if (typeof item.submenu !== 'string') {
|
|
547
547
|
collector.error(( localize(
|
|
548
|
-
|
|
548
|
+
13668,
|
|
549
549
|
"property `{0}` is mandatory and must be of type `string`",
|
|
550
550
|
'submenu'
|
|
551
551
|
)));
|
|
552
552
|
return false;
|
|
553
553
|
}
|
|
554
554
|
if (item.when && typeof item.when !== 'string') {
|
|
555
|
-
collector.error(( localize(
|
|
555
|
+
collector.error(( localize(13669, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
556
556
|
return false;
|
|
557
557
|
}
|
|
558
558
|
if (item.group && typeof item.group !== 'string') {
|
|
559
559
|
collector.error(( localize(
|
|
560
|
-
|
|
560
|
+
13669,
|
|
561
561
|
"property `{0}` can be omitted or must be of type `string`",
|
|
562
562
|
'group'
|
|
563
563
|
)));
|
|
@@ -568,7 +568,7 @@ var schema;
|
|
|
568
568
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
569
569
|
function isValidItems(items, collector) {
|
|
570
570
|
if (!Array.isArray(items)) {
|
|
571
|
-
collector.error(( localize(
|
|
571
|
+
collector.error(( localize(13670, "submenu items must be an array")));
|
|
572
572
|
return false;
|
|
573
573
|
}
|
|
574
574
|
for (const item of items) {
|
|
@@ -588,15 +588,15 @@ var schema;
|
|
|
588
588
|
schema.isValidItems = isValidItems;
|
|
589
589
|
function isValidSubmenu(submenu, collector) {
|
|
590
590
|
if (typeof submenu !== 'object') {
|
|
591
|
-
collector.error(( localize(
|
|
591
|
+
collector.error(( localize(13671, "submenu items must be an object")));
|
|
592
592
|
return false;
|
|
593
593
|
}
|
|
594
594
|
if (typeof submenu.id !== 'string') {
|
|
595
|
-
collector.error(( localize(
|
|
595
|
+
collector.error(( localize(13668, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
596
596
|
return false;
|
|
597
597
|
}
|
|
598
598
|
if (typeof submenu.label !== 'string') {
|
|
599
|
-
collector.error(( localize(
|
|
599
|
+
collector.error(( localize(13668, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
600
600
|
return false;
|
|
601
601
|
}
|
|
602
602
|
return true;
|
|
@@ -608,24 +608,24 @@ var schema;
|
|
|
608
608
|
properties: {
|
|
609
609
|
command: {
|
|
610
610
|
description: ( localize(
|
|
611
|
-
|
|
611
|
+
13672,
|
|
612
612
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
613
613
|
)),
|
|
614
614
|
type: 'string'
|
|
615
615
|
},
|
|
616
616
|
alt: {
|
|
617
617
|
description: ( localize(
|
|
618
|
-
|
|
618
|
+
13673,
|
|
619
619
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
620
620
|
)),
|
|
621
621
|
type: 'string'
|
|
622
622
|
},
|
|
623
623
|
when: {
|
|
624
|
-
description: ( localize(
|
|
624
|
+
description: ( localize(13674, 'Condition which must be true to show this item')),
|
|
625
625
|
type: 'string'
|
|
626
626
|
},
|
|
627
627
|
group: {
|
|
628
|
-
description: ( localize(
|
|
628
|
+
description: ( localize(13675, 'Group into which this item belongs')),
|
|
629
629
|
type: 'string'
|
|
630
630
|
}
|
|
631
631
|
}
|
|
@@ -635,15 +635,15 @@ var schema;
|
|
|
635
635
|
required: ['submenu'],
|
|
636
636
|
properties: {
|
|
637
637
|
submenu: {
|
|
638
|
-
description: ( localize(
|
|
638
|
+
description: ( localize(13676, 'Identifier of the submenu to display in this item.')),
|
|
639
639
|
type: 'string'
|
|
640
640
|
},
|
|
641
641
|
when: {
|
|
642
|
-
description: ( localize(
|
|
642
|
+
description: ( localize(13674, 'Condition which must be true to show this item')),
|
|
643
643
|
type: 'string'
|
|
644
644
|
},
|
|
645
645
|
group: {
|
|
646
|
-
description: ( localize(
|
|
646
|
+
description: ( localize(13675, 'Group into which this item belongs')),
|
|
647
647
|
type: 'string'
|
|
648
648
|
}
|
|
649
649
|
}
|
|
@@ -653,16 +653,16 @@ var schema;
|
|
|
653
653
|
required: ['id', 'label'],
|
|
654
654
|
properties: {
|
|
655
655
|
id: {
|
|
656
|
-
description: ( localize(
|
|
656
|
+
description: ( localize(13677, 'Identifier of the menu to display as a submenu.')),
|
|
657
657
|
type: 'string'
|
|
658
658
|
},
|
|
659
659
|
label: {
|
|
660
|
-
description: ( localize(
|
|
660
|
+
description: ( localize(13678, 'The label of the menu item which leads to this submenu.')),
|
|
661
661
|
type: 'string'
|
|
662
662
|
},
|
|
663
663
|
icon: {
|
|
664
664
|
description: ( localize(
|
|
665
|
-
|
|
665
|
+
13679,
|
|
666
666
|
'(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)"'
|
|
667
667
|
)),
|
|
668
668
|
anyOf: [{
|
|
@@ -672,11 +672,11 @@ var schema;
|
|
|
672
672
|
type: 'object',
|
|
673
673
|
properties: {
|
|
674
674
|
light: {
|
|
675
|
-
description: ( localize(
|
|
675
|
+
description: ( localize(13680, 'Icon path when a light theme is used')),
|
|
676
676
|
type: 'string'
|
|
677
677
|
},
|
|
678
678
|
dark: {
|
|
679
|
-
description: ( localize(
|
|
679
|
+
description: ( localize(13681, 'Icon path when a dark theme is used')),
|
|
680
680
|
type: 'string'
|
|
681
681
|
}
|
|
682
682
|
}
|
|
@@ -685,11 +685,11 @@ var schema;
|
|
|
685
685
|
}
|
|
686
686
|
};
|
|
687
687
|
schema.menusContribution = {
|
|
688
|
-
description: ( localize(
|
|
688
|
+
description: ( localize(13682, "Contributes menu items to the editor")),
|
|
689
689
|
type: 'object',
|
|
690
690
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
691
691
|
markdownDescription: menu.proposed ? ( localize(
|
|
692
|
-
|
|
692
|
+
13683,
|
|
693
693
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
694
694
|
menu.proposed,
|
|
695
695
|
menu.description
|
|
@@ -704,18 +704,18 @@ var schema;
|
|
|
704
704
|
}
|
|
705
705
|
};
|
|
706
706
|
schema.submenusContribution = {
|
|
707
|
-
description: ( localize(
|
|
707
|
+
description: ( localize(13684, "Contributes submenu items to the editor")),
|
|
708
708
|
type: 'array',
|
|
709
709
|
items: submenu
|
|
710
710
|
};
|
|
711
711
|
function isValidCommand(command, collector) {
|
|
712
712
|
if (!command) {
|
|
713
|
-
collector.error(( localize(
|
|
713
|
+
collector.error(( localize(13685, "expected non-empty value.")));
|
|
714
714
|
return false;
|
|
715
715
|
}
|
|
716
716
|
if (isFalsyOrWhitespace(command.command)) {
|
|
717
717
|
collector.error(( localize(
|
|
718
|
-
|
|
718
|
+
13668,
|
|
719
719
|
"property `{0}` is mandatory and must be of type `string`",
|
|
720
720
|
'command'
|
|
721
721
|
)));
|
|
@@ -729,7 +729,7 @@ var schema;
|
|
|
729
729
|
}
|
|
730
730
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
731
731
|
collector.error(( localize(
|
|
732
|
-
|
|
732
|
+
13669,
|
|
733
733
|
"property `{0}` can be omitted or must be of type `string`",
|
|
734
734
|
'precondition'
|
|
735
735
|
)));
|
|
@@ -755,7 +755,7 @@ var schema;
|
|
|
755
755
|
return true;
|
|
756
756
|
}
|
|
757
757
|
collector.error(( localize(
|
|
758
|
-
|
|
758
|
+
13686,
|
|
759
759
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
760
760
|
)));
|
|
761
761
|
return false;
|
|
@@ -763,7 +763,7 @@ var schema;
|
|
|
763
763
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
764
764
|
if (typeof localized === 'undefined') {
|
|
765
765
|
collector.error(( localize(
|
|
766
|
-
|
|
766
|
+
13687,
|
|
767
767
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
768
768
|
propertyName
|
|
769
769
|
)));
|
|
@@ -771,7 +771,7 @@ var schema;
|
|
|
771
771
|
}
|
|
772
772
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
773
773
|
collector.error(( localize(
|
|
774
|
-
|
|
774
|
+
13668,
|
|
775
775
|
"property `{0}` is mandatory and must be of type `string`",
|
|
776
776
|
propertyName
|
|
777
777
|
)));
|
|
@@ -779,7 +779,7 @@ var schema;
|
|
|
779
779
|
}
|
|
780
780
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
781
781
|
collector.error(( localize(
|
|
782
|
-
|
|
782
|
+
13688,
|
|
783
783
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
784
784
|
`${propertyName}.value`,
|
|
785
785
|
`${propertyName}.original`
|
|
@@ -793,37 +793,37 @@ var schema;
|
|
|
793
793
|
required: ['command', 'title'],
|
|
794
794
|
properties: {
|
|
795
795
|
command: {
|
|
796
|
-
description: ( localize(
|
|
796
|
+
description: ( localize(13689, 'Identifier of the command to execute')),
|
|
797
797
|
type: 'string'
|
|
798
798
|
},
|
|
799
799
|
title: {
|
|
800
|
-
description: ( localize(
|
|
800
|
+
description: ( localize(13690, 'Title by which the command is represented in the UI')),
|
|
801
801
|
type: 'string'
|
|
802
802
|
},
|
|
803
803
|
shortTitle: {
|
|
804
804
|
markdownDescription: ( localize(
|
|
805
|
-
|
|
805
|
+
13691,
|
|
806
806
|
'(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.'
|
|
807
807
|
)),
|
|
808
808
|
type: 'string'
|
|
809
809
|
},
|
|
810
810
|
category: {
|
|
811
811
|
description: ( localize(
|
|
812
|
-
|
|
812
|
+
13692,
|
|
813
813
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
814
814
|
)),
|
|
815
815
|
type: 'string'
|
|
816
816
|
},
|
|
817
817
|
enablement: {
|
|
818
818
|
description: ( localize(
|
|
819
|
-
|
|
819
|
+
13693,
|
|
820
820
|
'(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.'
|
|
821
821
|
)),
|
|
822
822
|
type: 'string'
|
|
823
823
|
},
|
|
824
824
|
icon: {
|
|
825
825
|
description: ( localize(
|
|
826
|
-
|
|
826
|
+
13694,
|
|
827
827
|
'(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)"'
|
|
828
828
|
)),
|
|
829
829
|
anyOf: [{
|
|
@@ -833,11 +833,11 @@ var schema;
|
|
|
833
833
|
type: 'object',
|
|
834
834
|
properties: {
|
|
835
835
|
light: {
|
|
836
|
-
description: ( localize(
|
|
836
|
+
description: ( localize(13695, 'Icon path when a light theme is used')),
|
|
837
837
|
type: 'string'
|
|
838
838
|
},
|
|
839
839
|
dark: {
|
|
840
|
-
description: ( localize(
|
|
840
|
+
description: ( localize(13696, 'Icon path when a dark theme is used')),
|
|
841
841
|
type: 'string'
|
|
842
842
|
}
|
|
843
843
|
}
|
|
@@ -846,7 +846,7 @@ var schema;
|
|
|
846
846
|
}
|
|
847
847
|
};
|
|
848
848
|
schema.commandsContribution = {
|
|
849
|
-
description: ( localize(
|
|
849
|
+
description: ( localize(13697, "Contributes commands to the command palette.")),
|
|
850
850
|
oneOf: [
|
|
851
851
|
commandType,
|
|
852
852
|
{
|
|
@@ -890,7 +890,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
890
890
|
if (existingCmd) {
|
|
891
891
|
if (existingCmd.source) {
|
|
892
892
|
extension.collector.info(( localize(
|
|
893
|
-
|
|
893
|
+
13698,
|
|
894
894
|
"Command `{0}` already registered by {1} ({2})",
|
|
895
895
|
userFriendlyCommand.command,
|
|
896
896
|
existingCmd.source.title,
|
|
@@ -898,7 +898,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
898
898
|
)));
|
|
899
899
|
}
|
|
900
900
|
else {
|
|
901
|
-
extension.collector.info(( localize(
|
|
901
|
+
extension.collector.info(( localize(13699, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
904
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -939,19 +939,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
939
939
|
continue;
|
|
940
940
|
}
|
|
941
941
|
if (!submenuInfo.id) {
|
|
942
|
-
collector.warn(( localize(
|
|
942
|
+
collector.warn(( localize(13700, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
943
943
|
continue;
|
|
944
944
|
}
|
|
945
945
|
if (( _submenus.has(submenuInfo.id))) {
|
|
946
946
|
collector.info(( localize(
|
|
947
|
-
|
|
947
|
+
13701,
|
|
948
948
|
"The `{0}` submenu was already previously registered.",
|
|
949
949
|
submenuInfo.id
|
|
950
950
|
)));
|
|
951
951
|
continue;
|
|
952
952
|
}
|
|
953
953
|
if (!submenuInfo.label) {
|
|
954
|
-
collector.warn(( localize(
|
|
954
|
+
collector.warn(( localize(13702, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
955
955
|
continue;
|
|
956
956
|
}
|
|
957
957
|
let absoluteIcon;
|
|
@@ -1008,7 +1008,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
1010
1010
|
collector.error(( localize(
|
|
1011
|
-
|
|
1011
|
+
13703,
|
|
1012
1012
|
"{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}",
|
|
1013
1013
|
entry[0],
|
|
1014
1014
|
menu.proposed,
|
|
@@ -1023,7 +1023,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1023
1023
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
1024
1024
|
if (!command) {
|
|
1025
1025
|
collector.error(( localize(
|
|
1026
|
-
|
|
1026
|
+
13704,
|
|
1027
1027
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
1028
1028
|
menuItem.command
|
|
1029
1029
|
)));
|
|
@@ -1031,20 +1031,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
if (menuItem.alt && !alt) {
|
|
1033
1033
|
collector.warn(( localize(
|
|
1034
|
-
|
|
1034
|
+
13705,
|
|
1035
1035
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
1036
1036
|
menuItem.alt
|
|
1037
1037
|
)));
|
|
1038
1038
|
}
|
|
1039
1039
|
if (menuItem.command === menuItem.alt) {
|
|
1040
|
-
collector.info(( localize(
|
|
1040
|
+
collector.info(( localize(13706, "Menu item references the same command as default and alt-command")));
|
|
1041
1041
|
}
|
|
1042
1042
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
1043
1043
|
}
|
|
1044
1044
|
else {
|
|
1045
1045
|
if (menu.supportsSubmenus === false) {
|
|
1046
1046
|
collector.error(( localize(
|
|
1047
|
-
|
|
1047
|
+
13707,
|
|
1048
1048
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1049
1049
|
)));
|
|
1050
1050
|
continue;
|
|
@@ -1052,7 +1052,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1052
1052
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1053
1053
|
if (!submenu) {
|
|
1054
1054
|
collector.error(( localize(
|
|
1055
|
-
|
|
1055
|
+
13708,
|
|
1056
1056
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1057
1057
|
menuItem.submenu
|
|
1058
1058
|
)));
|
|
@@ -1065,7 +1065,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1067
1067
|
collector.warn(( localize(
|
|
1068
|
-
|
|
1068
|
+
13709,
|
|
1069
1069
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1070
1070
|
menuItem.submenu,
|
|
1071
1071
|
entry[0]
|
|
@@ -1087,7 +1087,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1089
1089
|
collector.error(( localize(
|
|
1090
|
-
|
|
1090
|
+
13710,
|
|
1091
1091
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1092
1092
|
'`viewContainer/title`',
|
|
1093
1093
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1174,10 +1174,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1174
1174
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1175
1175
|
}
|
|
1176
1176
|
const headers = [
|
|
1177
|
-
( localize(
|
|
1178
|
-
( localize(
|
|
1179
|
-
( localize(
|
|
1180
|
-
( localize(
|
|
1177
|
+
( localize(13711, "ID")),
|
|
1178
|
+
( localize(13712, "Title")),
|
|
1179
|
+
( localize(13713, "Keyboard Shortcuts")),
|
|
1180
|
+
( localize(13714, "Menu Contexts"))
|
|
1181
1181
|
];
|
|
1182
1182
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1183
1183
|
.map(command => {
|
|
@@ -1217,7 +1217,7 @@ CommandsTableRenderer = ( __decorate([
|
|
|
1217
1217
|
], CommandsTableRenderer));
|
|
1218
1218
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1219
1219
|
id: 'commands',
|
|
1220
|
-
label: ( localize(
|
|
1220
|
+
label: ( localize(13715, "Commands")),
|
|
1221
1221
|
access: {
|
|
1222
1222
|
canToggle: false,
|
|
1223
1223
|
},
|
|
@@ -50,39 +50,39 @@ import { getAllUnboundCommands } from '@codingame/monaco-vscode-api/vscode/vs/wo
|
|
|
50
50
|
var WorkbenchKeybindingService_1;
|
|
51
51
|
function isValidContributedKeyBinding(keyBinding, rejects) {
|
|
52
52
|
if (!keyBinding) {
|
|
53
|
-
rejects.push(( localize(
|
|
53
|
+
rejects.push(( localize(14116, "expected non-empty value.")));
|
|
54
54
|
return false;
|
|
55
55
|
}
|
|
56
56
|
if (typeof keyBinding.command !== 'string') {
|
|
57
57
|
rejects.push(( localize(
|
|
58
|
-
|
|
58
|
+
14117,
|
|
59
59
|
"property `{0}` is mandatory and must be of type `string`",
|
|
60
60
|
'command'
|
|
61
61
|
)));
|
|
62
62
|
return false;
|
|
63
63
|
}
|
|
64
64
|
if (keyBinding.key && typeof keyBinding.key !== 'string') {
|
|
65
|
-
rejects.push(( localize(
|
|
65
|
+
rejects.push(( localize(14118, "property `{0}` can be omitted or must be of type `string`", 'key')));
|
|
66
66
|
return false;
|
|
67
67
|
}
|
|
68
68
|
if (keyBinding.when && typeof keyBinding.when !== 'string') {
|
|
69
|
-
rejects.push(( localize(
|
|
69
|
+
rejects.push(( localize(14118, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
70
70
|
return false;
|
|
71
71
|
}
|
|
72
72
|
if (keyBinding.mac && typeof keyBinding.mac !== 'string') {
|
|
73
|
-
rejects.push(( localize(
|
|
73
|
+
rejects.push(( localize(14118, "property `{0}` can be omitted or must be of type `string`", 'mac')));
|
|
74
74
|
return false;
|
|
75
75
|
}
|
|
76
76
|
if (keyBinding.linux && typeof keyBinding.linux !== 'string') {
|
|
77
77
|
rejects.push(( localize(
|
|
78
|
-
|
|
78
|
+
14118,
|
|
79
79
|
"property `{0}` can be omitted or must be of type `string`",
|
|
80
80
|
'linux'
|
|
81
81
|
)));
|
|
82
82
|
return false;
|
|
83
83
|
}
|
|
84
84
|
if (keyBinding.win && typeof keyBinding.win !== 'string') {
|
|
85
|
-
rejects.push(( localize(
|
|
85
|
+
rejects.push(( localize(14118, "property `{0}` can be omitted or must be of type `string`", 'win')));
|
|
86
86
|
return false;
|
|
87
87
|
}
|
|
88
88
|
return true;
|
|
@@ -93,33 +93,33 @@ const keybindingType = {
|
|
|
93
93
|
required: ['command', 'key'],
|
|
94
94
|
properties: {
|
|
95
95
|
command: {
|
|
96
|
-
description: ( localize(
|
|
96
|
+
description: ( localize(14119, 'Identifier of the command to run when keybinding is triggered.')),
|
|
97
97
|
type: 'string'
|
|
98
98
|
},
|
|
99
99
|
args: {
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(14120, "Arguments to pass to the command to execute."))
|
|
101
101
|
},
|
|
102
102
|
key: {
|
|
103
103
|
description: ( localize(
|
|
104
|
-
|
|
104
|
+
14121,
|
|
105
105
|
'Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).'
|
|
106
106
|
)),
|
|
107
107
|
type: 'string'
|
|
108
108
|
},
|
|
109
109
|
mac: {
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(14122, 'Mac specific key or key sequence.')),
|
|
111
111
|
type: 'string'
|
|
112
112
|
},
|
|
113
113
|
linux: {
|
|
114
|
-
description: ( localize(
|
|
114
|
+
description: ( localize(14123, 'Linux specific key or key sequence.')),
|
|
115
115
|
type: 'string'
|
|
116
116
|
},
|
|
117
117
|
win: {
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(14124, 'Windows specific key or key sequence.')),
|
|
119
119
|
type: 'string'
|
|
120
120
|
},
|
|
121
121
|
when: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(14125, 'Condition when the key is active.')),
|
|
123
123
|
type: 'string'
|
|
124
124
|
},
|
|
125
125
|
}
|
|
@@ -128,7 +128,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
128
128
|
extensionPoint: 'keybindings',
|
|
129
129
|
deps: [commandsExtensionPoint],
|
|
130
130
|
jsonSchema: {
|
|
131
|
-
description: ( localize(
|
|
131
|
+
description: ( localize(14126, "Contributes keybindings.")),
|
|
132
132
|
oneOf: [
|
|
133
133
|
keybindingType,
|
|
134
134
|
{
|
|
@@ -519,7 +519,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
519
519
|
}
|
|
520
520
|
if (rejects.length > 0) {
|
|
521
521
|
collector.error(( localize(
|
|
522
|
-
|
|
522
|
+
14127,
|
|
523
523
|
"Invalid `contributes.{0}`: {1}",
|
|
524
524
|
keybindingsExtPoint.name,
|
|
525
525
|
rejects.join('\n')
|
|
@@ -607,7 +607,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
607
607
|
static _getAllCommandsAsComment(boundCommands) {
|
|
608
608
|
const unboundCommands = getAllUnboundCommands(boundCommands);
|
|
609
609
|
const pretty = unboundCommands.sort().join('\n// - ');
|
|
610
|
-
return '// ' + ( localize(
|
|
610
|
+
return '// ' + ( localize(14128, "Here are other available commands: ")) + '\n// - ' + pretty;
|
|
611
611
|
}
|
|
612
612
|
mightProducePrintableCharacter(event) {
|
|
613
613
|
if (event.ctrlKey || event.metaKey || event.altKey) {
|
|
@@ -732,7 +732,7 @@ class KeybindingsJsonSchema {
|
|
|
732
732
|
this.schema = {
|
|
733
733
|
id: KeybindingsJsonSchema.schemaId,
|
|
734
734
|
type: 'array',
|
|
735
|
-
title: ( localize(
|
|
735
|
+
title: ( localize(14129, "Keybindings configuration")),
|
|
736
736
|
allowTrailingCommas: true,
|
|
737
737
|
allowComments: true,
|
|
738
738
|
definitions: {
|
|
@@ -756,7 +756,7 @@ class KeybindingsJsonSchema {
|
|
|
756
756
|
'type': 'string',
|
|
757
757
|
'enum': this.commandsEnum,
|
|
758
758
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
759
|
-
'description': ( localize(
|
|
759
|
+
'description': ( localize(14130, "Name of the command to execute")),
|
|
760
760
|
},
|
|
761
761
|
'commandType': {
|
|
762
762
|
'anyOf': [
|
|
@@ -767,7 +767,7 @@ class KeybindingsJsonSchema {
|
|
|
767
767
|
'type': 'string',
|
|
768
768
|
'enum': this.removalCommandsEnum,
|
|
769
769
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
770
|
-
'description': ( localize(
|
|
770
|
+
'description': ( localize(14131, "Name of the command to remove keyboard shortcut for")),
|
|
771
771
|
},
|
|
772
772
|
{
|
|
773
773
|
'type': 'string'
|
|
@@ -785,7 +785,7 @@ class KeybindingsJsonSchema {
|
|
|
785
785
|
'properties': {
|
|
786
786
|
'key': {
|
|
787
787
|
'type': 'string',
|
|
788
|
-
'description': ( localize(
|
|
788
|
+
'description': ( localize(14132, "Key or key sequence (separated by space)")),
|
|
789
789
|
},
|
|
790
790
|
'command': {
|
|
791
791
|
'anyOf': [
|
|
@@ -798,7 +798,7 @@ class KeybindingsJsonSchema {
|
|
|
798
798
|
'type': 'array'
|
|
799
799
|
},
|
|
800
800
|
'errorMessage': ( localize(
|
|
801
|
-
|
|
801
|
+
14133,
|
|
802
802
|
"Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
|
|
803
803
|
'string'
|
|
804
804
|
))
|
|
@@ -814,10 +814,10 @@ class KeybindingsJsonSchema {
|
|
|
814
814
|
},
|
|
815
815
|
'when': {
|
|
816
816
|
'type': 'string',
|
|
817
|
-
'description': ( localize(
|
|
817
|
+
'description': ( localize(14134, "Condition when the key is active."))
|
|
818
818
|
},
|
|
819
819
|
'args': {
|
|
820
|
-
'description': ( localize(
|
|
820
|
+
'description': ( localize(14135, "Arguments to pass to the command to execute."))
|
|
821
821
|
}
|
|
822
822
|
},
|
|
823
823
|
'$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(14136, "Keyboard")),
|
|
487
487
|
'properties': {
|
|
488
488
|
'keyboard.layout': {
|
|
489
489
|
'type': 'string',
|
|
490
490
|
'default': 'autodetect',
|
|
491
|
-
'description': ( localize(
|
|
491
|
+
'description': ( localize(14137, "Control the keyboard layout used in web."))
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
};
|