@codingame/monaco-vscode-keybindings-service-override 26.0.0 → 26.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +3 -3
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +143 -143
- 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": "26.
|
|
3
|
+
"version": "26.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": "26.
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "26.
|
|
18
|
+
"@codingame/monaco-vscode-api": "26.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "26.1.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js
CHANGED
|
@@ -24,7 +24,7 @@ import { DEFINE_KEYBINDING_EDITOR_CONTRIB_ID } from '@codingame/monaco-vscode-ap
|
|
|
24
24
|
|
|
25
25
|
var KeybindingEditorDecorationsRenderer_1;
|
|
26
26
|
const NLS_KB_LAYOUT_ERROR_MESSAGE = ( localize(
|
|
27
|
-
|
|
27
|
+
10190,
|
|
28
28
|
"You won't be able to produce this key combination under your current keyboard layout."
|
|
29
29
|
));
|
|
30
30
|
let DefineKeybindingEditorContribution = class DefineKeybindingEditorContribution extends Disposable {
|
|
@@ -184,13 +184,13 @@ let KeybindingEditorDecorationsRenderer = KeybindingEditorDecorationsRenderer_1
|
|
|
184
184
|
} else {
|
|
185
185
|
if (usLabel && uiLabel !== usLabel) {
|
|
186
186
|
msg = ( new MarkdownString(( localize(
|
|
187
|
-
|
|
187
|
+
10191,
|
|
188
188
|
"**{0}** for your current keyboard layout (**{1}** for US standard).",
|
|
189
189
|
uiLabel,
|
|
190
190
|
usLabel
|
|
191
191
|
))));
|
|
192
192
|
} else {
|
|
193
|
-
msg = ( new MarkdownString(( localize(
|
|
193
|
+
msg = ( new MarkdownString(( localize(10192, "**{0}** for your current keyboard layout.", uiLabel))));
|
|
194
194
|
}
|
|
195
195
|
className = "keybindingInfo";
|
|
196
196
|
overviewRulerColor = themeColorFromId(overviewRulerInfo);
|
|
@@ -20,190 +20,190 @@ import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
20
20
|
const apiMenus = [{
|
|
21
21
|
key: "commandPalette",
|
|
22
22
|
id: MenuId.CommandPalette,
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(13967, "The Command Palette")),
|
|
24
24
|
supportsSubmenus: false
|
|
25
25
|
}, {
|
|
26
26
|
key: "touchBar",
|
|
27
27
|
id: MenuId.TouchBarContext,
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(13968, "The touch bar (macOS only)")),
|
|
29
29
|
supportsSubmenus: false
|
|
30
30
|
}, {
|
|
31
31
|
key: "editor/title",
|
|
32
32
|
id: MenuId.EditorTitle,
|
|
33
|
-
description: ( localize(
|
|
33
|
+
description: ( localize(13969, "The editor title menu"))
|
|
34
34
|
}, {
|
|
35
35
|
key: "editor/title/run",
|
|
36
36
|
id: MenuId.EditorTitleRun,
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(13970, "Run submenu inside the editor title menu"))
|
|
38
38
|
}, {
|
|
39
39
|
key: "editor/context",
|
|
40
40
|
id: MenuId.EditorContext,
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(13971, "The editor context menu"))
|
|
42
42
|
}, {
|
|
43
43
|
key: "editor/context/copy",
|
|
44
44
|
id: MenuId.EditorContextCopy,
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(13972, "'Copy as' submenu in the editor context menu"))
|
|
46
46
|
}, {
|
|
47
47
|
key: "editor/context/share",
|
|
48
48
|
id: MenuId.EditorContextShare,
|
|
49
|
-
description: ( localize(
|
|
49
|
+
description: ( localize(13973, "'Share' submenu in the editor context menu")),
|
|
50
50
|
proposed: "contribShareMenu"
|
|
51
51
|
}, {
|
|
52
52
|
key: "explorer/context",
|
|
53
53
|
id: MenuId.ExplorerContext,
|
|
54
|
-
description: ( localize(
|
|
54
|
+
description: ( localize(13974, "The file explorer context menu"))
|
|
55
55
|
}, {
|
|
56
56
|
key: "explorer/context/share",
|
|
57
57
|
id: MenuId.ExplorerContextShare,
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(13975, "'Share' submenu in the file explorer context menu")),
|
|
59
59
|
proposed: "contribShareMenu"
|
|
60
60
|
}, {
|
|
61
61
|
key: "editor/title/context",
|
|
62
62
|
id: MenuId.EditorTitleContext,
|
|
63
|
-
description: ( localize(
|
|
63
|
+
description: ( localize(13976, "The editor tabs context menu"))
|
|
64
64
|
}, {
|
|
65
65
|
key: "editor/title/context/share",
|
|
66
66
|
id: MenuId.EditorTitleContextShare,
|
|
67
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(13977, "'Share' submenu inside the editor title context menu")),
|
|
68
68
|
proposed: "contribShareMenu"
|
|
69
69
|
}, {
|
|
70
70
|
key: "debug/callstack/context",
|
|
71
71
|
id: MenuId.DebugCallStackContext,
|
|
72
|
-
description: ( localize(
|
|
72
|
+
description: ( localize(13978, "The debug callstack view context menu"))
|
|
73
73
|
}, {
|
|
74
74
|
key: "debug/variables/context",
|
|
75
75
|
id: MenuId.DebugVariablesContext,
|
|
76
|
-
description: ( localize(
|
|
76
|
+
description: ( localize(13979, "The debug variables view context menu"))
|
|
77
77
|
}, {
|
|
78
78
|
key: "debug/watch/context",
|
|
79
79
|
id: MenuId.DebugWatchContext,
|
|
80
|
-
description: ( localize(
|
|
80
|
+
description: ( localize(13980, "The debug watch view context menu"))
|
|
81
81
|
}, {
|
|
82
82
|
key: "debug/toolBar",
|
|
83
83
|
id: MenuId.DebugToolBar,
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(13981, "The debug toolbar menu"))
|
|
85
85
|
}, {
|
|
86
86
|
key: "debug/createConfiguration",
|
|
87
87
|
id: MenuId.DebugCreateConfiguration,
|
|
88
88
|
proposed: "contribDebugCreateConfiguration",
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(13982, "The debug create configuration menu"))
|
|
90
90
|
}, {
|
|
91
91
|
key: "notebook/variables/context",
|
|
92
92
|
id: MenuId.NotebookVariablesContext,
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(13983, "The notebook variables view context menu"))
|
|
94
94
|
}, {
|
|
95
95
|
key: "menuBar/home",
|
|
96
96
|
id: MenuId.MenubarHomeMenu,
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(13984, "The home indicator context menu (web only)")),
|
|
98
98
|
proposed: "contribMenuBarHome",
|
|
99
99
|
supportsSubmenus: false
|
|
100
100
|
}, {
|
|
101
101
|
key: "menuBar/edit/copy",
|
|
102
102
|
id: MenuId.MenubarCopy,
|
|
103
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(13985, "'Copy as' submenu in the top level Edit menu"))
|
|
104
104
|
}, {
|
|
105
105
|
key: "scm/title",
|
|
106
106
|
id: MenuId.SCMTitle,
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(13986, "The Source Control title menu"))
|
|
108
108
|
}, {
|
|
109
109
|
key: "scm/sourceControl",
|
|
110
110
|
id: MenuId.SCMSourceControl,
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(13987, "The Source Control menu"))
|
|
112
112
|
}, {
|
|
113
113
|
key: "scm/repositories/title",
|
|
114
114
|
id: MenuId.SCMSourceControlTitle,
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(13988, "The Source Control Repositories title menu")),
|
|
116
116
|
proposed: "contribSourceControlTitleMenu"
|
|
117
117
|
}, {
|
|
118
118
|
key: "scm/repository",
|
|
119
119
|
id: MenuId.SCMSourceControlInline,
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(13989, "The Source Control repository menu"))
|
|
121
121
|
}, {
|
|
122
122
|
key: "scm/resourceState/context",
|
|
123
123
|
id: MenuId.SCMResourceContext,
|
|
124
|
-
description: ( localize(
|
|
124
|
+
description: ( localize(13990, "The Source Control resource state context menu"))
|
|
125
125
|
}, {
|
|
126
126
|
key: "scm/resourceFolder/context",
|
|
127
127
|
id: MenuId.SCMResourceFolderContext,
|
|
128
|
-
description: ( localize(
|
|
128
|
+
description: ( localize(13991, "The Source Control resource folder context menu"))
|
|
129
129
|
}, {
|
|
130
130
|
key: "scm/resourceGroup/context",
|
|
131
131
|
id: MenuId.SCMResourceGroupContext,
|
|
132
|
-
description: ( localize(
|
|
132
|
+
description: ( localize(13992, "The Source Control resource group context menu"))
|
|
133
133
|
}, {
|
|
134
134
|
key: "scm/change/title",
|
|
135
135
|
id: MenuId.SCMChangeContext,
|
|
136
|
-
description: ( localize(
|
|
136
|
+
description: ( localize(13993, "The Source Control inline change menu"))
|
|
137
137
|
}, {
|
|
138
138
|
key: "scm/inputBox",
|
|
139
139
|
id: MenuId.SCMInputBox,
|
|
140
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(13994, "The Source Control input box menu")),
|
|
141
141
|
proposed: "contribSourceControlInputBoxMenu"
|
|
142
142
|
}, {
|
|
143
143
|
key: "scm/history/title",
|
|
144
144
|
id: MenuId.SCMHistoryTitle,
|
|
145
|
-
description: ( localize(
|
|
145
|
+
description: ( localize(13995, "The Source Control History title menu")),
|
|
146
146
|
proposed: "contribSourceControlHistoryTitleMenu"
|
|
147
147
|
}, {
|
|
148
148
|
key: "scm/historyItem/context",
|
|
149
149
|
id: MenuId.SCMHistoryItemContext,
|
|
150
|
-
description: ( localize(
|
|
150
|
+
description: ( localize(13996, "The Source Control history item context menu")),
|
|
151
151
|
proposed: "contribSourceControlHistoryItemMenu"
|
|
152
152
|
}, {
|
|
153
153
|
key: "scm/historyItemRef/context",
|
|
154
154
|
id: MenuId.SCMHistoryItemRefContext,
|
|
155
|
-
description: ( localize(
|
|
155
|
+
description: ( localize(13997, "The Source Control history item reference context menu")),
|
|
156
156
|
proposed: "contribSourceControlHistoryItemMenu"
|
|
157
157
|
}, {
|
|
158
158
|
key: "scm/artifactGroup/context",
|
|
159
159
|
id: MenuId.SCMArtifactGroupContext,
|
|
160
|
-
description: ( localize(
|
|
160
|
+
description: ( localize(13998, "The Source Control artifact group context menu")),
|
|
161
161
|
proposed: "contribSourceControlArtifactGroupMenu"
|
|
162
162
|
}, {
|
|
163
163
|
key: "scm/artifact/context",
|
|
164
164
|
id: MenuId.SCMArtifactContext,
|
|
165
|
-
description: ( localize(
|
|
165
|
+
description: ( localize(13999, "The Source Control artifact context menu")),
|
|
166
166
|
proposed: "contribSourceControlArtifactMenu"
|
|
167
167
|
}, {
|
|
168
168
|
key: "statusBar/remoteIndicator",
|
|
169
169
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
170
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(14000, "The remote indicator menu in the status bar")),
|
|
171
171
|
supportsSubmenus: false
|
|
172
172
|
}, {
|
|
173
173
|
key: "terminal/context",
|
|
174
174
|
id: MenuId.TerminalInstanceContext,
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(14001, "The terminal context menu"))
|
|
176
176
|
}, {
|
|
177
177
|
key: "terminal/title/context",
|
|
178
178
|
id: MenuId.TerminalTabContext,
|
|
179
|
-
description: ( localize(
|
|
179
|
+
description: ( localize(14002, "The terminal tabs context menu"))
|
|
180
180
|
}, {
|
|
181
181
|
key: "view/title",
|
|
182
182
|
id: MenuId.ViewTitle,
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(14003, "The contributed view title menu"))
|
|
184
184
|
}, {
|
|
185
185
|
key: "viewContainer/title",
|
|
186
186
|
id: MenuId.ViewContainerTitle,
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(14004, "The contributed view container title menu")),
|
|
188
188
|
proposed: "contribViewContainerTitle"
|
|
189
189
|
}, {
|
|
190
190
|
key: "view/item/context",
|
|
191
191
|
id: MenuId.ViewItemContext,
|
|
192
|
-
description: ( localize(
|
|
192
|
+
description: ( localize(14005, "The contributed view item context menu"))
|
|
193
193
|
}, {
|
|
194
194
|
key: "comments/comment/editorActions",
|
|
195
195
|
id: MenuId.CommentEditorActions,
|
|
196
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(14006, "The contributed comment editor actions")),
|
|
197
197
|
proposed: "contribCommentEditorActionsMenu"
|
|
198
198
|
}, {
|
|
199
199
|
key: "comments/commentThread/title",
|
|
200
200
|
id: MenuId.CommentThreadTitle,
|
|
201
|
-
description: ( localize(
|
|
201
|
+
description: ( localize(14007, "The contributed comment thread title menu"))
|
|
202
202
|
}, {
|
|
203
203
|
key: "comments/commentThread/context",
|
|
204
204
|
id: MenuId.CommentThreadActions,
|
|
205
205
|
description: ( localize(
|
|
206
|
-
|
|
206
|
+
14008,
|
|
207
207
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
208
208
|
)),
|
|
209
209
|
supportsSubmenus: false
|
|
@@ -211,7 +211,7 @@ const apiMenus = [{
|
|
|
211
211
|
key: "comments/commentThread/additionalActions",
|
|
212
212
|
id: MenuId.CommentThreadAdditionalActions,
|
|
213
213
|
description: ( localize(
|
|
214
|
-
|
|
214
|
+
14008,
|
|
215
215
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
216
216
|
)),
|
|
217
217
|
supportsSubmenus: true,
|
|
@@ -220,19 +220,19 @@ const apiMenus = [{
|
|
|
220
220
|
key: "comments/commentThread/title/context",
|
|
221
221
|
id: MenuId.CommentThreadTitleContext,
|
|
222
222
|
description: ( localize(
|
|
223
|
-
|
|
223
|
+
14009,
|
|
224
224
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
225
225
|
)),
|
|
226
226
|
proposed: "contribCommentPeekContext"
|
|
227
227
|
}, {
|
|
228
228
|
key: "comments/comment/title",
|
|
229
229
|
id: MenuId.CommentTitle,
|
|
230
|
-
description: ( localize(
|
|
230
|
+
description: ( localize(14010, "The contributed comment title menu"))
|
|
231
231
|
}, {
|
|
232
232
|
key: "comments/comment/context",
|
|
233
233
|
id: MenuId.CommentActions,
|
|
234
234
|
description: ( localize(
|
|
235
|
-
|
|
235
|
+
14011,
|
|
236
236
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
237
237
|
)),
|
|
238
238
|
supportsSubmenus: false
|
|
@@ -240,198 +240,198 @@ const apiMenus = [{
|
|
|
240
240
|
key: "comments/commentThread/comment/context",
|
|
241
241
|
id: MenuId.CommentThreadCommentContext,
|
|
242
242
|
description: ( localize(
|
|
243
|
-
|
|
243
|
+
14012,
|
|
244
244
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
245
245
|
)),
|
|
246
246
|
proposed: "contribCommentPeekContext"
|
|
247
247
|
}, {
|
|
248
248
|
key: "commentsView/commentThread/context",
|
|
249
249
|
id: MenuId.CommentsViewThreadActions,
|
|
250
|
-
description: ( localize(
|
|
250
|
+
description: ( localize(14013, "The contributed comment thread context menu in the comments view")),
|
|
251
251
|
proposed: "contribCommentsViewThreadMenus"
|
|
252
252
|
}, {
|
|
253
253
|
key: "notebook/toolbar",
|
|
254
254
|
id: MenuId.NotebookToolbar,
|
|
255
|
-
description: ( localize(
|
|
255
|
+
description: ( localize(14014, "The contributed notebook toolbar menu"))
|
|
256
256
|
}, {
|
|
257
257
|
key: "notebook/kernelSource",
|
|
258
258
|
id: MenuId.NotebookKernelSource,
|
|
259
|
-
description: ( localize(
|
|
259
|
+
description: ( localize(14015, "The contributed notebook kernel sources menu")),
|
|
260
260
|
proposed: "notebookKernelSource"
|
|
261
261
|
}, {
|
|
262
262
|
key: "notebook/cell/title",
|
|
263
263
|
id: MenuId.NotebookCellTitle,
|
|
264
|
-
description: ( localize(
|
|
264
|
+
description: ( localize(14016, "The contributed notebook cell title menu"))
|
|
265
265
|
}, {
|
|
266
266
|
key: "notebook/cell/execute",
|
|
267
267
|
id: MenuId.NotebookCellExecute,
|
|
268
|
-
description: ( localize(
|
|
268
|
+
description: ( localize(14017, "The contributed notebook cell execution menu"))
|
|
269
269
|
}, {
|
|
270
270
|
key: "interactive/toolbar",
|
|
271
271
|
id: MenuId.InteractiveToolbar,
|
|
272
|
-
description: ( localize(
|
|
272
|
+
description: ( localize(14018, "The contributed interactive toolbar menu"))
|
|
273
273
|
}, {
|
|
274
274
|
key: "interactive/cell/title",
|
|
275
275
|
id: MenuId.InteractiveCellTitle,
|
|
276
|
-
description: ( localize(
|
|
276
|
+
description: ( localize(14019, "The contributed interactive cell title menu"))
|
|
277
277
|
}, {
|
|
278
278
|
key: "issue/reporter",
|
|
279
279
|
id: MenuId.IssueReporter,
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(14020, "The contributed issue reporter menu"))
|
|
281
281
|
}, {
|
|
282
282
|
key: "testing/item/context",
|
|
283
283
|
id: MenuId.TestItem,
|
|
284
|
-
description: ( localize(
|
|
284
|
+
description: ( localize(14021, "The contributed test item menu"))
|
|
285
285
|
}, {
|
|
286
286
|
key: "testing/item/gutter",
|
|
287
287
|
id: MenuId.TestItemGutter,
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(14022, "The menu for a gutter decoration for a test item"))
|
|
289
289
|
}, {
|
|
290
290
|
key: "testing/profiles/context",
|
|
291
291
|
id: MenuId.TestProfilesContext,
|
|
292
|
-
description: ( localize(
|
|
292
|
+
description: ( localize(14023, "The menu for configuring testing profiles."))
|
|
293
293
|
}, {
|
|
294
294
|
key: "testing/item/result",
|
|
295
295
|
id: MenuId.TestPeekElement,
|
|
296
|
-
description: ( localize(
|
|
296
|
+
description: ( localize(14024, "The menu for an item in the Test Results view or peek."))
|
|
297
297
|
}, {
|
|
298
298
|
key: "testing/message/context",
|
|
299
299
|
id: MenuId.TestMessageContext,
|
|
300
300
|
description: ( localize(
|
|
301
|
-
|
|
301
|
+
14025,
|
|
302
302
|
"A prominent button overlaying editor content where the message is displayed"
|
|
303
303
|
))
|
|
304
304
|
}, {
|
|
305
305
|
key: "testing/message/content",
|
|
306
306
|
id: MenuId.TestMessageContent,
|
|
307
|
-
description: ( localize(
|
|
307
|
+
description: ( localize(14026, "Context menu for the message in the results tree"))
|
|
308
308
|
}, {
|
|
309
309
|
key: "extension/context",
|
|
310
310
|
id: MenuId.ExtensionContext,
|
|
311
|
-
description: ( localize(
|
|
311
|
+
description: ( localize(14027, "The extension context menu"))
|
|
312
312
|
}, {
|
|
313
313
|
key: "timeline/title",
|
|
314
314
|
id: MenuId.TimelineTitle,
|
|
315
|
-
description: ( localize(
|
|
315
|
+
description: ( localize(14028, "The Timeline view title menu"))
|
|
316
316
|
}, {
|
|
317
317
|
key: "timeline/item/context",
|
|
318
318
|
id: MenuId.TimelineItemContext,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(14029, "The Timeline view item context menu"))
|
|
320
320
|
}, {
|
|
321
321
|
key: "ports/item/context",
|
|
322
322
|
id: MenuId.TunnelContext,
|
|
323
|
-
description: ( localize(
|
|
323
|
+
description: ( localize(14030, "The Ports view item context menu"))
|
|
324
324
|
}, {
|
|
325
325
|
key: "ports/item/origin/inline",
|
|
326
326
|
id: MenuId.TunnelOriginInline,
|
|
327
|
-
description: ( localize(
|
|
327
|
+
description: ( localize(14031, "The Ports view item origin inline menu"))
|
|
328
328
|
}, {
|
|
329
329
|
key: "ports/item/port/inline",
|
|
330
330
|
id: MenuId.TunnelPortInline,
|
|
331
|
-
description: ( localize(
|
|
331
|
+
description: ( localize(14032, "The Ports view item port inline menu"))
|
|
332
332
|
}, {
|
|
333
333
|
key: "file/newFile",
|
|
334
334
|
id: MenuId.NewFile,
|
|
335
335
|
description: ( localize(
|
|
336
|
-
|
|
336
|
+
14033,
|
|
337
337
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
338
338
|
)),
|
|
339
339
|
supportsSubmenus: false
|
|
340
340
|
}, {
|
|
341
341
|
key: "webview/context",
|
|
342
342
|
id: MenuId.WebviewContext,
|
|
343
|
-
description: ( localize(
|
|
343
|
+
description: ( localize(14034, "The webview context menu"))
|
|
344
344
|
}, {
|
|
345
345
|
key: "file/share",
|
|
346
346
|
id: MenuId.MenubarShare,
|
|
347
|
-
description: ( localize(
|
|
347
|
+
description: ( localize(14035, "Share submenu shown in the top level File menu.")),
|
|
348
348
|
proposed: "contribShareMenu"
|
|
349
349
|
}, {
|
|
350
350
|
key: "editor/inlineCompletions/actions",
|
|
351
351
|
id: MenuId.InlineCompletionsActions,
|
|
352
|
-
description: ( localize(
|
|
352
|
+
description: ( localize(14036, "The actions shown when hovering on an inline completion")),
|
|
353
353
|
supportsSubmenus: false,
|
|
354
354
|
proposed: "inlineCompletionsAdditions"
|
|
355
355
|
}, {
|
|
356
356
|
key: "editor/content",
|
|
357
357
|
id: MenuId.EditorContent,
|
|
358
|
-
description: ( localize(
|
|
358
|
+
description: ( localize(14037, "The prominent button in an editor, overlays its content")),
|
|
359
359
|
proposed: "contribEditorContentMenu"
|
|
360
360
|
}, {
|
|
361
361
|
key: "editor/lineNumber/context",
|
|
362
362
|
id: MenuId.EditorLineNumberContext,
|
|
363
|
-
description: ( localize(
|
|
363
|
+
description: ( localize(14038, "The contributed editor line number context menu"))
|
|
364
364
|
}, {
|
|
365
365
|
key: "mergeEditor/result/title",
|
|
366
366
|
id: MenuId.MergeInputResultToolbar,
|
|
367
|
-
description: ( localize(
|
|
367
|
+
description: ( localize(14039, "The result toolbar of the merge editor")),
|
|
368
368
|
proposed: "contribMergeEditorMenus"
|
|
369
369
|
}, {
|
|
370
370
|
key: "multiDiffEditor/content",
|
|
371
371
|
id: MenuId.MultiDiffEditorContent,
|
|
372
|
-
description: ( localize(
|
|
372
|
+
description: ( localize(14040, "A prominent button overlaying the multi diff editor")),
|
|
373
373
|
proposed: "contribEditorContentMenu"
|
|
374
374
|
}, {
|
|
375
375
|
key: "multiDiffEditor/resource/title",
|
|
376
376
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
377
|
-
description: ( localize(
|
|
377
|
+
description: ( localize(14041, "The resource toolbar in the multi diff editor")),
|
|
378
378
|
proposed: "contribMultiDiffEditorMenus"
|
|
379
379
|
}, {
|
|
380
380
|
key: "diffEditor/gutter/hunk",
|
|
381
381
|
id: MenuId.DiffEditorHunkToolbar,
|
|
382
|
-
description: ( localize(
|
|
382
|
+
description: ( localize(14042, "The gutter toolbar in the diff editor")),
|
|
383
383
|
proposed: "contribDiffEditorGutterToolBarMenus"
|
|
384
384
|
}, {
|
|
385
385
|
key: "diffEditor/gutter/selection",
|
|
386
386
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
387
|
-
description: ( localize(
|
|
387
|
+
description: ( localize(14042, "The gutter toolbar in the diff editor")),
|
|
388
388
|
proposed: "contribDiffEditorGutterToolBarMenus"
|
|
389
389
|
}, {
|
|
390
390
|
key: "searchPanel/aiResults/commands",
|
|
391
391
|
id: MenuId.SearchActionMenu,
|
|
392
392
|
description: ( localize(
|
|
393
|
-
|
|
393
|
+
14043,
|
|
394
394
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
395
395
|
))
|
|
396
396
|
}, {
|
|
397
397
|
key: "editor/context/chat",
|
|
398
398
|
id: MenuId.ChatTextEditorMenu,
|
|
399
|
-
description: ( localize(
|
|
399
|
+
description: ( localize(14044, "The Chat submenu in the text editor context menu.")),
|
|
400
400
|
supportsSubmenus: false,
|
|
401
401
|
proposed: "chatParticipantPrivate"
|
|
402
402
|
}, {
|
|
403
403
|
key: "chat/input/editing/sessionToolbar",
|
|
404
404
|
id: MenuId.ChatEditingSessionChangesToolbar,
|
|
405
|
-
description: ( localize(
|
|
405
|
+
description: ( localize(14045, "The Chat Editing widget toolbar menu for session changes.")),
|
|
406
406
|
proposed: "chatSessionsProvider"
|
|
407
407
|
}, {
|
|
408
408
|
key: "chat/chatSessions",
|
|
409
409
|
id: MenuId.AgentSessionsContext,
|
|
410
|
-
description: ( localize(
|
|
410
|
+
description: ( localize(14046, "The Chat Sessions menu.")),
|
|
411
411
|
supportsSubmenus: false,
|
|
412
412
|
proposed: "chatSessionsProvider"
|
|
413
413
|
}, {
|
|
414
414
|
key: "chatSessions/newSession",
|
|
415
415
|
id: MenuId.AgentSessionsCreateSubMenu,
|
|
416
|
-
description: ( localize(
|
|
416
|
+
description: ( localize(14047, "Menu for new chat sessions.")),
|
|
417
417
|
supportsSubmenus: false,
|
|
418
418
|
proposed: "chatSessionsProvider"
|
|
419
419
|
}, {
|
|
420
420
|
key: "chat/multiDiff/context",
|
|
421
421
|
id: MenuId.ChatMultiDiffContext,
|
|
422
|
-
description: ( localize(
|
|
422
|
+
description: ( localize(14048, "The Chat Multi-Diff context menu.")),
|
|
423
423
|
supportsSubmenus: false,
|
|
424
424
|
proposed: "chatSessionsProvider"
|
|
425
425
|
}, {
|
|
426
426
|
key: "chat/editor/inlineGutter",
|
|
427
427
|
id: MenuId.ChatEditorInlineGutter,
|
|
428
|
-
description: ( localize(
|
|
428
|
+
description: ( localize(14049, "The inline gutter menu in the chat editor.")),
|
|
429
429
|
supportsSubmenus: false,
|
|
430
430
|
proposed: "contribChatEditorInlineGutterMenu"
|
|
431
431
|
}, {
|
|
432
432
|
key: "chat/contextUsage/actions",
|
|
433
433
|
id: MenuId.ChatContextUsageActions,
|
|
434
|
-
description: ( localize(
|
|
434
|
+
description: ( localize(14050, "Actions in the chat context usage details popup.")),
|
|
435
435
|
proposed: "chatParticipantAdditions"
|
|
436
436
|
}];
|
|
437
437
|
var schema;
|
|
@@ -443,23 +443,23 @@ var schema;
|
|
|
443
443
|
function isValidMenuItem(item, collector) {
|
|
444
444
|
if (typeof item.command !== "string") {
|
|
445
445
|
collector.error(( localize(
|
|
446
|
-
|
|
446
|
+
14051,
|
|
447
447
|
"property `{0}` is mandatory and must be of type `string`",
|
|
448
448
|
"command"
|
|
449
449
|
)));
|
|
450
450
|
return false;
|
|
451
451
|
}
|
|
452
452
|
if (item.alt && typeof item.alt !== "string") {
|
|
453
|
-
collector.error(( localize(
|
|
453
|
+
collector.error(( localize(14052, "property `{0}` can be omitted or must be of type `string`", "alt")));
|
|
454
454
|
return false;
|
|
455
455
|
}
|
|
456
456
|
if (item.when && typeof item.when !== "string") {
|
|
457
|
-
collector.error(( localize(
|
|
457
|
+
collector.error(( localize(14052, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
458
458
|
return false;
|
|
459
459
|
}
|
|
460
460
|
if (item.group && typeof item.group !== "string") {
|
|
461
461
|
collector.error(( localize(
|
|
462
|
-
|
|
462
|
+
14052,
|
|
463
463
|
"property `{0}` can be omitted or must be of type `string`",
|
|
464
464
|
"group"
|
|
465
465
|
)));
|
|
@@ -471,19 +471,19 @@ var schema;
|
|
|
471
471
|
function isValidSubmenuItem(item, collector) {
|
|
472
472
|
if (typeof item.submenu !== "string") {
|
|
473
473
|
collector.error(( localize(
|
|
474
|
-
|
|
474
|
+
14051,
|
|
475
475
|
"property `{0}` is mandatory and must be of type `string`",
|
|
476
476
|
"submenu"
|
|
477
477
|
)));
|
|
478
478
|
return false;
|
|
479
479
|
}
|
|
480
480
|
if (item.when && typeof item.when !== "string") {
|
|
481
|
-
collector.error(( localize(
|
|
481
|
+
collector.error(( localize(14052, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
482
482
|
return false;
|
|
483
483
|
}
|
|
484
484
|
if (item.group && typeof item.group !== "string") {
|
|
485
485
|
collector.error(( localize(
|
|
486
|
-
|
|
486
|
+
14052,
|
|
487
487
|
"property `{0}` can be omitted or must be of type `string`",
|
|
488
488
|
"group"
|
|
489
489
|
)));
|
|
@@ -494,7 +494,7 @@ var schema;
|
|
|
494
494
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
495
495
|
function isValidItems(items, collector) {
|
|
496
496
|
if (!Array.isArray(items)) {
|
|
497
|
-
collector.error(( localize(
|
|
497
|
+
collector.error(( localize(14053, "submenu items must be an array")));
|
|
498
498
|
return false;
|
|
499
499
|
}
|
|
500
500
|
for (const item of items) {
|
|
@@ -513,15 +513,15 @@ var schema;
|
|
|
513
513
|
schema.isValidItems = isValidItems;
|
|
514
514
|
function isValidSubmenu(submenu, collector) {
|
|
515
515
|
if (typeof submenu !== "object") {
|
|
516
|
-
collector.error(( localize(
|
|
516
|
+
collector.error(( localize(14054, "submenu items must be an object")));
|
|
517
517
|
return false;
|
|
518
518
|
}
|
|
519
519
|
if (typeof submenu.id !== "string") {
|
|
520
|
-
collector.error(( localize(
|
|
520
|
+
collector.error(( localize(14051, "property `{0}` is mandatory and must be of type `string`", "id")));
|
|
521
521
|
return false;
|
|
522
522
|
}
|
|
523
523
|
if (typeof submenu.label !== "string") {
|
|
524
|
-
collector.error(( localize(
|
|
524
|
+
collector.error(( localize(14051, "property `{0}` is mandatory and must be of type `string`", "label")));
|
|
525
525
|
return false;
|
|
526
526
|
}
|
|
527
527
|
return true;
|
|
@@ -533,24 +533,24 @@ var schema;
|
|
|
533
533
|
properties: {
|
|
534
534
|
command: {
|
|
535
535
|
description: ( localize(
|
|
536
|
-
|
|
536
|
+
14055,
|
|
537
537
|
"Identifier of the command to execute. The command must be declared in the 'commands'-section"
|
|
538
538
|
)),
|
|
539
539
|
type: "string"
|
|
540
540
|
},
|
|
541
541
|
alt: {
|
|
542
542
|
description: ( localize(
|
|
543
|
-
|
|
543
|
+
14056,
|
|
544
544
|
"Identifier of an alternative command to execute. The command must be declared in the 'commands'-section"
|
|
545
545
|
)),
|
|
546
546
|
type: "string"
|
|
547
547
|
},
|
|
548
548
|
when: {
|
|
549
|
-
description: ( localize(
|
|
549
|
+
description: ( localize(14057, "Condition which must be true to show this item")),
|
|
550
550
|
type: "string"
|
|
551
551
|
},
|
|
552
552
|
group: {
|
|
553
|
-
description: ( localize(
|
|
553
|
+
description: ( localize(14058, "Group into which this item belongs")),
|
|
554
554
|
type: "string"
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -560,15 +560,15 @@ var schema;
|
|
|
560
560
|
required: ["submenu"],
|
|
561
561
|
properties: {
|
|
562
562
|
submenu: {
|
|
563
|
-
description: ( localize(
|
|
563
|
+
description: ( localize(14059, "Identifier of the submenu to display in this item.")),
|
|
564
564
|
type: "string"
|
|
565
565
|
},
|
|
566
566
|
when: {
|
|
567
|
-
description: ( localize(
|
|
567
|
+
description: ( localize(14057, "Condition which must be true to show this item")),
|
|
568
568
|
type: "string"
|
|
569
569
|
},
|
|
570
570
|
group: {
|
|
571
|
-
description: ( localize(
|
|
571
|
+
description: ( localize(14058, "Group into which this item belongs")),
|
|
572
572
|
type: "string"
|
|
573
573
|
}
|
|
574
574
|
}
|
|
@@ -578,16 +578,16 @@ var schema;
|
|
|
578
578
|
required: ["id", "label"],
|
|
579
579
|
properties: {
|
|
580
580
|
id: {
|
|
581
|
-
description: ( localize(
|
|
581
|
+
description: ( localize(14060, "Identifier of the menu to display as a submenu.")),
|
|
582
582
|
type: "string"
|
|
583
583
|
},
|
|
584
584
|
label: {
|
|
585
|
-
description: ( localize(
|
|
585
|
+
description: ( localize(14061, "The label of the menu item which leads to this submenu.")),
|
|
586
586
|
type: "string"
|
|
587
587
|
},
|
|
588
588
|
icon: {
|
|
589
589
|
description: ( localize(
|
|
590
|
-
|
|
590
|
+
14062,
|
|
591
591
|
"(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)\""
|
|
592
592
|
)),
|
|
593
593
|
anyOf: [{
|
|
@@ -596,11 +596,11 @@ var schema;
|
|
|
596
596
|
type: "object",
|
|
597
597
|
properties: {
|
|
598
598
|
light: {
|
|
599
|
-
description: ( localize(
|
|
599
|
+
description: ( localize(14063, "Icon path when a light theme is used")),
|
|
600
600
|
type: "string"
|
|
601
601
|
},
|
|
602
602
|
dark: {
|
|
603
|
-
description: ( localize(
|
|
603
|
+
description: ( localize(14064, "Icon path when a dark theme is used")),
|
|
604
604
|
type: "string"
|
|
605
605
|
}
|
|
606
606
|
}
|
|
@@ -609,11 +609,11 @@ var schema;
|
|
|
609
609
|
}
|
|
610
610
|
};
|
|
611
611
|
schema.menusContribution = {
|
|
612
|
-
description: ( localize(
|
|
612
|
+
description: ( localize(14065, "Contributes menu items to the editor")),
|
|
613
613
|
type: "object",
|
|
614
614
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
615
615
|
markdownDescription: menu.proposed ? ( localize(
|
|
616
|
-
|
|
616
|
+
14066,
|
|
617
617
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
618
618
|
menu.proposed,
|
|
619
619
|
menu.description
|
|
@@ -632,18 +632,18 @@ var schema;
|
|
|
632
632
|
}
|
|
633
633
|
};
|
|
634
634
|
schema.submenusContribution = {
|
|
635
|
-
description: ( localize(
|
|
635
|
+
description: ( localize(14067, "Contributes submenu items to the editor")),
|
|
636
636
|
type: "array",
|
|
637
637
|
items: submenu
|
|
638
638
|
};
|
|
639
639
|
function isValidCommand(command, collector) {
|
|
640
640
|
if (!command) {
|
|
641
|
-
collector.error(( localize(
|
|
641
|
+
collector.error(( localize(14068, "expected non-empty value.")));
|
|
642
642
|
return false;
|
|
643
643
|
}
|
|
644
644
|
if (isFalsyOrWhitespace(command.command)) {
|
|
645
645
|
collector.error(( localize(
|
|
646
|
-
|
|
646
|
+
14051,
|
|
647
647
|
"property `{0}` is mandatory and must be of type `string`",
|
|
648
648
|
"command"
|
|
649
649
|
)));
|
|
@@ -657,7 +657,7 @@ var schema;
|
|
|
657
657
|
}
|
|
658
658
|
if (command.enablement && typeof command.enablement !== "string") {
|
|
659
659
|
collector.error(( localize(
|
|
660
|
-
|
|
660
|
+
14052,
|
|
661
661
|
"property `{0}` can be omitted or must be of type `string`",
|
|
662
662
|
"precondition"
|
|
663
663
|
)));
|
|
@@ -682,7 +682,7 @@ var schema;
|
|
|
682
682
|
return true;
|
|
683
683
|
}
|
|
684
684
|
collector.error(( localize(
|
|
685
|
-
|
|
685
|
+
14069,
|
|
686
686
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
687
687
|
)));
|
|
688
688
|
return false;
|
|
@@ -690,21 +690,21 @@ var schema;
|
|
|
690
690
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
691
691
|
if (typeof localized === "undefined") {
|
|
692
692
|
collector.error(( localize(
|
|
693
|
-
|
|
693
|
+
14070,
|
|
694
694
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
695
695
|
propertyName
|
|
696
696
|
)));
|
|
697
697
|
return false;
|
|
698
698
|
} else if (typeof localized === "string" && isFalsyOrWhitespace(localized)) {
|
|
699
699
|
collector.error(( localize(
|
|
700
|
-
|
|
700
|
+
14051,
|
|
701
701
|
"property `{0}` is mandatory and must be of type `string`",
|
|
702
702
|
propertyName
|
|
703
703
|
)));
|
|
704
704
|
return false;
|
|
705
705
|
} else if (typeof localized !== "string" && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
706
706
|
collector.error(( localize(
|
|
707
|
-
|
|
707
|
+
14071,
|
|
708
708
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
709
709
|
`${propertyName}.value`,
|
|
710
710
|
`${propertyName}.original`
|
|
@@ -718,37 +718,37 @@ var schema;
|
|
|
718
718
|
required: ["command", "title"],
|
|
719
719
|
properties: {
|
|
720
720
|
command: {
|
|
721
|
-
description: ( localize(
|
|
721
|
+
description: ( localize(14072, "Identifier of the command to execute")),
|
|
722
722
|
type: "string"
|
|
723
723
|
},
|
|
724
724
|
title: {
|
|
725
|
-
description: ( localize(
|
|
725
|
+
description: ( localize(14073, "Title by which the command is represented in the UI")),
|
|
726
726
|
type: "string"
|
|
727
727
|
},
|
|
728
728
|
shortTitle: {
|
|
729
729
|
markdownDescription: ( localize(
|
|
730
|
-
|
|
730
|
+
14074,
|
|
731
731
|
"(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."
|
|
732
732
|
)),
|
|
733
733
|
type: "string"
|
|
734
734
|
},
|
|
735
735
|
category: {
|
|
736
736
|
description: ( localize(
|
|
737
|
-
|
|
737
|
+
14075,
|
|
738
738
|
"(Optional) Category string by which the command is grouped in the UI"
|
|
739
739
|
)),
|
|
740
740
|
type: "string"
|
|
741
741
|
},
|
|
742
742
|
enablement: {
|
|
743
743
|
description: ( localize(
|
|
744
|
-
|
|
744
|
+
14076,
|
|
745
745
|
"(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."
|
|
746
746
|
)),
|
|
747
747
|
type: "string"
|
|
748
748
|
},
|
|
749
749
|
icon: {
|
|
750
750
|
description: ( localize(
|
|
751
|
-
|
|
751
|
+
14077,
|
|
752
752
|
"(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)\""
|
|
753
753
|
)),
|
|
754
754
|
anyOf: [{
|
|
@@ -757,11 +757,11 @@ var schema;
|
|
|
757
757
|
type: "object",
|
|
758
758
|
properties: {
|
|
759
759
|
light: {
|
|
760
|
-
description: ( localize(
|
|
760
|
+
description: ( localize(14078, "Icon path when a light theme is used")),
|
|
761
761
|
type: "string"
|
|
762
762
|
},
|
|
763
763
|
dark: {
|
|
764
|
-
description: ( localize(
|
|
764
|
+
description: ( localize(14079, "Icon path when a dark theme is used")),
|
|
765
765
|
type: "string"
|
|
766
766
|
}
|
|
767
767
|
}
|
|
@@ -770,7 +770,7 @@ var schema;
|
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
772
|
schema.commandsContribution = {
|
|
773
|
-
description: ( localize(
|
|
773
|
+
description: ( localize(14080, "Contributes commands to the command palette.")),
|
|
774
774
|
oneOf: [commandType, {
|
|
775
775
|
type: "array",
|
|
776
776
|
items: commandType
|
|
@@ -820,14 +820,14 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
820
820
|
if (existingCmd) {
|
|
821
821
|
if (existingCmd.source) {
|
|
822
822
|
extension.collector.info(( localize(
|
|
823
|
-
|
|
823
|
+
14081,
|
|
824
824
|
"Command `{0}` already registered by {1} ({2})",
|
|
825
825
|
userFriendlyCommand.command,
|
|
826
826
|
existingCmd.source.title,
|
|
827
827
|
existingCmd.source.id
|
|
828
828
|
)));
|
|
829
829
|
} else {
|
|
830
|
-
extension.collector.info(( localize(
|
|
830
|
+
extension.collector.info(( localize(14082, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -875,19 +875,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
875
875
|
continue;
|
|
876
876
|
}
|
|
877
877
|
if (!submenuInfo.id) {
|
|
878
|
-
collector.warn(( localize(
|
|
878
|
+
collector.warn(( localize(14083, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
879
879
|
continue;
|
|
880
880
|
}
|
|
881
881
|
if (( _submenus.has(submenuInfo.id))) {
|
|
882
882
|
collector.info(( localize(
|
|
883
|
-
|
|
883
|
+
14084,
|
|
884
884
|
"The `{0}` submenu was already previously registered.",
|
|
885
885
|
submenuInfo.id
|
|
886
886
|
)));
|
|
887
887
|
continue;
|
|
888
888
|
}
|
|
889
889
|
if (!submenuInfo.label) {
|
|
890
|
-
collector.warn(( localize(
|
|
890
|
+
collector.warn(( localize(14085, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
891
891
|
continue;
|
|
892
892
|
}
|
|
893
893
|
let absoluteIcon;
|
|
@@ -948,7 +948,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
948
948
|
}
|
|
949
949
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
950
950
|
collector.error(( localize(
|
|
951
|
-
|
|
951
|
+
14086,
|
|
952
952
|
"{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}",
|
|
953
953
|
entry[0],
|
|
954
954
|
menu.proposed,
|
|
@@ -963,7 +963,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
963
963
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
964
964
|
if (!command) {
|
|
965
965
|
collector.error(( localize(
|
|
966
|
-
|
|
966
|
+
14087,
|
|
967
967
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
968
968
|
menuItem.command
|
|
969
969
|
)));
|
|
@@ -971,13 +971,13 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
971
971
|
}
|
|
972
972
|
if (menuItem.alt && !alt) {
|
|
973
973
|
collector.warn(( localize(
|
|
974
|
-
|
|
974
|
+
14088,
|
|
975
975
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
976
976
|
menuItem.alt
|
|
977
977
|
)));
|
|
978
978
|
}
|
|
979
979
|
if (menuItem.command === menuItem.alt) {
|
|
980
|
-
collector.info(( localize(
|
|
980
|
+
collector.info(( localize(14089, "Menu item references the same command as default and alt-command")));
|
|
981
981
|
}
|
|
982
982
|
item = {
|
|
983
983
|
command,
|
|
@@ -989,7 +989,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
989
989
|
} else {
|
|
990
990
|
if (menu.supportsSubmenus === false) {
|
|
991
991
|
collector.error(( localize(
|
|
992
|
-
|
|
992
|
+
14090,
|
|
993
993
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
994
994
|
)));
|
|
995
995
|
continue;
|
|
@@ -997,7 +997,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
997
997
|
const submenu = _submenus.get(menuItem.submenu);
|
|
998
998
|
if (!submenu) {
|
|
999
999
|
collector.error(( localize(
|
|
1000
|
-
|
|
1000
|
+
14091,
|
|
1001
1001
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1002
1002
|
menuItem.submenu
|
|
1003
1003
|
)));
|
|
@@ -1010,7 +1010,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1012
1012
|
collector.warn(( localize(
|
|
1013
|
-
|
|
1013
|
+
14092,
|
|
1014
1014
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1015
1015
|
menuItem.submenu,
|
|
1016
1016
|
entry[0]
|
|
@@ -1038,7 +1038,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes("viewContainer == workbench.view.debug")) {
|
|
1040
1040
|
collector.error(( localize(
|
|
1041
|
-
|
|
1041
|
+
14093,
|
|
1042
1042
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1043
1043
|
"`viewContainer/title`",
|
|
1044
1044
|
"`viewContainer == workbench.view.debug`",
|
|
@@ -1140,7 +1140,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1140
1140
|
dispose: () => {}
|
|
1141
1141
|
};
|
|
1142
1142
|
}
|
|
1143
|
-
const headers = [( localize(
|
|
1143
|
+
const headers = [( localize(14094, "ID")), ( localize(14095, "Title")), ( localize(14096, "Keyboard Shortcuts")), ( localize(14097, "Menu Contexts"))];
|
|
1144
1144
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id)).map(command => {
|
|
1145
1145
|
return [( new MarkdownString()).appendMarkdown(`\`${command.id}\``), typeof command.title === "string" ? command.title : command.title.value, command.keybindings, ( new MarkdownString()).appendMarkdown(`${( command.menus.sort((a, b) => a.localeCompare(b)).map(menu => `\`${menu}\``)).join(" ")}`)];
|
|
1146
1146
|
}));
|
|
@@ -1171,7 +1171,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1171
1171
|
CommandsTableRenderer = ( __decorate([( __param(0, IKeybindingService))], CommandsTableRenderer));
|
|
1172
1172
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1173
1173
|
id: "commands",
|
|
1174
|
-
label: ( localize(
|
|
1174
|
+
label: ( localize(14098, "Commands")),
|
|
1175
1175
|
access: {
|
|
1176
1176
|
canToggle: false
|
|
1177
1177
|
},
|
|
@@ -51,39 +51,39 @@ import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor
|
|
|
51
51
|
var WorkbenchKeybindingService_1;
|
|
52
52
|
function isValidContributedKeyBinding(keyBinding, rejects) {
|
|
53
53
|
if (!keyBinding) {
|
|
54
|
-
rejects.push(( localize(
|
|
54
|
+
rejects.push(( localize(14506, "expected non-empty value.")));
|
|
55
55
|
return false;
|
|
56
56
|
}
|
|
57
57
|
if (typeof keyBinding.command !== "string") {
|
|
58
58
|
rejects.push(( localize(
|
|
59
|
-
|
|
59
|
+
14507,
|
|
60
60
|
"property `{0}` is mandatory and must be of type `string`",
|
|
61
61
|
"command"
|
|
62
62
|
)));
|
|
63
63
|
return false;
|
|
64
64
|
}
|
|
65
65
|
if (keyBinding.key && typeof keyBinding.key !== "string") {
|
|
66
|
-
rejects.push(( localize(
|
|
66
|
+
rejects.push(( localize(14508, "property `{0}` can be omitted or must be of type `string`", "key")));
|
|
67
67
|
return false;
|
|
68
68
|
}
|
|
69
69
|
if (keyBinding.when && typeof keyBinding.when !== "string") {
|
|
70
|
-
rejects.push(( localize(
|
|
70
|
+
rejects.push(( localize(14508, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
71
71
|
return false;
|
|
72
72
|
}
|
|
73
73
|
if (keyBinding.mac && typeof keyBinding.mac !== "string") {
|
|
74
|
-
rejects.push(( localize(
|
|
74
|
+
rejects.push(( localize(14508, "property `{0}` can be omitted or must be of type `string`", "mac")));
|
|
75
75
|
return false;
|
|
76
76
|
}
|
|
77
77
|
if (keyBinding.linux && typeof keyBinding.linux !== "string") {
|
|
78
78
|
rejects.push(( localize(
|
|
79
|
-
|
|
79
|
+
14508,
|
|
80
80
|
"property `{0}` can be omitted or must be of type `string`",
|
|
81
81
|
"linux"
|
|
82
82
|
)));
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
85
|
if (keyBinding.win && typeof keyBinding.win !== "string") {
|
|
86
|
-
rejects.push(( localize(
|
|
86
|
+
rejects.push(( localize(14508, "property `{0}` can be omitted or must be of type `string`", "win")));
|
|
87
87
|
return false;
|
|
88
88
|
}
|
|
89
89
|
return true;
|
|
@@ -97,33 +97,33 @@ const keybindingType = {
|
|
|
97
97
|
required: ["command", "key"],
|
|
98
98
|
properties: {
|
|
99
99
|
command: {
|
|
100
|
-
description: ( localize(
|
|
100
|
+
description: ( localize(14509, "Identifier of the command to run when keybinding is triggered.")),
|
|
101
101
|
type: "string"
|
|
102
102
|
},
|
|
103
103
|
args: {
|
|
104
|
-
description: ( localize(
|
|
104
|
+
description: ( localize(14510, "Arguments to pass to the command to execute."))
|
|
105
105
|
},
|
|
106
106
|
key: {
|
|
107
107
|
description: ( localize(
|
|
108
|
-
|
|
108
|
+
14511,
|
|
109
109
|
"Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord)."
|
|
110
110
|
)),
|
|
111
111
|
type: "string"
|
|
112
112
|
},
|
|
113
113
|
mac: {
|
|
114
|
-
description: ( localize(
|
|
114
|
+
description: ( localize(14512, "Mac specific key or key sequence.")),
|
|
115
115
|
type: "string"
|
|
116
116
|
},
|
|
117
117
|
linux: {
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(14513, "Linux specific key or key sequence.")),
|
|
119
119
|
type: "string"
|
|
120
120
|
},
|
|
121
121
|
win: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(14514, "Windows specific key or key sequence.")),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
when: {
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(14515, "Condition when the key is active.")),
|
|
127
127
|
type: "string"
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -132,7 +132,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
132
132
|
extensionPoint: "keybindings",
|
|
133
133
|
deps: [commandsExtensionPoint],
|
|
134
134
|
jsonSchema: {
|
|
135
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(14516, "Contributes keybindings.")),
|
|
136
136
|
oneOf: [keybindingType, {
|
|
137
137
|
type: "array",
|
|
138
138
|
items: keybindingType
|
|
@@ -555,7 +555,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
555
555
|
}
|
|
556
556
|
if (rejects.length > 0) {
|
|
557
557
|
collector.error(( localize(
|
|
558
|
-
|
|
558
|
+
14517,
|
|
559
559
|
"Invalid `contributes.{0}`: {1}",
|
|
560
560
|
keybindingsExtPoint.name,
|
|
561
561
|
rejects.join("\n")
|
|
@@ -643,7 +643,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
643
643
|
static _getAllCommandsAsComment(boundCommands) {
|
|
644
644
|
const unboundCommands = getAllUnboundCommands(boundCommands);
|
|
645
645
|
const pretty = unboundCommands.sort().join("\n// - ");
|
|
646
|
-
return "// " + ( localize(
|
|
646
|
+
return "// " + ( localize(14518, "Here are other available commands: ")) + "\n// - " + pretty;
|
|
647
647
|
}
|
|
648
648
|
mightProducePrintableCharacter(event) {
|
|
649
649
|
if (event.ctrlKey || event.metaKey || event.altKey) {
|
|
@@ -766,7 +766,7 @@ class KeybindingsJsonSchema {
|
|
|
766
766
|
this.schema = {
|
|
767
767
|
id: KeybindingsJsonSchema.schemaId,
|
|
768
768
|
type: "array",
|
|
769
|
-
title: ( localize(
|
|
769
|
+
title: ( localize(14519, "Keybindings configuration")),
|
|
770
770
|
allowTrailingCommas: true,
|
|
771
771
|
allowComments: true,
|
|
772
772
|
definitions: {
|
|
@@ -790,7 +790,7 @@ class KeybindingsJsonSchema {
|
|
|
790
790
|
"type": "string",
|
|
791
791
|
"enum": this.commandsEnum,
|
|
792
792
|
"enumDescriptions": this.commandsEnumDescriptions,
|
|
793
|
-
"description": ( localize(
|
|
793
|
+
"description": ( localize(14520, "Name of the command to execute"))
|
|
794
794
|
},
|
|
795
795
|
"commandType": {
|
|
796
796
|
"anyOf": [{
|
|
@@ -799,7 +799,7 @@ class KeybindingsJsonSchema {
|
|
|
799
799
|
"type": "string",
|
|
800
800
|
"enum": this.removalCommandsEnum,
|
|
801
801
|
"enumDescriptions": this.commandsEnumDescriptions,
|
|
802
|
-
"description": ( localize(
|
|
802
|
+
"description": ( localize(14521, "Name of the command to remove keyboard shortcut for"))
|
|
803
803
|
}, {
|
|
804
804
|
"type": "string"
|
|
805
805
|
}]
|
|
@@ -821,7 +821,7 @@ class KeybindingsJsonSchema {
|
|
|
821
821
|
"properties": {
|
|
822
822
|
"key": {
|
|
823
823
|
"type": "string",
|
|
824
|
-
"description": ( localize(
|
|
824
|
+
"description": ( localize(14522, "Key or key sequence (separated by space)"))
|
|
825
825
|
},
|
|
826
826
|
"command": {
|
|
827
827
|
"anyOf": [{
|
|
@@ -833,7 +833,7 @@ class KeybindingsJsonSchema {
|
|
|
833
833
|
"type": "array"
|
|
834
834
|
},
|
|
835
835
|
"errorMessage": ( localize(
|
|
836
|
-
|
|
836
|
+
14523,
|
|
837
837
|
"Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
|
|
838
838
|
"string"
|
|
839
839
|
))
|
|
@@ -847,10 +847,10 @@ class KeybindingsJsonSchema {
|
|
|
847
847
|
},
|
|
848
848
|
"when": {
|
|
849
849
|
"type": "string",
|
|
850
|
-
"description": ( localize(
|
|
850
|
+
"description": ( localize(14524, "Condition when the key is active."))
|
|
851
851
|
},
|
|
852
852
|
"args": {
|
|
853
|
-
"description": ( localize(
|
|
853
|
+
"description": ( localize(14525, "Arguments to pass to the command to execute."))
|
|
854
854
|
}
|
|
855
855
|
},
|
|
856
856
|
"$ref": "#/definitions/commandsSchemas"
|
|
@@ -476,12 +476,12 @@ const keyboardConfiguration = {
|
|
|
476
476
|
"id": "keyboard",
|
|
477
477
|
"order": 15,
|
|
478
478
|
"type": "object",
|
|
479
|
-
"title": ( localize(
|
|
479
|
+
"title": ( localize(14526, "Keyboard")),
|
|
480
480
|
"properties": {
|
|
481
481
|
"keyboard.layout": {
|
|
482
482
|
"type": "string",
|
|
483
483
|
"default": "autodetect",
|
|
484
|
-
"description": ( localize(
|
|
484
|
+
"description": ( localize(14527, "Control the keyboard layout used in web."))
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
};
|