@codingame/monaco-vscode-keybindings-service-override 20.0.0 → 20.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 +8 -8
- package/vscode/src/vs/workbench/contrib/commands/common/commands.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js +3 -3
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +139 -139
- 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": "20.
|
|
3
|
+
"version": "20.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - keybindings service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "20.
|
|
19
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "20.
|
|
20
|
-
"@codingame/monaco-vscode-a3eaa464-944c-5b8f-8886-213068ba4897-common": "20.
|
|
21
|
-
"@codingame/monaco-vscode-acd79e2c-c7e3-5594-873a-427e3006b3d8-common": "20.
|
|
22
|
-
"@codingame/monaco-vscode-api": "20.
|
|
23
|
-
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "20.
|
|
24
|
-
"@codingame/monaco-vscode-files-service-override": "20.
|
|
18
|
+
"@codingame/monaco-vscode-2a22c7b4-b906-5914-8cd1-3ed912fb738f-common": "20.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "20.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-a3eaa464-944c-5b8f-8886-213068ba4897-common": "20.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-acd79e2c-c7e3-5594-873a-427e3006b3d8-common": "20.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-api": "20.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-d609a7d3-bf87-551a-884f-550a8b327ec5-common": "20.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-files-service-override": "20.1.0"
|
|
25
25
|
},
|
|
26
26
|
"main": "index.js",
|
|
27
27
|
"module": "index.js",
|
|
@@ -10,10 +10,10 @@ class RunCommands extends Action2 {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: 'runCommands',
|
|
13
|
-
title: ( localize2(
|
|
13
|
+
title: ( localize2(5656, "Run Commands")),
|
|
14
14
|
f1: false,
|
|
15
15
|
metadata: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(5657, "Run several commands")),
|
|
17
17
|
args: [
|
|
18
18
|
{
|
|
19
19
|
name: 'args',
|
|
@@ -23,7 +23,7 @@ class RunCommands extends Action2 {
|
|
|
23
23
|
properties: {
|
|
24
24
|
commands: {
|
|
25
25
|
type: 'array',
|
|
26
|
-
description: ( localize(
|
|
26
|
+
description: ( localize(5658, "Commands to run")),
|
|
27
27
|
items: {
|
|
28
28
|
anyOf: [
|
|
29
29
|
{
|
|
@@ -63,14 +63,14 @@ class RunCommands extends Action2 {
|
|
|
63
63
|
const notificationService = accessor.get(INotificationService);
|
|
64
64
|
if (!this._isCommandArgs(args)) {
|
|
65
65
|
notificationService.error(( localize(
|
|
66
|
-
|
|
66
|
+
5659,
|
|
67
67
|
"'runCommands' has received an argument with incorrect type. Please, review the argument passed to the command."
|
|
68
68
|
)));
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
if (args.commands.length === 0) {
|
|
72
72
|
notificationService.warn(( localize(
|
|
73
|
-
|
|
73
|
+
5660,
|
|
74
74
|
"'runCommands' has not received commands to run. Did you forget to pass commands in the 'runCommands' argument?"
|
|
75
75
|
)));
|
|
76
76
|
return;
|
|
@@ -16,7 +16,7 @@ class ToggleKeybindingsLogAction extends Action2 {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super({
|
|
18
18
|
id: 'workbench.action.toggleKeybindingsLog',
|
|
19
|
-
title: ( localize2(
|
|
19
|
+
title: ( localize2(7845, "Toggle Keyboard Shortcuts Troubleshooting")),
|
|
20
20
|
category: Categories.Developer,
|
|
21
21
|
f1: true
|
|
22
22
|
});
|
package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditorContribution.js
CHANGED
|
@@ -24,7 +24,7 @@ import { DEFINE_KEYBINDING_EDITOR_CONTRIB_ID } from '@codingame/monaco-vscode-ac
|
|
|
24
24
|
|
|
25
25
|
var KeybindingEditorDecorationsRenderer_1;
|
|
26
26
|
const NLS_KB_LAYOUT_ERROR_MESSAGE = ( localize(
|
|
27
|
-
|
|
27
|
+
9186,
|
|
28
28
|
"You won't be able to produce this key combination under your current keyboard layout."
|
|
29
29
|
));
|
|
30
30
|
let DefineKeybindingEditorContribution = class DefineKeybindingEditorContribution extends Disposable {
|
|
@@ -182,14 +182,14 @@ let KeybindingEditorDecorationsRenderer = KeybindingEditorDecorationsRenderer_1
|
|
|
182
182
|
else {
|
|
183
183
|
if (usLabel && uiLabel !== usLabel) {
|
|
184
184
|
msg = ( new MarkdownString(( localize(
|
|
185
|
-
|
|
185
|
+
9187,
|
|
186
186
|
"**{0}** for your current keyboard layout (**{1}** for US standard).",
|
|
187
187
|
uiLabel,
|
|
188
188
|
usLabel
|
|
189
189
|
))));
|
|
190
190
|
}
|
|
191
191
|
else {
|
|
192
|
-
msg = ( new MarkdownString(( localize(
|
|
192
|
+
msg = ( new MarkdownString(( localize(9188, "**{0}** for your current keyboard layout.", uiLabel))));
|
|
193
193
|
}
|
|
194
194
|
className = 'keybindingInfo';
|
|
195
195
|
overviewRulerColor = themeColorFromId(overviewRulerInfo);
|
|
@@ -21,220 +21,220 @@ const apiMenus = [
|
|
|
21
21
|
{
|
|
22
22
|
key: 'commandPalette',
|
|
23
23
|
id: MenuId.CommandPalette,
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(12723, "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(12724, "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(12725, "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(12726, "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(12727, "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(12728, "'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(12729, "'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(12730, "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(12731, "'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(12732, "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(12733, "'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(12734, "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(12735, "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(12736, "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(12737, "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(12738, "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(12739, "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(12740, "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(12741, "'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(12742, "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(12743, "The Source Control menu"))
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
key: 'scm/sourceControl/title',
|
|
136
136
|
id: MenuId.SCMSourceControlTitle,
|
|
137
|
-
description: ( localize(
|
|
137
|
+
description: ( localize(12744, "The Source Control title menu")),
|
|
138
138
|
proposed: 'contribSourceControlTitleMenu'
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
key: 'scm/resourceState/context',
|
|
142
142
|
id: MenuId.SCMResourceContext,
|
|
143
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(12745, "The Source Control resource state context menu"))
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
key: 'scm/resourceFolder/context',
|
|
147
147
|
id: MenuId.SCMResourceFolderContext,
|
|
148
|
-
description: ( localize(
|
|
148
|
+
description: ( localize(12746, "The Source Control resource folder context menu"))
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
key: 'scm/resourceGroup/context',
|
|
152
152
|
id: MenuId.SCMResourceGroupContext,
|
|
153
|
-
description: ( localize(
|
|
153
|
+
description: ( localize(12747, "The Source Control resource group context menu"))
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
key: 'scm/change/title',
|
|
157
157
|
id: MenuId.SCMChangeContext,
|
|
158
|
-
description: ( localize(
|
|
158
|
+
description: ( localize(12748, "The Source Control inline change menu"))
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
key: 'scm/inputBox',
|
|
162
162
|
id: MenuId.SCMInputBox,
|
|
163
|
-
description: ( localize(
|
|
163
|
+
description: ( localize(12749, "The Source Control input box menu")),
|
|
164
164
|
proposed: 'contribSourceControlInputBoxMenu'
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
key: 'scm/history/title',
|
|
168
168
|
id: MenuId.SCMHistoryTitle,
|
|
169
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(12750, "The Source Control History title menu")),
|
|
170
170
|
proposed: 'contribSourceControlHistoryTitleMenu'
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
key: 'scm/historyItem/context',
|
|
174
174
|
id: MenuId.SCMHistoryItemContext,
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(12751, "The Source Control history item context menu")),
|
|
176
176
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
key: 'scm/historyItem/hover',
|
|
180
180
|
id: MenuId.SCMHistoryItemHover,
|
|
181
|
-
description: ( localize(
|
|
181
|
+
description: ( localize(12752, "The Source Control history item hover menu")),
|
|
182
182
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
key: 'scm/historyItemRef/context',
|
|
186
186
|
id: MenuId.SCMHistoryItemRefContext,
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(12753, "The Source Control history item reference context menu")),
|
|
188
188
|
proposed: 'contribSourceControlHistoryItemMenu'
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
key: 'statusBar/remoteIndicator',
|
|
192
192
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
193
|
-
description: ( localize(
|
|
193
|
+
description: ( localize(12754, "The remote indicator menu in the status bar")),
|
|
194
194
|
supportsSubmenus: false
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
key: 'terminal/context',
|
|
198
198
|
id: MenuId.TerminalInstanceContext,
|
|
199
|
-
description: ( localize(
|
|
199
|
+
description: ( localize(12755, "The terminal context menu"))
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
key: 'terminal/title/context',
|
|
203
203
|
id: MenuId.TerminalTabContext,
|
|
204
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(12756, "The terminal tabs context menu"))
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
key: 'view/title',
|
|
208
208
|
id: MenuId.ViewTitle,
|
|
209
|
-
description: ( localize(
|
|
209
|
+
description: ( localize(12757, "The contributed view title menu"))
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
key: 'viewContainer/title',
|
|
213
213
|
id: MenuId.ViewContainerTitle,
|
|
214
|
-
description: ( localize(
|
|
214
|
+
description: ( localize(12758, "The contributed view container title menu")),
|
|
215
215
|
proposed: 'contribViewContainerTitle'
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
key: 'view/item/context',
|
|
219
219
|
id: MenuId.ViewItemContext,
|
|
220
|
-
description: ( localize(
|
|
220
|
+
description: ( localize(12759, "The contributed view item context menu"))
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
key: 'comments/comment/editorActions',
|
|
224
224
|
id: MenuId.CommentEditorActions,
|
|
225
|
-
description: ( localize(
|
|
225
|
+
description: ( localize(12760, "The contributed comment editor actions")),
|
|
226
226
|
proposed: 'contribCommentEditorActionsMenu'
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
229
|
key: 'comments/commentThread/title',
|
|
230
230
|
id: MenuId.CommentThreadTitle,
|
|
231
|
-
description: ( localize(
|
|
231
|
+
description: ( localize(12761, "The contributed comment thread title menu"))
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
key: 'comments/commentThread/context',
|
|
235
235
|
id: MenuId.CommentThreadActions,
|
|
236
236
|
description: ( localize(
|
|
237
|
-
|
|
237
|
+
12762,
|
|
238
238
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
239
239
|
)),
|
|
240
240
|
supportsSubmenus: false
|
|
@@ -243,7 +243,7 @@ const apiMenus = [
|
|
|
243
243
|
key: 'comments/commentThread/additionalActions',
|
|
244
244
|
id: MenuId.CommentThreadAdditionalActions,
|
|
245
245
|
description: ( localize(
|
|
246
|
-
|
|
246
|
+
12762,
|
|
247
247
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
248
248
|
)),
|
|
249
249
|
supportsSubmenus: true,
|
|
@@ -253,7 +253,7 @@ const apiMenus = [
|
|
|
253
253
|
key: 'comments/commentThread/title/context',
|
|
254
254
|
id: MenuId.CommentThreadTitleContext,
|
|
255
255
|
description: ( localize(
|
|
256
|
-
|
|
256
|
+
12763,
|
|
257
257
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
258
258
|
)),
|
|
259
259
|
proposed: 'contribCommentPeekContext'
|
|
@@ -261,13 +261,13 @@ const apiMenus = [
|
|
|
261
261
|
{
|
|
262
262
|
key: 'comments/comment/title',
|
|
263
263
|
id: MenuId.CommentTitle,
|
|
264
|
-
description: ( localize(
|
|
264
|
+
description: ( localize(12764, "The contributed comment title menu"))
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
key: 'comments/comment/context',
|
|
268
268
|
id: MenuId.CommentActions,
|
|
269
269
|
description: ( localize(
|
|
270
|
-
|
|
270
|
+
12765,
|
|
271
271
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
272
272
|
)),
|
|
273
273
|
supportsSubmenus: false
|
|
@@ -276,7 +276,7 @@ const apiMenus = [
|
|
|
276
276
|
key: 'comments/commentThread/comment/context',
|
|
277
277
|
id: MenuId.CommentThreadCommentContext,
|
|
278
278
|
description: ( localize(
|
|
279
|
-
|
|
279
|
+
12766,
|
|
280
280
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
281
281
|
)),
|
|
282
282
|
proposed: 'contribCommentPeekContext'
|
|
@@ -284,113 +284,113 @@ const apiMenus = [
|
|
|
284
284
|
{
|
|
285
285
|
key: 'commentsView/commentThread/context',
|
|
286
286
|
id: MenuId.CommentsViewThreadActions,
|
|
287
|
-
description: ( localize(
|
|
287
|
+
description: ( localize(12767, "The contributed comment thread context menu in the comments view")),
|
|
288
288
|
proposed: 'contribCommentsViewThreadMenus'
|
|
289
289
|
},
|
|
290
290
|
{
|
|
291
291
|
key: 'notebook/toolbar',
|
|
292
292
|
id: MenuId.NotebookToolbar,
|
|
293
|
-
description: ( localize(
|
|
293
|
+
description: ( localize(12768, "The contributed notebook toolbar menu"))
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
key: 'notebook/kernelSource',
|
|
297
297
|
id: MenuId.NotebookKernelSource,
|
|
298
|
-
description: ( localize(
|
|
298
|
+
description: ( localize(12769, "The contributed notebook kernel sources menu")),
|
|
299
299
|
proposed: 'notebookKernelSource'
|
|
300
300
|
},
|
|
301
301
|
{
|
|
302
302
|
key: 'notebook/cell/title',
|
|
303
303
|
id: MenuId.NotebookCellTitle,
|
|
304
|
-
description: ( localize(
|
|
304
|
+
description: ( localize(12770, "The contributed notebook cell title menu"))
|
|
305
305
|
},
|
|
306
306
|
{
|
|
307
307
|
key: 'notebook/cell/execute',
|
|
308
308
|
id: MenuId.NotebookCellExecute,
|
|
309
|
-
description: ( localize(
|
|
309
|
+
description: ( localize(12771, "The contributed notebook cell execution menu"))
|
|
310
310
|
},
|
|
311
311
|
{
|
|
312
312
|
key: 'interactive/toolbar',
|
|
313
313
|
id: MenuId.InteractiveToolbar,
|
|
314
|
-
description: ( localize(
|
|
314
|
+
description: ( localize(12772, "The contributed interactive toolbar menu")),
|
|
315
315
|
},
|
|
316
316
|
{
|
|
317
317
|
key: 'interactive/cell/title',
|
|
318
318
|
id: MenuId.InteractiveCellTitle,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(12773, "The contributed interactive cell title menu")),
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
key: 'issue/reporter',
|
|
323
323
|
id: MenuId.IssueReporter,
|
|
324
|
-
description: ( localize(
|
|
324
|
+
description: ( localize(12774, "The contributed issue reporter menu"))
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
key: 'testing/item/context',
|
|
328
328
|
id: MenuId.TestItem,
|
|
329
|
-
description: ( localize(
|
|
329
|
+
description: ( localize(12775, "The contributed test item menu")),
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
key: 'testing/item/gutter',
|
|
333
333
|
id: MenuId.TestItemGutter,
|
|
334
|
-
description: ( localize(
|
|
334
|
+
description: ( localize(12776, "The menu for a gutter decoration for a test item")),
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
337
|
key: 'testing/profiles/context',
|
|
338
338
|
id: MenuId.TestProfilesContext,
|
|
339
|
-
description: ( localize(
|
|
339
|
+
description: ( localize(12777, "The menu for configuring testing profiles.")),
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
key: 'testing/item/result',
|
|
343
343
|
id: MenuId.TestPeekElement,
|
|
344
|
-
description: ( localize(
|
|
344
|
+
description: ( localize(12778, "The menu for an item in the Test Results view or peek.")),
|
|
345
345
|
},
|
|
346
346
|
{
|
|
347
347
|
key: 'testing/message/context',
|
|
348
348
|
id: MenuId.TestMessageContext,
|
|
349
349
|
description: ( localize(
|
|
350
|
-
|
|
350
|
+
12779,
|
|
351
351
|
"A prominent button overlaying editor content where the message is displayed"
|
|
352
352
|
)),
|
|
353
353
|
},
|
|
354
354
|
{
|
|
355
355
|
key: 'testing/message/content',
|
|
356
356
|
id: MenuId.TestMessageContent,
|
|
357
|
-
description: ( localize(
|
|
357
|
+
description: ( localize(12780, "Context menu for the message in the results tree")),
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
360
|
key: 'extension/context',
|
|
361
361
|
id: MenuId.ExtensionContext,
|
|
362
|
-
description: ( localize(
|
|
362
|
+
description: ( localize(12781, "The extension context menu"))
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
365
|
key: 'timeline/title',
|
|
366
366
|
id: MenuId.TimelineTitle,
|
|
367
|
-
description: ( localize(
|
|
367
|
+
description: ( localize(12782, "The Timeline view title menu"))
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
370
|
key: 'timeline/item/context',
|
|
371
371
|
id: MenuId.TimelineItemContext,
|
|
372
|
-
description: ( localize(
|
|
372
|
+
description: ( localize(12783, "The Timeline view item context menu"))
|
|
373
373
|
},
|
|
374
374
|
{
|
|
375
375
|
key: 'ports/item/context',
|
|
376
376
|
id: MenuId.TunnelContext,
|
|
377
|
-
description: ( localize(
|
|
377
|
+
description: ( localize(12784, "The Ports view item context menu"))
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
380
|
key: 'ports/item/origin/inline',
|
|
381
381
|
id: MenuId.TunnelOriginInline,
|
|
382
|
-
description: ( localize(
|
|
382
|
+
description: ( localize(12785, "The Ports view item origin inline menu"))
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
385
|
key: 'ports/item/port/inline',
|
|
386
386
|
id: MenuId.TunnelPortInline,
|
|
387
|
-
description: ( localize(
|
|
387
|
+
description: ( localize(12786, "The Ports view item port inline menu"))
|
|
388
388
|
},
|
|
389
389
|
{
|
|
390
390
|
key: 'file/newFile',
|
|
391
391
|
id: MenuId.NewFile,
|
|
392
392
|
description: ( localize(
|
|
393
|
-
|
|
393
|
+
12787,
|
|
394
394
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
395
395
|
)),
|
|
396
396
|
supportsSubmenus: false,
|
|
@@ -398,82 +398,82 @@ const apiMenus = [
|
|
|
398
398
|
{
|
|
399
399
|
key: 'webview/context',
|
|
400
400
|
id: MenuId.WebviewContext,
|
|
401
|
-
description: ( localize(
|
|
401
|
+
description: ( localize(12788, "The webview context menu"))
|
|
402
402
|
},
|
|
403
403
|
{
|
|
404
404
|
key: 'file/share',
|
|
405
405
|
id: MenuId.MenubarShare,
|
|
406
|
-
description: ( localize(
|
|
406
|
+
description: ( localize(12789, "Share submenu shown in the top level File menu.")),
|
|
407
407
|
proposed: 'contribShareMenu'
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
410
|
key: 'editor/inlineCompletions/actions',
|
|
411
411
|
id: MenuId.InlineCompletionsActions,
|
|
412
|
-
description: ( localize(
|
|
412
|
+
description: ( localize(12790, "The actions shown when hovering on an inline completion")),
|
|
413
413
|
supportsSubmenus: false,
|
|
414
414
|
proposed: 'inlineCompletionsAdditions'
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
417
|
key: 'editor/content',
|
|
418
418
|
id: MenuId.EditorContent,
|
|
419
|
-
description: ( localize(
|
|
419
|
+
description: ( localize(12791, "The prominent button in an editor, overlays its content")),
|
|
420
420
|
proposed: 'contribEditorContentMenu'
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
key: 'editor/lineNumber/context',
|
|
424
424
|
id: MenuId.EditorLineNumberContext,
|
|
425
|
-
description: ( localize(
|
|
425
|
+
description: ( localize(12792, "The contributed editor line number context menu"))
|
|
426
426
|
},
|
|
427
427
|
{
|
|
428
428
|
key: 'mergeEditor/result/title',
|
|
429
429
|
id: MenuId.MergeInputResultToolbar,
|
|
430
|
-
description: ( localize(
|
|
430
|
+
description: ( localize(12793, "The result toolbar of the merge editor")),
|
|
431
431
|
proposed: 'contribMergeEditorMenus'
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
434
|
key: 'multiDiffEditor/resource/title',
|
|
435
435
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
436
|
-
description: ( localize(
|
|
436
|
+
description: ( localize(12794, "The resource toolbar in the multi diff editor")),
|
|
437
437
|
proposed: 'contribMultiDiffEditorMenus'
|
|
438
438
|
},
|
|
439
439
|
{
|
|
440
440
|
key: 'diffEditor/gutter/hunk',
|
|
441
441
|
id: MenuId.DiffEditorHunkToolbar,
|
|
442
|
-
description: ( localize(
|
|
442
|
+
description: ( localize(12795, "The gutter toolbar in the diff editor")),
|
|
443
443
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
446
|
key: 'diffEditor/gutter/selection',
|
|
447
447
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
448
|
-
description: ( localize(
|
|
448
|
+
description: ( localize(12795, "The gutter toolbar in the diff editor")),
|
|
449
449
|
proposed: 'contribDiffEditorGutterToolBarMenus'
|
|
450
450
|
},
|
|
451
451
|
{
|
|
452
452
|
key: 'searchPanel/aiResults/commands',
|
|
453
453
|
id: MenuId.SearchActionMenu,
|
|
454
454
|
description: ( localize(
|
|
455
|
-
|
|
455
|
+
12796,
|
|
456
456
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
457
457
|
)),
|
|
458
458
|
},
|
|
459
459
|
{
|
|
460
460
|
key: 'editor/context/chat',
|
|
461
461
|
id: MenuId.ChatTextEditorMenu,
|
|
462
|
-
description: ( localize(
|
|
462
|
+
description: ( localize(12797, "The Chat submenu in the text editor context menu.")),
|
|
463
463
|
supportsSubmenus: false,
|
|
464
464
|
proposed: 'chatParticipantPrivate'
|
|
465
465
|
},
|
|
466
466
|
{
|
|
467
467
|
key: 'terminal/context/chat',
|
|
468
468
|
id: MenuId.ChatTerminalMenu,
|
|
469
|
-
description: ( localize(
|
|
469
|
+
description: ( localize(12798, "The Chat submenu in the terminal context menu.")),
|
|
470
470
|
supportsSubmenus: false,
|
|
471
471
|
proposed: 'chatParticipantPrivate'
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
key: 'chat/chatSessions',
|
|
475
475
|
id: MenuId.ChatSessionsMenu,
|
|
476
|
-
description: ( localize(
|
|
476
|
+
description: ( localize(12799, "The Chat Sessions menu.")),
|
|
477
477
|
supportsSubmenus: false,
|
|
478
478
|
proposed: 'chatSessionsProvider'
|
|
479
479
|
},
|
|
@@ -487,23 +487,23 @@ var schema;
|
|
|
487
487
|
function isValidMenuItem(item, collector) {
|
|
488
488
|
if (typeof item.command !== 'string') {
|
|
489
489
|
collector.error(( localize(
|
|
490
|
-
|
|
490
|
+
12800,
|
|
491
491
|
"property `{0}` is mandatory and must be of type `string`",
|
|
492
492
|
'command'
|
|
493
493
|
)));
|
|
494
494
|
return false;
|
|
495
495
|
}
|
|
496
496
|
if (item.alt && typeof item.alt !== 'string') {
|
|
497
|
-
collector.error(( localize(
|
|
497
|
+
collector.error(( localize(12801, "property `{0}` can be omitted or must be of type `string`", 'alt')));
|
|
498
498
|
return false;
|
|
499
499
|
}
|
|
500
500
|
if (item.when && typeof item.when !== 'string') {
|
|
501
|
-
collector.error(( localize(
|
|
501
|
+
collector.error(( localize(12801, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
502
502
|
return false;
|
|
503
503
|
}
|
|
504
504
|
if (item.group && typeof item.group !== 'string') {
|
|
505
505
|
collector.error(( localize(
|
|
506
|
-
|
|
506
|
+
12801,
|
|
507
507
|
"property `{0}` can be omitted or must be of type `string`",
|
|
508
508
|
'group'
|
|
509
509
|
)));
|
|
@@ -515,19 +515,19 @@ var schema;
|
|
|
515
515
|
function isValidSubmenuItem(item, collector) {
|
|
516
516
|
if (typeof item.submenu !== 'string') {
|
|
517
517
|
collector.error(( localize(
|
|
518
|
-
|
|
518
|
+
12800,
|
|
519
519
|
"property `{0}` is mandatory and must be of type `string`",
|
|
520
520
|
'submenu'
|
|
521
521
|
)));
|
|
522
522
|
return false;
|
|
523
523
|
}
|
|
524
524
|
if (item.when && typeof item.when !== 'string') {
|
|
525
|
-
collector.error(( localize(
|
|
525
|
+
collector.error(( localize(12801, "property `{0}` can be omitted or must be of type `string`", 'when')));
|
|
526
526
|
return false;
|
|
527
527
|
}
|
|
528
528
|
if (item.group && typeof item.group !== 'string') {
|
|
529
529
|
collector.error(( localize(
|
|
530
|
-
|
|
530
|
+
12801,
|
|
531
531
|
"property `{0}` can be omitted or must be of type `string`",
|
|
532
532
|
'group'
|
|
533
533
|
)));
|
|
@@ -538,7 +538,7 @@ var schema;
|
|
|
538
538
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
539
539
|
function isValidItems(items, collector) {
|
|
540
540
|
if (!Array.isArray(items)) {
|
|
541
|
-
collector.error(( localize(
|
|
541
|
+
collector.error(( localize(12802, "submenu items must be an array")));
|
|
542
542
|
return false;
|
|
543
543
|
}
|
|
544
544
|
for (const item of items) {
|
|
@@ -558,15 +558,15 @@ var schema;
|
|
|
558
558
|
schema.isValidItems = isValidItems;
|
|
559
559
|
function isValidSubmenu(submenu, collector) {
|
|
560
560
|
if (typeof submenu !== 'object') {
|
|
561
|
-
collector.error(( localize(
|
|
561
|
+
collector.error(( localize(12803, "submenu items must be an object")));
|
|
562
562
|
return false;
|
|
563
563
|
}
|
|
564
564
|
if (typeof submenu.id !== 'string') {
|
|
565
|
-
collector.error(( localize(
|
|
565
|
+
collector.error(( localize(12800, "property `{0}` is mandatory and must be of type `string`", 'id')));
|
|
566
566
|
return false;
|
|
567
567
|
}
|
|
568
568
|
if (typeof submenu.label !== 'string') {
|
|
569
|
-
collector.error(( localize(
|
|
569
|
+
collector.error(( localize(12800, "property `{0}` is mandatory and must be of type `string`", 'label')));
|
|
570
570
|
return false;
|
|
571
571
|
}
|
|
572
572
|
return true;
|
|
@@ -578,24 +578,24 @@ var schema;
|
|
|
578
578
|
properties: {
|
|
579
579
|
command: {
|
|
580
580
|
description: ( localize(
|
|
581
|
-
|
|
581
|
+
12804,
|
|
582
582
|
'Identifier of the command to execute. The command must be declared in the \'commands\'-section'
|
|
583
583
|
)),
|
|
584
584
|
type: 'string'
|
|
585
585
|
},
|
|
586
586
|
alt: {
|
|
587
587
|
description: ( localize(
|
|
588
|
-
|
|
588
|
+
12805,
|
|
589
589
|
'Identifier of an alternative command to execute. The command must be declared in the \'commands\'-section'
|
|
590
590
|
)),
|
|
591
591
|
type: 'string'
|
|
592
592
|
},
|
|
593
593
|
when: {
|
|
594
|
-
description: ( localize(
|
|
594
|
+
description: ( localize(12806, 'Condition which must be true to show this item')),
|
|
595
595
|
type: 'string'
|
|
596
596
|
},
|
|
597
597
|
group: {
|
|
598
|
-
description: ( localize(
|
|
598
|
+
description: ( localize(12807, 'Group into which this item belongs')),
|
|
599
599
|
type: 'string'
|
|
600
600
|
}
|
|
601
601
|
}
|
|
@@ -605,15 +605,15 @@ var schema;
|
|
|
605
605
|
required: ['submenu'],
|
|
606
606
|
properties: {
|
|
607
607
|
submenu: {
|
|
608
|
-
description: ( localize(
|
|
608
|
+
description: ( localize(12808, 'Identifier of the submenu to display in this item.')),
|
|
609
609
|
type: 'string'
|
|
610
610
|
},
|
|
611
611
|
when: {
|
|
612
|
-
description: ( localize(
|
|
612
|
+
description: ( localize(12806, 'Condition which must be true to show this item')),
|
|
613
613
|
type: 'string'
|
|
614
614
|
},
|
|
615
615
|
group: {
|
|
616
|
-
description: ( localize(
|
|
616
|
+
description: ( localize(12807, 'Group into which this item belongs')),
|
|
617
617
|
type: 'string'
|
|
618
618
|
}
|
|
619
619
|
}
|
|
@@ -623,16 +623,16 @@ var schema;
|
|
|
623
623
|
required: ['id', 'label'],
|
|
624
624
|
properties: {
|
|
625
625
|
id: {
|
|
626
|
-
description: ( localize(
|
|
626
|
+
description: ( localize(12809, 'Identifier of the menu to display as a submenu.')),
|
|
627
627
|
type: 'string'
|
|
628
628
|
},
|
|
629
629
|
label: {
|
|
630
|
-
description: ( localize(
|
|
630
|
+
description: ( localize(12810, 'The label of the menu item which leads to this submenu.')),
|
|
631
631
|
type: 'string'
|
|
632
632
|
},
|
|
633
633
|
icon: {
|
|
634
634
|
description: ( localize(
|
|
635
|
-
|
|
635
|
+
12811,
|
|
636
636
|
'(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)`'
|
|
637
637
|
)),
|
|
638
638
|
anyOf: [{
|
|
@@ -642,11 +642,11 @@ var schema;
|
|
|
642
642
|
type: 'object',
|
|
643
643
|
properties: {
|
|
644
644
|
light: {
|
|
645
|
-
description: ( localize(
|
|
645
|
+
description: ( localize(12812, 'Icon path when a light theme is used')),
|
|
646
646
|
type: 'string'
|
|
647
647
|
},
|
|
648
648
|
dark: {
|
|
649
|
-
description: ( localize(
|
|
649
|
+
description: ( localize(12813, 'Icon path when a dark theme is used')),
|
|
650
650
|
type: 'string'
|
|
651
651
|
}
|
|
652
652
|
}
|
|
@@ -655,11 +655,11 @@ var schema;
|
|
|
655
655
|
}
|
|
656
656
|
};
|
|
657
657
|
schema.menusContribution = {
|
|
658
|
-
description: ( localize(
|
|
658
|
+
description: ( localize(12814, "Contributes menu items to the editor")),
|
|
659
659
|
type: 'object',
|
|
660
660
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
661
661
|
markdownDescription: menu.proposed ? ( localize(
|
|
662
|
-
|
|
662
|
+
12815,
|
|
663
663
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
664
664
|
menu.proposed,
|
|
665
665
|
menu.description
|
|
@@ -674,18 +674,18 @@ var schema;
|
|
|
674
674
|
}
|
|
675
675
|
};
|
|
676
676
|
schema.submenusContribution = {
|
|
677
|
-
description: ( localize(
|
|
677
|
+
description: ( localize(12816, "Contributes submenu items to the editor")),
|
|
678
678
|
type: 'array',
|
|
679
679
|
items: submenu
|
|
680
680
|
};
|
|
681
681
|
function isValidCommand(command, collector) {
|
|
682
682
|
if (!command) {
|
|
683
|
-
collector.error(( localize(
|
|
683
|
+
collector.error(( localize(12817, "expected non-empty value.")));
|
|
684
684
|
return false;
|
|
685
685
|
}
|
|
686
686
|
if (isFalsyOrWhitespace(command.command)) {
|
|
687
687
|
collector.error(( localize(
|
|
688
|
-
|
|
688
|
+
12800,
|
|
689
689
|
"property `{0}` is mandatory and must be of type `string`",
|
|
690
690
|
'command'
|
|
691
691
|
)));
|
|
@@ -699,7 +699,7 @@ var schema;
|
|
|
699
699
|
}
|
|
700
700
|
if (command.enablement && typeof command.enablement !== 'string') {
|
|
701
701
|
collector.error(( localize(
|
|
702
|
-
|
|
702
|
+
12801,
|
|
703
703
|
"property `{0}` can be omitted or must be of type `string`",
|
|
704
704
|
'precondition'
|
|
705
705
|
)));
|
|
@@ -725,7 +725,7 @@ var schema;
|
|
|
725
725
|
return true;
|
|
726
726
|
}
|
|
727
727
|
collector.error(( localize(
|
|
728
|
-
|
|
728
|
+
12818,
|
|
729
729
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
730
730
|
)));
|
|
731
731
|
return false;
|
|
@@ -733,7 +733,7 @@ var schema;
|
|
|
733
733
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
734
734
|
if (typeof localized === 'undefined') {
|
|
735
735
|
collector.error(( localize(
|
|
736
|
-
|
|
736
|
+
12819,
|
|
737
737
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
738
738
|
propertyName
|
|
739
739
|
)));
|
|
@@ -741,7 +741,7 @@ var schema;
|
|
|
741
741
|
}
|
|
742
742
|
else if (typeof localized === 'string' && isFalsyOrWhitespace(localized)) {
|
|
743
743
|
collector.error(( localize(
|
|
744
|
-
|
|
744
|
+
12800,
|
|
745
745
|
"property `{0}` is mandatory and must be of type `string`",
|
|
746
746
|
propertyName
|
|
747
747
|
)));
|
|
@@ -749,7 +749,7 @@ var schema;
|
|
|
749
749
|
}
|
|
750
750
|
else if (typeof localized !== 'string' && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
751
751
|
collector.error(( localize(
|
|
752
|
-
|
|
752
|
+
12820,
|
|
753
753
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
754
754
|
`${propertyName}.value`,
|
|
755
755
|
`${propertyName}.original`
|
|
@@ -763,37 +763,37 @@ var schema;
|
|
|
763
763
|
required: ['command', 'title'],
|
|
764
764
|
properties: {
|
|
765
765
|
command: {
|
|
766
|
-
description: ( localize(
|
|
766
|
+
description: ( localize(12821, 'Identifier of the command to execute')),
|
|
767
767
|
type: 'string'
|
|
768
768
|
},
|
|
769
769
|
title: {
|
|
770
|
-
description: ( localize(
|
|
770
|
+
description: ( localize(12822, 'Title by which the command is represented in the UI')),
|
|
771
771
|
type: 'string'
|
|
772
772
|
},
|
|
773
773
|
shortTitle: {
|
|
774
774
|
markdownDescription: ( localize(
|
|
775
|
-
|
|
775
|
+
12823,
|
|
776
776
|
'(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.'
|
|
777
777
|
)),
|
|
778
778
|
type: 'string'
|
|
779
779
|
},
|
|
780
780
|
category: {
|
|
781
781
|
description: ( localize(
|
|
782
|
-
|
|
782
|
+
12824,
|
|
783
783
|
'(Optional) Category string by which the command is grouped in the UI'
|
|
784
784
|
)),
|
|
785
785
|
type: 'string'
|
|
786
786
|
},
|
|
787
787
|
enablement: {
|
|
788
788
|
description: ( localize(
|
|
789
|
-
|
|
789
|
+
12825,
|
|
790
790
|
'(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.'
|
|
791
791
|
)),
|
|
792
792
|
type: 'string'
|
|
793
793
|
},
|
|
794
794
|
icon: {
|
|
795
795
|
description: ( localize(
|
|
796
|
-
|
|
796
|
+
12826,
|
|
797
797
|
'(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)`'
|
|
798
798
|
)),
|
|
799
799
|
anyOf: [{
|
|
@@ -803,11 +803,11 @@ var schema;
|
|
|
803
803
|
type: 'object',
|
|
804
804
|
properties: {
|
|
805
805
|
light: {
|
|
806
|
-
description: ( localize(
|
|
806
|
+
description: ( localize(12827, 'Icon path when a light theme is used')),
|
|
807
807
|
type: 'string'
|
|
808
808
|
},
|
|
809
809
|
dark: {
|
|
810
|
-
description: ( localize(
|
|
810
|
+
description: ( localize(12828, 'Icon path when a dark theme is used')),
|
|
811
811
|
type: 'string'
|
|
812
812
|
}
|
|
813
813
|
}
|
|
@@ -816,7 +816,7 @@ var schema;
|
|
|
816
816
|
}
|
|
817
817
|
};
|
|
818
818
|
schema.commandsContribution = {
|
|
819
|
-
description: ( localize(
|
|
819
|
+
description: ( localize(12829, "Contributes commands to the command palette.")),
|
|
820
820
|
oneOf: [
|
|
821
821
|
commandType,
|
|
822
822
|
{
|
|
@@ -860,7 +860,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
860
860
|
if (existingCmd) {
|
|
861
861
|
if (existingCmd.source) {
|
|
862
862
|
extension.collector.info(( localize(
|
|
863
|
-
|
|
863
|
+
12830,
|
|
864
864
|
"Command `{0}` already registered by {1} ({2})",
|
|
865
865
|
userFriendlyCommand.command,
|
|
866
866
|
existingCmd.source.title,
|
|
@@ -868,7 +868,7 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
868
868
|
)));
|
|
869
869
|
}
|
|
870
870
|
else {
|
|
871
|
-
extension.collector.info(( localize(
|
|
871
|
+
extension.collector.info(( localize(12831, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -909,19 +909,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
909
909
|
continue;
|
|
910
910
|
}
|
|
911
911
|
if (!submenuInfo.id) {
|
|
912
|
-
collector.warn(( localize(
|
|
912
|
+
collector.warn(( localize(12832, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
913
913
|
continue;
|
|
914
914
|
}
|
|
915
915
|
if (( _submenus.has(submenuInfo.id))) {
|
|
916
916
|
collector.info(( localize(
|
|
917
|
-
|
|
917
|
+
12833,
|
|
918
918
|
"The `{0}` submenu was already previously registered.",
|
|
919
919
|
submenuInfo.id
|
|
920
920
|
)));
|
|
921
921
|
continue;
|
|
922
922
|
}
|
|
923
923
|
if (!submenuInfo.label) {
|
|
924
|
-
collector.warn(( localize(
|
|
924
|
+
collector.warn(( localize(12834, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
925
925
|
continue;
|
|
926
926
|
}
|
|
927
927
|
let absoluteIcon;
|
|
@@ -978,7 +978,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
978
978
|
}
|
|
979
979
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
980
980
|
collector.error(( localize(
|
|
981
|
-
|
|
981
|
+
12835,
|
|
982
982
|
"{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}",
|
|
983
983
|
entry[0],
|
|
984
984
|
menu.proposed,
|
|
@@ -993,7 +993,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
993
993
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
994
994
|
if (!command) {
|
|
995
995
|
collector.error(( localize(
|
|
996
|
-
|
|
996
|
+
12836,
|
|
997
997
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
998
998
|
menuItem.command
|
|
999
999
|
)));
|
|
@@ -1001,20 +1001,20 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
if (menuItem.alt && !alt) {
|
|
1003
1003
|
collector.warn(( localize(
|
|
1004
|
-
|
|
1004
|
+
12837,
|
|
1005
1005
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
1006
1006
|
menuItem.alt
|
|
1007
1007
|
)));
|
|
1008
1008
|
}
|
|
1009
1009
|
if (menuItem.command === menuItem.alt) {
|
|
1010
|
-
collector.info(( localize(
|
|
1010
|
+
collector.info(( localize(12838, "Menu item references the same command as default and alt-command")));
|
|
1011
1011
|
}
|
|
1012
1012
|
item = { command, alt, group: undefined, order: undefined, when: undefined };
|
|
1013
1013
|
}
|
|
1014
1014
|
else {
|
|
1015
1015
|
if (menu.supportsSubmenus === false) {
|
|
1016
1016
|
collector.error(( localize(
|
|
1017
|
-
|
|
1017
|
+
12839,
|
|
1018
1018
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1019
1019
|
)));
|
|
1020
1020
|
continue;
|
|
@@ -1022,7 +1022,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1022
1022
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1023
1023
|
if (!submenu) {
|
|
1024
1024
|
collector.error(( localize(
|
|
1025
|
-
|
|
1025
|
+
12840,
|
|
1026
1026
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1027
1027
|
menuItem.submenu
|
|
1028
1028
|
)));
|
|
@@ -1035,7 +1035,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1037
1037
|
collector.warn(( localize(
|
|
1038
|
-
|
|
1038
|
+
12841,
|
|
1039
1039
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1040
1040
|
menuItem.submenu,
|
|
1041
1041
|
entry[0]
|
|
@@ -1057,7 +1057,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes('viewContainer == workbench.view.debug')) {
|
|
1059
1059
|
collector.error(( localize(
|
|
1060
|
-
|
|
1060
|
+
12842,
|
|
1061
1061
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1062
1062
|
'`viewContainer/title`',
|
|
1063
1063
|
'`viewContainer == workbench.view.debug`',
|
|
@@ -1144,10 +1144,10 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1144
1144
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
1145
1145
|
}
|
|
1146
1146
|
const headers = [
|
|
1147
|
-
( localize(
|
|
1148
|
-
( localize(
|
|
1149
|
-
( localize(
|
|
1150
|
-
( localize(
|
|
1147
|
+
( localize(12843, "ID")),
|
|
1148
|
+
( localize(12844, "Title")),
|
|
1149
|
+
( localize(12845, "Keyboard Shortcuts")),
|
|
1150
|
+
( localize(12846, "Menu Contexts"))
|
|
1151
1151
|
];
|
|
1152
1152
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id))
|
|
1153
1153
|
.map(command => {
|
|
@@ -1187,7 +1187,7 @@ CommandsTableRenderer = ( __decorate([
|
|
|
1187
1187
|
], CommandsTableRenderer));
|
|
1188
1188
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1189
1189
|
id: 'commands',
|
|
1190
|
-
label: ( localize(
|
|
1190
|
+
label: ( localize(12847, "Commands")),
|
|
1191
1191
|
access: {
|
|
1192
1192
|
canToggle: false,
|
|
1193
1193
|
},
|
|
@@ -50,39 +50,39 @@ import { getAllUnboundCommands } from '@codingame/monaco-vscode-d609a7d3-bf87-55
|
|
|
50
50
|
var WorkbenchKeybindingService_1;
|
|
51
51
|
function isValidContributedKeyBinding(keyBinding, rejects) {
|
|
52
52
|
if (!keyBinding) {
|
|
53
|
-
rejects.push(( localize(
|
|
53
|
+
rejects.push(( localize(13238, "expected non-empty value.")));
|
|
54
54
|
return false;
|
|
55
55
|
}
|
|
56
56
|
if (typeof keyBinding.command !== 'string') {
|
|
57
57
|
rejects.push(( localize(
|
|
58
|
-
|
|
58
|
+
13239,
|
|
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(13240, "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(13240, "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(13240, "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
|
+
13240,
|
|
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(13240, "property `{0}` can be omitted or must be of type `string`", 'win')));
|
|
86
86
|
return false;
|
|
87
87
|
}
|
|
88
88
|
return true;
|
|
@@ -92,33 +92,33 @@ const keybindingType = {
|
|
|
92
92
|
default: { command: '', key: '' },
|
|
93
93
|
properties: {
|
|
94
94
|
command: {
|
|
95
|
-
description: ( localize(
|
|
95
|
+
description: ( localize(13241, 'Identifier of the command to run when keybinding is triggered.')),
|
|
96
96
|
type: 'string'
|
|
97
97
|
},
|
|
98
98
|
args: {
|
|
99
|
-
description: ( localize(
|
|
99
|
+
description: ( localize(13242, "Arguments to pass to the command to execute."))
|
|
100
100
|
},
|
|
101
101
|
key: {
|
|
102
102
|
description: ( localize(
|
|
103
|
-
|
|
103
|
+
13243,
|
|
104
104
|
'Key or key sequence (separate keys with plus-sign and sequences with space, e.g. Ctrl+O and Ctrl+L L for a chord).'
|
|
105
105
|
)),
|
|
106
106
|
type: 'string'
|
|
107
107
|
},
|
|
108
108
|
mac: {
|
|
109
|
-
description: ( localize(
|
|
109
|
+
description: ( localize(13244, 'Mac specific key or key sequence.')),
|
|
110
110
|
type: 'string'
|
|
111
111
|
},
|
|
112
112
|
linux: {
|
|
113
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(13245, 'Linux specific key or key sequence.')),
|
|
114
114
|
type: 'string'
|
|
115
115
|
},
|
|
116
116
|
win: {
|
|
117
|
-
description: ( localize(
|
|
117
|
+
description: ( localize(13246, 'Windows specific key or key sequence.')),
|
|
118
118
|
type: 'string'
|
|
119
119
|
},
|
|
120
120
|
when: {
|
|
121
|
-
description: ( localize(
|
|
121
|
+
description: ( localize(13247, 'Condition when the key is active.')),
|
|
122
122
|
type: 'string'
|
|
123
123
|
},
|
|
124
124
|
}
|
|
@@ -127,7 +127,7 @@ const keybindingsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
127
127
|
extensionPoint: 'keybindings',
|
|
128
128
|
deps: [commandsExtensionPoint],
|
|
129
129
|
jsonSchema: {
|
|
130
|
-
description: ( localize(
|
|
130
|
+
description: ( localize(13248, "Contributes keybindings.")),
|
|
131
131
|
oneOf: [
|
|
132
132
|
keybindingType,
|
|
133
133
|
{
|
|
@@ -515,7 +515,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
515
515
|
}
|
|
516
516
|
if (rejects.length > 0) {
|
|
517
517
|
collector.error(( localize(
|
|
518
|
-
|
|
518
|
+
13249,
|
|
519
519
|
"Invalid `contributes.{0}`: {1}",
|
|
520
520
|
keybindingsExtPoint.name,
|
|
521
521
|
rejects.join('\n')
|
|
@@ -603,7 +603,7 @@ let WorkbenchKeybindingService = WorkbenchKeybindingService_1 = class WorkbenchK
|
|
|
603
603
|
static _getAllCommandsAsComment(boundCommands) {
|
|
604
604
|
const unboundCommands = getAllUnboundCommands(boundCommands);
|
|
605
605
|
const pretty = unboundCommands.sort().join('\n// - ');
|
|
606
|
-
return '// ' + ( localize(
|
|
606
|
+
return '// ' + ( localize(13250, "Here are other available commands: ")) + '\n// - ' + pretty;
|
|
607
607
|
}
|
|
608
608
|
mightProducePrintableCharacter(event) {
|
|
609
609
|
if (event.ctrlKey || event.metaKey || event.altKey) {
|
|
@@ -728,7 +728,7 @@ class KeybindingsJsonSchema {
|
|
|
728
728
|
this.schema = {
|
|
729
729
|
id: KeybindingsJsonSchema.schemaId,
|
|
730
730
|
type: 'array',
|
|
731
|
-
title: ( localize(
|
|
731
|
+
title: ( localize(13251, "Keybindings configuration")),
|
|
732
732
|
allowTrailingCommas: true,
|
|
733
733
|
allowComments: true,
|
|
734
734
|
definitions: {
|
|
@@ -752,7 +752,7 @@ class KeybindingsJsonSchema {
|
|
|
752
752
|
'type': 'string',
|
|
753
753
|
'enum': this.commandsEnum,
|
|
754
754
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
755
|
-
'description': ( localize(
|
|
755
|
+
'description': ( localize(13252, "Name of the command to execute")),
|
|
756
756
|
},
|
|
757
757
|
'commandType': {
|
|
758
758
|
'anyOf': [
|
|
@@ -763,7 +763,7 @@ class KeybindingsJsonSchema {
|
|
|
763
763
|
'type': 'string',
|
|
764
764
|
'enum': this.removalCommandsEnum,
|
|
765
765
|
'enumDescriptions': this.commandsEnumDescriptions,
|
|
766
|
-
'description': ( localize(
|
|
766
|
+
'description': ( localize(13253, "Name of the command to remove keyboard shortcut for")),
|
|
767
767
|
},
|
|
768
768
|
{
|
|
769
769
|
'type': 'string'
|
|
@@ -781,7 +781,7 @@ class KeybindingsJsonSchema {
|
|
|
781
781
|
'properties': {
|
|
782
782
|
'key': {
|
|
783
783
|
'type': 'string',
|
|
784
|
-
'description': ( localize(
|
|
784
|
+
'description': ( localize(13254, "Key or key sequence (separated by space)")),
|
|
785
785
|
},
|
|
786
786
|
'command': {
|
|
787
787
|
'anyOf': [
|
|
@@ -794,7 +794,7 @@ class KeybindingsJsonSchema {
|
|
|
794
794
|
'type': 'array'
|
|
795
795
|
},
|
|
796
796
|
'errorMessage': ( localize(
|
|
797
|
-
|
|
797
|
+
13255,
|
|
798
798
|
"Incorrect type. Expected \"{0}\". The field 'command' does not support running multiple commands. Use command 'runCommands' to pass it multiple commands to run.",
|
|
799
799
|
'string'
|
|
800
800
|
))
|
|
@@ -810,10 +810,10 @@ class KeybindingsJsonSchema {
|
|
|
810
810
|
},
|
|
811
811
|
'when': {
|
|
812
812
|
'type': 'string',
|
|
813
|
-
'description': ( localize(
|
|
813
|
+
'description': ( localize(13256, "Condition when the key is active."))
|
|
814
814
|
},
|
|
815
815
|
'args': {
|
|
816
|
-
'description': ( localize(
|
|
816
|
+
'description': ( localize(13257, "Arguments to pass to the command to execute."))
|
|
817
817
|
}
|
|
818
818
|
},
|
|
819
819
|
'$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(13258, "Keyboard")),
|
|
487
487
|
'properties': {
|
|
488
488
|
'keyboard.layout': {
|
|
489
489
|
'type': 'string',
|
|
490
490
|
'default': 'autodetect',
|
|
491
|
-
'description': ( localize(
|
|
491
|
+
'description': ( localize(13259, "Control the keyboard layout used in web."))
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
};
|