@codingame/monaco-vscode-keybindings-service-override 29.1.0 → 30.0.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/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 +162 -146
- 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": "
|
|
3
|
+
"version": "30.0.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": "
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "30.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "30.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"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(7865, "Run Commands")),
|
|
14
14
|
f1: false,
|
|
15
15
|
metadata: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(7866, "Run several commands")),
|
|
17
17
|
args: [{
|
|
18
18
|
name: "args",
|
|
19
19
|
schema: {
|
|
@@ -22,7 +22,7 @@ class RunCommands extends Action2 {
|
|
|
22
22
|
properties: {
|
|
23
23
|
commands: {
|
|
24
24
|
type: "array",
|
|
25
|
-
description: ( localize(
|
|
25
|
+
description: ( localize(7867, "Commands to run")),
|
|
26
26
|
items: {
|
|
27
27
|
anyOf: [{
|
|
28
28
|
$ref: "vscode://schemas/keybindings#/definitions/commandNames"
|
|
@@ -54,14 +54,14 @@ class RunCommands extends Action2 {
|
|
|
54
54
|
const notificationService = accessor.get(INotificationService);
|
|
55
55
|
if (!this._isCommandArgs(args)) {
|
|
56
56
|
notificationService.error(( localize(
|
|
57
|
-
|
|
57
|
+
7868,
|
|
58
58
|
"'runCommands' has received an argument with incorrect type. Please, review the argument passed to the command."
|
|
59
59
|
)));
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
if (args.commands.length === 0) {
|
|
63
63
|
notificationService.warn(( localize(
|
|
64
|
-
|
|
64
|
+
7869,
|
|
65
65
|
"'runCommands' has not received commands to run. Did you forget to pass commands in the 'runCommands' argument?"
|
|
66
66
|
)));
|
|
67
67
|
return;
|
|
@@ -15,7 +15,7 @@ class ToggleKeybindingsLogAction extends Action2 {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: "workbench.action.toggleKeybindingsLog",
|
|
18
|
-
title: ( localize2(
|
|
18
|
+
title: ( localize2(10138, "Toggle Keyboard Shortcuts Troubleshooting")),
|
|
19
19
|
category: Categories.Developer,
|
|
20
20
|
f1: true
|
|
21
21
|
});
|
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
|
+
11634,
|
|
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
|
+
11635,
|
|
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(11636, "**{0}** for your current keyboard layout.", uiLabel))));
|
|
194
194
|
}
|
|
195
195
|
className = "keybindingInfo";
|
|
196
196
|
overviewRulerColor = themeColorFromId(overviewRulerInfo);
|
|
@@ -20,194 +20,194 @@ 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(15658, "The Command Palette")),
|
|
24
24
|
supportsSubmenus: false
|
|
25
25
|
}, {
|
|
26
26
|
key: "touchBar",
|
|
27
27
|
id: MenuId.TouchBarContext,
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(15659, "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(15660, "The editor title menu"))
|
|
34
34
|
}, {
|
|
35
35
|
key: "modalEditor/editorTitle",
|
|
36
36
|
id: MenuId.ModalEditorEditorTitle,
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(15661, "The editor title menu in the modal editor"))
|
|
38
38
|
}, {
|
|
39
39
|
key: "editor/title/run",
|
|
40
40
|
id: MenuId.EditorTitleRun,
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(15662, "Run submenu inside the editor title menu"))
|
|
42
42
|
}, {
|
|
43
43
|
key: "editor/context",
|
|
44
44
|
id: MenuId.EditorContext,
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(15663, "The editor context menu"))
|
|
46
46
|
}, {
|
|
47
47
|
key: "editor/context/copy",
|
|
48
48
|
id: MenuId.EditorContextCopy,
|
|
49
|
-
description: ( localize(
|
|
49
|
+
description: ( localize(15664, "'Copy as' submenu in the editor context menu"))
|
|
50
50
|
}, {
|
|
51
51
|
key: "editor/context/share",
|
|
52
52
|
id: MenuId.EditorContextShare,
|
|
53
|
-
description: ( localize(
|
|
53
|
+
description: ( localize(15665, "'Share' submenu in the editor context menu")),
|
|
54
54
|
proposed: "contribShareMenu"
|
|
55
55
|
}, {
|
|
56
56
|
key: "explorer/context",
|
|
57
57
|
id: MenuId.ExplorerContext,
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(15666, "The file explorer context menu"))
|
|
59
59
|
}, {
|
|
60
60
|
key: "explorer/context/share",
|
|
61
61
|
id: MenuId.ExplorerContextShare,
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(15667, "'Share' submenu in the file explorer context menu")),
|
|
63
63
|
proposed: "contribShareMenu"
|
|
64
64
|
}, {
|
|
65
65
|
key: "editor/title/context",
|
|
66
66
|
id: MenuId.EditorTitleContext,
|
|
67
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(15668, "The editor tabs context menu"))
|
|
68
68
|
}, {
|
|
69
69
|
key: "editor/title/context/share",
|
|
70
70
|
id: MenuId.EditorTitleContextShare,
|
|
71
|
-
description: ( localize(
|
|
71
|
+
description: ( localize(15669, "'Share' submenu inside the editor title context menu")),
|
|
72
72
|
proposed: "contribShareMenu"
|
|
73
73
|
}, {
|
|
74
74
|
key: "debug/callstack/context",
|
|
75
75
|
id: MenuId.DebugCallStackContext,
|
|
76
|
-
description: ( localize(
|
|
76
|
+
description: ( localize(15670, "The debug callstack view context menu"))
|
|
77
77
|
}, {
|
|
78
78
|
key: "debug/variables/context",
|
|
79
79
|
id: MenuId.DebugVariablesContext,
|
|
80
|
-
description: ( localize(
|
|
80
|
+
description: ( localize(15671, "The debug variables view context menu"))
|
|
81
81
|
}, {
|
|
82
82
|
key: "debug/watch/context",
|
|
83
83
|
id: MenuId.DebugWatchContext,
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(15672, "The debug watch view context menu"))
|
|
85
85
|
}, {
|
|
86
86
|
key: "debug/toolBar",
|
|
87
87
|
id: MenuId.DebugToolBar,
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(15673, "The debug toolbar menu"))
|
|
89
89
|
}, {
|
|
90
90
|
key: "debug/createConfiguration",
|
|
91
91
|
id: MenuId.DebugCreateConfiguration,
|
|
92
92
|
proposed: "contribDebugCreateConfiguration",
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(15674, "The debug create configuration menu"))
|
|
94
94
|
}, {
|
|
95
95
|
key: "notebook/variables/context",
|
|
96
96
|
id: MenuId.NotebookVariablesContext,
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(15675, "The notebook variables view context menu"))
|
|
98
98
|
}, {
|
|
99
99
|
key: "menuBar/home",
|
|
100
100
|
id: MenuId.MenubarHomeMenu,
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(15676, "The home indicator context menu (web only)")),
|
|
102
102
|
proposed: "contribMenuBarHome",
|
|
103
103
|
supportsSubmenus: false
|
|
104
104
|
}, {
|
|
105
105
|
key: "menuBar/edit/copy",
|
|
106
106
|
id: MenuId.MenubarCopy,
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(15677, "'Copy as' submenu in the top level Edit menu"))
|
|
108
108
|
}, {
|
|
109
109
|
key: "scm/title",
|
|
110
110
|
id: MenuId.SCMTitle,
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(15678, "The Source Control title menu"))
|
|
112
112
|
}, {
|
|
113
113
|
key: "scm/sourceControl",
|
|
114
114
|
id: MenuId.SCMSourceControl,
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(15679, "The Source Control menu"))
|
|
116
116
|
}, {
|
|
117
117
|
key: "scm/repositories/title",
|
|
118
118
|
id: MenuId.SCMSourceControlTitle,
|
|
119
|
-
description: ( localize(
|
|
119
|
+
description: ( localize(15680, "The Source Control Repositories title menu")),
|
|
120
120
|
proposed: "contribSourceControlTitleMenu"
|
|
121
121
|
}, {
|
|
122
122
|
key: "scm/repository",
|
|
123
123
|
id: MenuId.SCMSourceControlInline,
|
|
124
|
-
description: ( localize(
|
|
124
|
+
description: ( localize(15681, "The Source Control repository menu"))
|
|
125
125
|
}, {
|
|
126
126
|
key: "scm/resourceState/context",
|
|
127
127
|
id: MenuId.SCMResourceContext,
|
|
128
|
-
description: ( localize(
|
|
128
|
+
description: ( localize(15682, "The Source Control resource state context menu"))
|
|
129
129
|
}, {
|
|
130
130
|
key: "scm/resourceFolder/context",
|
|
131
131
|
id: MenuId.SCMResourceFolderContext,
|
|
132
|
-
description: ( localize(
|
|
132
|
+
description: ( localize(15683, "The Source Control resource folder context menu"))
|
|
133
133
|
}, {
|
|
134
134
|
key: "scm/resourceGroup/context",
|
|
135
135
|
id: MenuId.SCMResourceGroupContext,
|
|
136
|
-
description: ( localize(
|
|
136
|
+
description: ( localize(15684, "The Source Control resource group context menu"))
|
|
137
137
|
}, {
|
|
138
138
|
key: "scm/change/title",
|
|
139
139
|
id: MenuId.SCMChangeContext,
|
|
140
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(15685, "The Source Control inline change menu"))
|
|
141
141
|
}, {
|
|
142
142
|
key: "scm/inputBox",
|
|
143
143
|
id: MenuId.SCMInputBox,
|
|
144
|
-
description: ( localize(
|
|
144
|
+
description: ( localize(15686, "The Source Control input box menu")),
|
|
145
145
|
proposed: "contribSourceControlInputBoxMenu"
|
|
146
146
|
}, {
|
|
147
147
|
key: "scm/history/title",
|
|
148
148
|
id: MenuId.SCMHistoryTitle,
|
|
149
|
-
description: ( localize(
|
|
149
|
+
description: ( localize(15687, "The Source Control History title menu")),
|
|
150
150
|
proposed: "contribSourceControlHistoryTitleMenu"
|
|
151
151
|
}, {
|
|
152
152
|
key: "scm/historyItem/context",
|
|
153
153
|
id: MenuId.SCMHistoryItemContext,
|
|
154
|
-
description: ( localize(
|
|
154
|
+
description: ( localize(15688, "The Source Control history item context menu")),
|
|
155
155
|
proposed: "contribSourceControlHistoryItemMenu"
|
|
156
156
|
}, {
|
|
157
157
|
key: "scm/historyItemRef/context",
|
|
158
158
|
id: MenuId.SCMHistoryItemRefContext,
|
|
159
|
-
description: ( localize(
|
|
159
|
+
description: ( localize(15689, "The Source Control history item reference context menu")),
|
|
160
160
|
proposed: "contribSourceControlHistoryItemMenu"
|
|
161
161
|
}, {
|
|
162
162
|
key: "scm/artifactGroup/context",
|
|
163
163
|
id: MenuId.SCMArtifactGroupContext,
|
|
164
|
-
description: ( localize(
|
|
164
|
+
description: ( localize(15690, "The Source Control artifact group context menu")),
|
|
165
165
|
proposed: "contribSourceControlArtifactGroupMenu"
|
|
166
166
|
}, {
|
|
167
167
|
key: "scm/artifact/context",
|
|
168
168
|
id: MenuId.SCMArtifactContext,
|
|
169
|
-
description: ( localize(
|
|
169
|
+
description: ( localize(15691, "The Source Control artifact context menu")),
|
|
170
170
|
proposed: "contribSourceControlArtifactMenu"
|
|
171
171
|
}, {
|
|
172
172
|
key: "statusBar/remoteIndicator",
|
|
173
173
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
174
|
-
description: ( localize(
|
|
174
|
+
description: ( localize(15692, "The remote indicator menu in the status bar")),
|
|
175
175
|
supportsSubmenus: false
|
|
176
176
|
}, {
|
|
177
177
|
key: "terminal/context",
|
|
178
178
|
id: MenuId.TerminalInstanceContext,
|
|
179
|
-
description: ( localize(
|
|
179
|
+
description: ( localize(15693, "The terminal context menu"))
|
|
180
180
|
}, {
|
|
181
181
|
key: "terminal/title/context",
|
|
182
182
|
id: MenuId.TerminalTabContext,
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(15694, "The terminal tabs context menu"))
|
|
184
184
|
}, {
|
|
185
185
|
key: "view/title",
|
|
186
186
|
id: MenuId.ViewTitle,
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(15695, "The contributed view title menu"))
|
|
188
188
|
}, {
|
|
189
189
|
key: "viewContainer/title",
|
|
190
190
|
id: MenuId.ViewContainerTitle,
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(15696, "The contributed view container title menu")),
|
|
192
192
|
proposed: "contribViewContainerTitle"
|
|
193
193
|
}, {
|
|
194
194
|
key: "view/item/context",
|
|
195
195
|
id: MenuId.ViewItemContext,
|
|
196
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(15697, "The contributed view item context menu"))
|
|
197
197
|
}, {
|
|
198
198
|
key: "comments/comment/editorActions",
|
|
199
199
|
id: MenuId.CommentEditorActions,
|
|
200
|
-
description: ( localize(
|
|
200
|
+
description: ( localize(15698, "The contributed comment editor actions")),
|
|
201
201
|
proposed: "contribCommentEditorActionsMenu"
|
|
202
202
|
}, {
|
|
203
203
|
key: "comments/commentThread/title",
|
|
204
204
|
id: MenuId.CommentThreadTitle,
|
|
205
|
-
description: ( localize(
|
|
205
|
+
description: ( localize(15699, "The contributed comment thread title menu"))
|
|
206
206
|
}, {
|
|
207
207
|
key: "comments/commentThread/context",
|
|
208
208
|
id: MenuId.CommentThreadActions,
|
|
209
209
|
description: ( localize(
|
|
210
|
-
|
|
210
|
+
15700,
|
|
211
211
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
212
212
|
)),
|
|
213
213
|
supportsSubmenus: false
|
|
@@ -215,7 +215,7 @@ const apiMenus = [{
|
|
|
215
215
|
key: "comments/commentThread/additionalActions",
|
|
216
216
|
id: MenuId.CommentThreadAdditionalActions,
|
|
217
217
|
description: ( localize(
|
|
218
|
-
|
|
218
|
+
15700,
|
|
219
219
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
220
220
|
)),
|
|
221
221
|
supportsSubmenus: true,
|
|
@@ -224,19 +224,19 @@ const apiMenus = [{
|
|
|
224
224
|
key: "comments/commentThread/title/context",
|
|
225
225
|
id: MenuId.CommentThreadTitleContext,
|
|
226
226
|
description: ( localize(
|
|
227
|
-
|
|
227
|
+
15701,
|
|
228
228
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
229
229
|
)),
|
|
230
230
|
proposed: "contribCommentPeekContext"
|
|
231
231
|
}, {
|
|
232
232
|
key: "comments/comment/title",
|
|
233
233
|
id: MenuId.CommentTitle,
|
|
234
|
-
description: ( localize(
|
|
234
|
+
description: ( localize(15702, "The contributed comment title menu"))
|
|
235
235
|
}, {
|
|
236
236
|
key: "comments/comment/context",
|
|
237
237
|
id: MenuId.CommentActions,
|
|
238
238
|
description: ( localize(
|
|
239
|
-
|
|
239
|
+
15703,
|
|
240
240
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
241
241
|
)),
|
|
242
242
|
supportsSubmenus: false
|
|
@@ -244,211 +244,227 @@ const apiMenus = [{
|
|
|
244
244
|
key: "comments/commentThread/comment/context",
|
|
245
245
|
id: MenuId.CommentThreadCommentContext,
|
|
246
246
|
description: ( localize(
|
|
247
|
-
|
|
247
|
+
15704,
|
|
248
248
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
249
249
|
)),
|
|
250
250
|
proposed: "contribCommentPeekContext"
|
|
251
251
|
}, {
|
|
252
252
|
key: "commentsView/commentThread/context",
|
|
253
253
|
id: MenuId.CommentsViewThreadActions,
|
|
254
|
-
description: ( localize(
|
|
254
|
+
description: ( localize(15705, "The contributed comment thread context menu in the comments view")),
|
|
255
255
|
proposed: "contribCommentsViewThreadMenus"
|
|
256
256
|
}, {
|
|
257
257
|
key: "notebook/toolbar",
|
|
258
258
|
id: MenuId.NotebookToolbar,
|
|
259
|
-
description: ( localize(
|
|
259
|
+
description: ( localize(15706, "The contributed notebook toolbar menu"))
|
|
260
260
|
}, {
|
|
261
261
|
key: "notebook/kernelSource",
|
|
262
262
|
id: MenuId.NotebookKernelSource,
|
|
263
|
-
description: ( localize(
|
|
263
|
+
description: ( localize(15707, "The contributed notebook kernel sources menu")),
|
|
264
264
|
proposed: "notebookKernelSource"
|
|
265
265
|
}, {
|
|
266
266
|
key: "notebook/cell/title",
|
|
267
267
|
id: MenuId.NotebookCellTitle,
|
|
268
|
-
description: ( localize(
|
|
268
|
+
description: ( localize(15708, "The contributed notebook cell title menu"))
|
|
269
269
|
}, {
|
|
270
270
|
key: "notebook/cell/execute",
|
|
271
271
|
id: MenuId.NotebookCellExecute,
|
|
272
|
-
description: ( localize(
|
|
272
|
+
description: ( localize(15709, "The contributed notebook cell execution menu"))
|
|
273
273
|
}, {
|
|
274
274
|
key: "interactive/toolbar",
|
|
275
275
|
id: MenuId.InteractiveToolbar,
|
|
276
|
-
description: ( localize(
|
|
276
|
+
description: ( localize(15710, "The contributed interactive toolbar menu"))
|
|
277
277
|
}, {
|
|
278
278
|
key: "interactive/cell/title",
|
|
279
279
|
id: MenuId.InteractiveCellTitle,
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(15711, "The contributed interactive cell title menu"))
|
|
281
281
|
}, {
|
|
282
282
|
key: "issue/reporter",
|
|
283
283
|
id: MenuId.IssueReporter,
|
|
284
|
-
description: ( localize(
|
|
284
|
+
description: ( localize(15712, "The contributed issue reporter menu"))
|
|
285
285
|
}, {
|
|
286
286
|
key: "testing/item/context",
|
|
287
287
|
id: MenuId.TestItem,
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(15713, "The contributed test item menu"))
|
|
289
289
|
}, {
|
|
290
290
|
key: "testing/item/gutter",
|
|
291
291
|
id: MenuId.TestItemGutter,
|
|
292
|
-
description: ( localize(
|
|
292
|
+
description: ( localize(15714, "The menu for a gutter decoration for a test item"))
|
|
293
293
|
}, {
|
|
294
294
|
key: "testing/profiles/context",
|
|
295
295
|
id: MenuId.TestProfilesContext,
|
|
296
|
-
description: ( localize(
|
|
296
|
+
description: ( localize(15715, "The menu for configuring testing profiles."))
|
|
297
297
|
}, {
|
|
298
298
|
key: "testing/item/result",
|
|
299
299
|
id: MenuId.TestPeekElement,
|
|
300
|
-
description: ( localize(
|
|
300
|
+
description: ( localize(15716, "The menu for an item in the Test Results view or peek."))
|
|
301
301
|
}, {
|
|
302
302
|
key: "testing/message/context",
|
|
303
303
|
id: MenuId.TestMessageContext,
|
|
304
304
|
description: ( localize(
|
|
305
|
-
|
|
305
|
+
15717,
|
|
306
306
|
"A prominent button overlaying editor content where the message is displayed"
|
|
307
307
|
))
|
|
308
308
|
}, {
|
|
309
309
|
key: "testing/message/content",
|
|
310
310
|
id: MenuId.TestMessageContent,
|
|
311
|
-
description: ( localize(
|
|
311
|
+
description: ( localize(15718, "Context menu for the message in the results tree"))
|
|
312
312
|
}, {
|
|
313
313
|
key: "extension/context",
|
|
314
314
|
id: MenuId.ExtensionContext,
|
|
315
|
-
description: ( localize(
|
|
315
|
+
description: ( localize(15719, "The extension context menu"))
|
|
316
316
|
}, {
|
|
317
317
|
key: "timeline/title",
|
|
318
318
|
id: MenuId.TimelineTitle,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(15720, "The Timeline view title menu"))
|
|
320
320
|
}, {
|
|
321
321
|
key: "timeline/item/context",
|
|
322
322
|
id: MenuId.TimelineItemContext,
|
|
323
|
-
description: ( localize(
|
|
323
|
+
description: ( localize(15721, "The Timeline view item context menu"))
|
|
324
324
|
}, {
|
|
325
325
|
key: "ports/item/context",
|
|
326
326
|
id: MenuId.TunnelContext,
|
|
327
|
-
description: ( localize(
|
|
327
|
+
description: ( localize(15722, "The Ports view item context menu"))
|
|
328
328
|
}, {
|
|
329
329
|
key: "ports/item/origin/inline",
|
|
330
330
|
id: MenuId.TunnelOriginInline,
|
|
331
|
-
description: ( localize(
|
|
331
|
+
description: ( localize(15723, "The Ports view item origin inline menu"))
|
|
332
332
|
}, {
|
|
333
333
|
key: "ports/item/port/inline",
|
|
334
334
|
id: MenuId.TunnelPortInline,
|
|
335
|
-
description: ( localize(
|
|
335
|
+
description: ( localize(15724, "The Ports view item port inline menu"))
|
|
336
336
|
}, {
|
|
337
337
|
key: "file/newFile",
|
|
338
338
|
id: MenuId.NewFile,
|
|
339
339
|
description: ( localize(
|
|
340
|
-
|
|
340
|
+
15725,
|
|
341
341
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
342
342
|
)),
|
|
343
343
|
supportsSubmenus: false
|
|
344
344
|
}, {
|
|
345
345
|
key: "webview/context",
|
|
346
346
|
id: MenuId.WebviewContext,
|
|
347
|
-
description: ( localize(
|
|
347
|
+
description: ( localize(15726, "The webview context menu"))
|
|
348
348
|
}, {
|
|
349
349
|
key: "file/share",
|
|
350
350
|
id: MenuId.MenubarShare,
|
|
351
|
-
description: ( localize(
|
|
351
|
+
description: ( localize(15727, "Share submenu shown in the top level File menu.")),
|
|
352
352
|
proposed: "contribShareMenu"
|
|
353
353
|
}, {
|
|
354
354
|
key: "editor/inlineCompletions/actions",
|
|
355
355
|
id: MenuId.InlineCompletionsActions,
|
|
356
|
-
description: ( localize(
|
|
356
|
+
description: ( localize(15728, "The actions shown when hovering on an inline completion")),
|
|
357
357
|
supportsSubmenus: false,
|
|
358
358
|
proposed: "inlineCompletionsAdditions"
|
|
359
359
|
}, {
|
|
360
360
|
key: "editor/content",
|
|
361
361
|
id: MenuId.EditorContent,
|
|
362
|
-
description: ( localize(
|
|
362
|
+
description: ( localize(15729, "The prominent button in an editor, overlays its content")),
|
|
363
363
|
proposed: "contribEditorContentMenu"
|
|
364
364
|
}, {
|
|
365
365
|
key: "editor/lineNumber/context",
|
|
366
366
|
id: MenuId.EditorLineNumberContext,
|
|
367
|
-
description: ( localize(
|
|
367
|
+
description: ( localize(15730, "The contributed editor line number context menu"))
|
|
368
368
|
}, {
|
|
369
369
|
key: "mergeEditor/result/title",
|
|
370
370
|
id: MenuId.MergeInputResultToolbar,
|
|
371
|
-
description: ( localize(
|
|
371
|
+
description: ( localize(15731, "The result toolbar of the merge editor")),
|
|
372
372
|
proposed: "contribMergeEditorMenus"
|
|
373
373
|
}, {
|
|
374
374
|
key: "multiDiffEditor/content",
|
|
375
375
|
id: MenuId.MultiDiffEditorContent,
|
|
376
|
-
description: ( localize(
|
|
376
|
+
description: ( localize(15732, "A prominent button overlaying the multi diff editor")),
|
|
377
377
|
proposed: "contribEditorContentMenu"
|
|
378
378
|
}, {
|
|
379
379
|
key: "multiDiffEditor/resource/title",
|
|
380
380
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
381
|
-
description: ( localize(
|
|
381
|
+
description: ( localize(15733, "The resource toolbar in the multi diff editor")),
|
|
382
382
|
proposed: "contribMultiDiffEditorMenus"
|
|
383
383
|
}, {
|
|
384
384
|
key: "diffEditor/gutter/hunk",
|
|
385
385
|
id: MenuId.DiffEditorHunkToolbar,
|
|
386
|
-
description: ( localize(
|
|
386
|
+
description: ( localize(15734, "The gutter toolbar in the diff editor")),
|
|
387
387
|
proposed: "contribDiffEditorGutterToolBarMenus"
|
|
388
388
|
}, {
|
|
389
389
|
key: "diffEditor/gutter/selection",
|
|
390
390
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
391
|
-
description: ( localize(
|
|
391
|
+
description: ( localize(15734, "The gutter toolbar in the diff editor")),
|
|
392
392
|
proposed: "contribDiffEditorGutterToolBarMenus"
|
|
393
393
|
}, {
|
|
394
394
|
key: "searchPanel/aiResults/commands",
|
|
395
395
|
id: MenuId.SearchActionMenu,
|
|
396
396
|
description: ( localize(
|
|
397
|
-
|
|
397
|
+
15735,
|
|
398
398
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
399
399
|
))
|
|
400
400
|
}, {
|
|
401
401
|
key: "editor/context/chat",
|
|
402
402
|
id: MenuId.ChatTextEditorMenu,
|
|
403
|
-
description: ( localize(
|
|
403
|
+
description: ( localize(15736, "The Chat submenu in the text editor context menu.")),
|
|
404
404
|
supportsSubmenus: false,
|
|
405
405
|
proposed: "chatParticipantPrivate"
|
|
406
406
|
}, {
|
|
407
407
|
key: "chat/input/editing/sessionToolbar",
|
|
408
408
|
id: MenuId.ChatEditingSessionChangesToolbar,
|
|
409
|
-
description: ( localize(
|
|
409
|
+
description: ( localize(15737, "The Chat Editing widget toolbar menu for session changes.")),
|
|
410
410
|
proposed: "chatSessionsProvider"
|
|
411
411
|
}, {
|
|
412
412
|
key: "chat/input/editing/sessionApplyActions",
|
|
413
413
|
id: MenuId.ChatEditingSessionApplySubmenu,
|
|
414
414
|
description: ( localize(
|
|
415
|
-
|
|
415
|
+
15738,
|
|
416
416
|
"Submenu for apply actions in the Chat Editing session changes toolbar."
|
|
417
417
|
)),
|
|
418
418
|
proposed: "chatSessionsProvider"
|
|
419
|
+
}, {
|
|
420
|
+
key: "chat/input/editing/sessionTitleToolbar",
|
|
421
|
+
id: MenuId.ChatEditingSessionTitleToolbar,
|
|
422
|
+
description: ( localize(15739, "The Chat Editing widget toolbar menu for session title.")),
|
|
423
|
+
proposed: "chatSessionsProvider"
|
|
424
|
+
}, {
|
|
425
|
+
key: "chat/input/editing/sessionChangeToolbar",
|
|
426
|
+
id: MenuId.ChatEditingSessionChangeToolbar,
|
|
427
|
+
description: ( localize(15740, "The Chat Editing widget toolbar menu for session changes.")),
|
|
428
|
+
proposed: "chatSessionsProvider"
|
|
419
429
|
}, {
|
|
420
430
|
key: "chat/chatSessions",
|
|
421
431
|
id: MenuId.AgentSessionsContext,
|
|
422
|
-
description: ( localize(
|
|
432
|
+
description: ( localize(15741, "The Chat Sessions menu.")),
|
|
423
433
|
supportsSubmenus: false,
|
|
424
434
|
proposed: "chatSessionsProvider"
|
|
425
435
|
}, {
|
|
426
436
|
key: "chatSessions/newSession",
|
|
427
437
|
id: MenuId.AgentSessionsCreateSubMenu,
|
|
428
|
-
description: ( localize(
|
|
438
|
+
description: ( localize(15742, "Menu for new chat sessions.")),
|
|
429
439
|
supportsSubmenus: false,
|
|
430
440
|
proposed: "chatSessionsProvider"
|
|
431
441
|
}, {
|
|
432
442
|
key: "chat/multiDiff/context",
|
|
433
443
|
id: MenuId.ChatMultiDiffContext,
|
|
434
|
-
description: ( localize(
|
|
444
|
+
description: ( localize(15743, "The Chat Multi-Diff context menu.")),
|
|
435
445
|
supportsSubmenus: false,
|
|
436
446
|
proposed: "chatSessionsProvider"
|
|
447
|
+
}, {
|
|
448
|
+
key: "chat/customizations/create",
|
|
449
|
+
id: MenuId.for("AICustomizationManagementCreate"),
|
|
450
|
+
description: ( localize(15744, "The create button in the Chat Customizations management editor.")),
|
|
451
|
+
supportsSubmenus: false,
|
|
452
|
+
proposed: "chatSessionCustomizationProvider"
|
|
437
453
|
}, {
|
|
438
454
|
key: "chat/editor/inlineGutter",
|
|
439
455
|
id: MenuId.ChatEditorInlineMenu,
|
|
440
|
-
description: ( localize(
|
|
456
|
+
description: ( localize(15745, "The inline gutter menu in the chat editor.")),
|
|
441
457
|
supportsSubmenus: false,
|
|
442
458
|
proposed: "contribChatEditorInlineGutterMenu"
|
|
443
459
|
}, {
|
|
444
460
|
key: "chat/contextUsage/actions",
|
|
445
461
|
id: MenuId.ChatContextUsageActions,
|
|
446
|
-
description: ( localize(
|
|
462
|
+
description: ( localize(15746, "Actions in the chat context usage details popup.")),
|
|
447
463
|
proposed: "chatParticipantAdditions"
|
|
448
464
|
}, {
|
|
449
465
|
key: "chat/newSession",
|
|
450
466
|
id: MenuId.ChatNewMenu,
|
|
451
|
-
description: ( localize(
|
|
467
|
+
description: ( localize(15747, "The Chat new session menu.")),
|
|
452
468
|
proposed: "chatSessionsProvider"
|
|
453
469
|
}];
|
|
454
470
|
var schema;
|
|
@@ -460,23 +476,23 @@ var schema;
|
|
|
460
476
|
function isValidMenuItem(item, collector) {
|
|
461
477
|
if (typeof item.command !== "string") {
|
|
462
478
|
collector.error(( localize(
|
|
463
|
-
|
|
479
|
+
15748,
|
|
464
480
|
"property `{0}` is mandatory and must be of type `string`",
|
|
465
481
|
"command"
|
|
466
482
|
)));
|
|
467
483
|
return false;
|
|
468
484
|
}
|
|
469
485
|
if (item.alt && typeof item.alt !== "string") {
|
|
470
|
-
collector.error(( localize(
|
|
486
|
+
collector.error(( localize(15749, "property `{0}` can be omitted or must be of type `string`", "alt")));
|
|
471
487
|
return false;
|
|
472
488
|
}
|
|
473
489
|
if (item.when && typeof item.when !== "string") {
|
|
474
|
-
collector.error(( localize(
|
|
490
|
+
collector.error(( localize(15749, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
475
491
|
return false;
|
|
476
492
|
}
|
|
477
493
|
if (item.group && typeof item.group !== "string") {
|
|
478
494
|
collector.error(( localize(
|
|
479
|
-
|
|
495
|
+
15749,
|
|
480
496
|
"property `{0}` can be omitted or must be of type `string`",
|
|
481
497
|
"group"
|
|
482
498
|
)));
|
|
@@ -488,19 +504,19 @@ var schema;
|
|
|
488
504
|
function isValidSubmenuItem(item, collector) {
|
|
489
505
|
if (typeof item.submenu !== "string") {
|
|
490
506
|
collector.error(( localize(
|
|
491
|
-
|
|
507
|
+
15748,
|
|
492
508
|
"property `{0}` is mandatory and must be of type `string`",
|
|
493
509
|
"submenu"
|
|
494
510
|
)));
|
|
495
511
|
return false;
|
|
496
512
|
}
|
|
497
513
|
if (item.when && typeof item.when !== "string") {
|
|
498
|
-
collector.error(( localize(
|
|
514
|
+
collector.error(( localize(15749, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
499
515
|
return false;
|
|
500
516
|
}
|
|
501
517
|
if (item.group && typeof item.group !== "string") {
|
|
502
518
|
collector.error(( localize(
|
|
503
|
-
|
|
519
|
+
15749,
|
|
504
520
|
"property `{0}` can be omitted or must be of type `string`",
|
|
505
521
|
"group"
|
|
506
522
|
)));
|
|
@@ -511,7 +527,7 @@ var schema;
|
|
|
511
527
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
512
528
|
function isValidItems(items, collector) {
|
|
513
529
|
if (!Array.isArray(items)) {
|
|
514
|
-
collector.error(( localize(
|
|
530
|
+
collector.error(( localize(15750, "submenu items must be an array")));
|
|
515
531
|
return false;
|
|
516
532
|
}
|
|
517
533
|
for (const item of items) {
|
|
@@ -530,15 +546,15 @@ var schema;
|
|
|
530
546
|
schema.isValidItems = isValidItems;
|
|
531
547
|
function isValidSubmenu(submenu, collector) {
|
|
532
548
|
if (typeof submenu !== "object") {
|
|
533
|
-
collector.error(( localize(
|
|
549
|
+
collector.error(( localize(15751, "submenu items must be an object")));
|
|
534
550
|
return false;
|
|
535
551
|
}
|
|
536
552
|
if (typeof submenu.id !== "string") {
|
|
537
|
-
collector.error(( localize(
|
|
553
|
+
collector.error(( localize(15748, "property `{0}` is mandatory and must be of type `string`", "id")));
|
|
538
554
|
return false;
|
|
539
555
|
}
|
|
540
556
|
if (typeof submenu.label !== "string") {
|
|
541
|
-
collector.error(( localize(
|
|
557
|
+
collector.error(( localize(15748, "property `{0}` is mandatory and must be of type `string`", "label")));
|
|
542
558
|
return false;
|
|
543
559
|
}
|
|
544
560
|
return true;
|
|
@@ -550,24 +566,24 @@ var schema;
|
|
|
550
566
|
properties: {
|
|
551
567
|
command: {
|
|
552
568
|
description: ( localize(
|
|
553
|
-
|
|
569
|
+
15752,
|
|
554
570
|
"Identifier of the command to execute. The command must be declared in the 'commands'-section"
|
|
555
571
|
)),
|
|
556
572
|
type: "string"
|
|
557
573
|
},
|
|
558
574
|
alt: {
|
|
559
575
|
description: ( localize(
|
|
560
|
-
|
|
576
|
+
15753,
|
|
561
577
|
"Identifier of an alternative command to execute. The command must be declared in the 'commands'-section"
|
|
562
578
|
)),
|
|
563
579
|
type: "string"
|
|
564
580
|
},
|
|
565
581
|
when: {
|
|
566
|
-
description: ( localize(
|
|
582
|
+
description: ( localize(15754, "Condition which must be true to show this item")),
|
|
567
583
|
type: "string"
|
|
568
584
|
},
|
|
569
585
|
group: {
|
|
570
|
-
description: ( localize(
|
|
586
|
+
description: ( localize(15755, "Group into which this item belongs")),
|
|
571
587
|
type: "string"
|
|
572
588
|
}
|
|
573
589
|
}
|
|
@@ -577,15 +593,15 @@ var schema;
|
|
|
577
593
|
required: ["submenu"],
|
|
578
594
|
properties: {
|
|
579
595
|
submenu: {
|
|
580
|
-
description: ( localize(
|
|
596
|
+
description: ( localize(15756, "Identifier of the submenu to display in this item.")),
|
|
581
597
|
type: "string"
|
|
582
598
|
},
|
|
583
599
|
when: {
|
|
584
|
-
description: ( localize(
|
|
600
|
+
description: ( localize(15754, "Condition which must be true to show this item")),
|
|
585
601
|
type: "string"
|
|
586
602
|
},
|
|
587
603
|
group: {
|
|
588
|
-
description: ( localize(
|
|
604
|
+
description: ( localize(15755, "Group into which this item belongs")),
|
|
589
605
|
type: "string"
|
|
590
606
|
}
|
|
591
607
|
}
|
|
@@ -595,16 +611,16 @@ var schema;
|
|
|
595
611
|
required: ["id", "label"],
|
|
596
612
|
properties: {
|
|
597
613
|
id: {
|
|
598
|
-
description: ( localize(
|
|
614
|
+
description: ( localize(15757, "Identifier of the menu to display as a submenu.")),
|
|
599
615
|
type: "string"
|
|
600
616
|
},
|
|
601
617
|
label: {
|
|
602
|
-
description: ( localize(
|
|
618
|
+
description: ( localize(15758, "The label of the menu item which leads to this submenu.")),
|
|
603
619
|
type: "string"
|
|
604
620
|
},
|
|
605
621
|
icon: {
|
|
606
622
|
description: ( localize(
|
|
607
|
-
|
|
623
|
+
15759,
|
|
608
624
|
"(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)\""
|
|
609
625
|
)),
|
|
610
626
|
anyOf: [{
|
|
@@ -613,11 +629,11 @@ var schema;
|
|
|
613
629
|
type: "object",
|
|
614
630
|
properties: {
|
|
615
631
|
light: {
|
|
616
|
-
description: ( localize(
|
|
632
|
+
description: ( localize(15760, "Icon path when a light theme is used")),
|
|
617
633
|
type: "string"
|
|
618
634
|
},
|
|
619
635
|
dark: {
|
|
620
|
-
description: ( localize(
|
|
636
|
+
description: ( localize(15761, "Icon path when a dark theme is used")),
|
|
621
637
|
type: "string"
|
|
622
638
|
}
|
|
623
639
|
}
|
|
@@ -626,11 +642,11 @@ var schema;
|
|
|
626
642
|
}
|
|
627
643
|
};
|
|
628
644
|
schema.menusContribution = {
|
|
629
|
-
description: ( localize(
|
|
645
|
+
description: ( localize(15762, "Contributes menu items to the editor")),
|
|
630
646
|
type: "object",
|
|
631
647
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
632
648
|
markdownDescription: menu.proposed ? ( localize(
|
|
633
|
-
|
|
649
|
+
15763,
|
|
634
650
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
635
651
|
menu.proposed,
|
|
636
652
|
menu.description
|
|
@@ -649,18 +665,18 @@ var schema;
|
|
|
649
665
|
}
|
|
650
666
|
};
|
|
651
667
|
schema.submenusContribution = {
|
|
652
|
-
description: ( localize(
|
|
668
|
+
description: ( localize(15764, "Contributes submenu items to the editor")),
|
|
653
669
|
type: "array",
|
|
654
670
|
items: submenu
|
|
655
671
|
};
|
|
656
672
|
function isValidCommand(command, collector) {
|
|
657
673
|
if (!command) {
|
|
658
|
-
collector.error(( localize(
|
|
674
|
+
collector.error(( localize(15765, "expected non-empty value.")));
|
|
659
675
|
return false;
|
|
660
676
|
}
|
|
661
677
|
if (isFalsyOrWhitespace(command.command)) {
|
|
662
678
|
collector.error(( localize(
|
|
663
|
-
|
|
679
|
+
15748,
|
|
664
680
|
"property `{0}` is mandatory and must be of type `string`",
|
|
665
681
|
"command"
|
|
666
682
|
)));
|
|
@@ -674,7 +690,7 @@ var schema;
|
|
|
674
690
|
}
|
|
675
691
|
if (command.enablement && typeof command.enablement !== "string") {
|
|
676
692
|
collector.error(( localize(
|
|
677
|
-
|
|
693
|
+
15749,
|
|
678
694
|
"property `{0}` can be omitted or must be of type `string`",
|
|
679
695
|
"precondition"
|
|
680
696
|
)));
|
|
@@ -699,7 +715,7 @@ var schema;
|
|
|
699
715
|
return true;
|
|
700
716
|
}
|
|
701
717
|
collector.error(( localize(
|
|
702
|
-
|
|
718
|
+
15766,
|
|
703
719
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
704
720
|
)));
|
|
705
721
|
return false;
|
|
@@ -707,21 +723,21 @@ var schema;
|
|
|
707
723
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
708
724
|
if (typeof localized === "undefined") {
|
|
709
725
|
collector.error(( localize(
|
|
710
|
-
|
|
726
|
+
15767,
|
|
711
727
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
712
728
|
propertyName
|
|
713
729
|
)));
|
|
714
730
|
return false;
|
|
715
731
|
} else if (typeof localized === "string" && isFalsyOrWhitespace(localized)) {
|
|
716
732
|
collector.error(( localize(
|
|
717
|
-
|
|
733
|
+
15748,
|
|
718
734
|
"property `{0}` is mandatory and must be of type `string`",
|
|
719
735
|
propertyName
|
|
720
736
|
)));
|
|
721
737
|
return false;
|
|
722
738
|
} else if (typeof localized !== "string" && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
723
739
|
collector.error(( localize(
|
|
724
|
-
|
|
740
|
+
15768,
|
|
725
741
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
726
742
|
`${propertyName}.value`,
|
|
727
743
|
`${propertyName}.original`
|
|
@@ -735,37 +751,37 @@ var schema;
|
|
|
735
751
|
required: ["command", "title"],
|
|
736
752
|
properties: {
|
|
737
753
|
command: {
|
|
738
|
-
description: ( localize(
|
|
754
|
+
description: ( localize(15769, "Identifier of the command to execute")),
|
|
739
755
|
type: "string"
|
|
740
756
|
},
|
|
741
757
|
title: {
|
|
742
|
-
description: ( localize(
|
|
758
|
+
description: ( localize(15770, "Title by which the command is represented in the UI")),
|
|
743
759
|
type: "string"
|
|
744
760
|
},
|
|
745
761
|
shortTitle: {
|
|
746
762
|
markdownDescription: ( localize(
|
|
747
|
-
|
|
763
|
+
15771,
|
|
748
764
|
"(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."
|
|
749
765
|
)),
|
|
750
766
|
type: "string"
|
|
751
767
|
},
|
|
752
768
|
category: {
|
|
753
769
|
description: ( localize(
|
|
754
|
-
|
|
770
|
+
15772,
|
|
755
771
|
"(Optional) Category string by which the command is grouped in the UI"
|
|
756
772
|
)),
|
|
757
773
|
type: "string"
|
|
758
774
|
},
|
|
759
775
|
enablement: {
|
|
760
776
|
description: ( localize(
|
|
761
|
-
|
|
777
|
+
15773,
|
|
762
778
|
"(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."
|
|
763
779
|
)),
|
|
764
780
|
type: "string"
|
|
765
781
|
},
|
|
766
782
|
icon: {
|
|
767
783
|
description: ( localize(
|
|
768
|
-
|
|
784
|
+
15774,
|
|
769
785
|
"(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)\""
|
|
770
786
|
)),
|
|
771
787
|
anyOf: [{
|
|
@@ -774,11 +790,11 @@ var schema;
|
|
|
774
790
|
type: "object",
|
|
775
791
|
properties: {
|
|
776
792
|
light: {
|
|
777
|
-
description: ( localize(
|
|
793
|
+
description: ( localize(15775, "Icon path when a light theme is used")),
|
|
778
794
|
type: "string"
|
|
779
795
|
},
|
|
780
796
|
dark: {
|
|
781
|
-
description: ( localize(
|
|
797
|
+
description: ( localize(15776, "Icon path when a dark theme is used")),
|
|
782
798
|
type: "string"
|
|
783
799
|
}
|
|
784
800
|
}
|
|
@@ -787,7 +803,7 @@ var schema;
|
|
|
787
803
|
}
|
|
788
804
|
};
|
|
789
805
|
schema.commandsContribution = {
|
|
790
|
-
description: ( localize(
|
|
806
|
+
description: ( localize(15777, "Contributes commands to the command palette.")),
|
|
791
807
|
oneOf: [commandType, {
|
|
792
808
|
type: "array",
|
|
793
809
|
items: commandType
|
|
@@ -837,14 +853,14 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
837
853
|
if (existingCmd) {
|
|
838
854
|
if (existingCmd.source) {
|
|
839
855
|
extension.collector.info(( localize(
|
|
840
|
-
|
|
856
|
+
15778,
|
|
841
857
|
"Command `{0}` already registered by {1} ({2})",
|
|
842
858
|
userFriendlyCommand.command,
|
|
843
859
|
existingCmd.source.title,
|
|
844
860
|
existingCmd.source.id
|
|
845
861
|
)));
|
|
846
862
|
} else {
|
|
847
|
-
extension.collector.info(( localize(
|
|
863
|
+
extension.collector.info(( localize(15779, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
848
864
|
}
|
|
849
865
|
}
|
|
850
866
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -892,19 +908,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
892
908
|
continue;
|
|
893
909
|
}
|
|
894
910
|
if (!submenuInfo.id) {
|
|
895
|
-
collector.warn(( localize(
|
|
911
|
+
collector.warn(( localize(15780, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
896
912
|
continue;
|
|
897
913
|
}
|
|
898
914
|
if (( _submenus.has(submenuInfo.id))) {
|
|
899
915
|
collector.info(( localize(
|
|
900
|
-
|
|
916
|
+
15781,
|
|
901
917
|
"The `{0}` submenu was already previously registered.",
|
|
902
918
|
submenuInfo.id
|
|
903
919
|
)));
|
|
904
920
|
continue;
|
|
905
921
|
}
|
|
906
922
|
if (!submenuInfo.label) {
|
|
907
|
-
collector.warn(( localize(
|
|
923
|
+
collector.warn(( localize(15782, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
908
924
|
continue;
|
|
909
925
|
}
|
|
910
926
|
let absoluteIcon;
|
|
@@ -965,7 +981,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
965
981
|
}
|
|
966
982
|
if (menu.proposed && !isProposedApiEnabled(extension.description)) {
|
|
967
983
|
collector.error(( localize(
|
|
968
|
-
|
|
984
|
+
15783,
|
|
969
985
|
"{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}",
|
|
970
986
|
entry[0],
|
|
971
987
|
menu.proposed,
|
|
@@ -980,7 +996,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
980
996
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
981
997
|
if (!command) {
|
|
982
998
|
collector.error(( localize(
|
|
983
|
-
|
|
999
|
+
15784,
|
|
984
1000
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
985
1001
|
menuItem.command
|
|
986
1002
|
)));
|
|
@@ -988,13 +1004,13 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
988
1004
|
}
|
|
989
1005
|
if (menuItem.alt && !alt) {
|
|
990
1006
|
collector.warn(( localize(
|
|
991
|
-
|
|
1007
|
+
15785,
|
|
992
1008
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
993
1009
|
menuItem.alt
|
|
994
1010
|
)));
|
|
995
1011
|
}
|
|
996
1012
|
if (menuItem.command === menuItem.alt) {
|
|
997
|
-
collector.info(( localize(
|
|
1013
|
+
collector.info(( localize(15786, "Menu item references the same command as default and alt-command")));
|
|
998
1014
|
}
|
|
999
1015
|
item = {
|
|
1000
1016
|
command,
|
|
@@ -1006,7 +1022,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1006
1022
|
} else {
|
|
1007
1023
|
if (menu.supportsSubmenus === false) {
|
|
1008
1024
|
collector.error(( localize(
|
|
1009
|
-
|
|
1025
|
+
15787,
|
|
1010
1026
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1011
1027
|
)));
|
|
1012
1028
|
continue;
|
|
@@ -1014,7 +1030,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1014
1030
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1015
1031
|
if (!submenu) {
|
|
1016
1032
|
collector.error(( localize(
|
|
1017
|
-
|
|
1033
|
+
15788,
|
|
1018
1034
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1019
1035
|
menuItem.submenu
|
|
1020
1036
|
)));
|
|
@@ -1027,7 +1043,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1027
1043
|
}
|
|
1028
1044
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1029
1045
|
collector.warn(( localize(
|
|
1030
|
-
|
|
1046
|
+
15789,
|
|
1031
1047
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1032
1048
|
menuItem.submenu,
|
|
1033
1049
|
entry[0]
|
|
@@ -1055,7 +1071,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1055
1071
|
}
|
|
1056
1072
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes("viewContainer == workbench.view.debug")) {
|
|
1057
1073
|
collector.error(( localize(
|
|
1058
|
-
|
|
1074
|
+
15790,
|
|
1059
1075
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1060
1076
|
"`viewContainer/title`",
|
|
1061
1077
|
"`viewContainer == workbench.view.debug`",
|
|
@@ -1157,7 +1173,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1157
1173
|
dispose: () => {}
|
|
1158
1174
|
};
|
|
1159
1175
|
}
|
|
1160
|
-
const headers = [( localize(
|
|
1176
|
+
const headers = [( localize(15791, "ID")), ( localize(15792, "Title")), ( localize(15793, "Keyboard Shortcuts")), ( localize(15794, "Menu Contexts"))];
|
|
1161
1177
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id)).map(command => {
|
|
1162
1178
|
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(" ")}`)];
|
|
1163
1179
|
}));
|
|
@@ -1188,7 +1204,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1188
1204
|
CommandsTableRenderer = ( __decorate([( __param(0, IKeybindingService))], CommandsTableRenderer));
|
|
1189
1205
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1190
1206
|
id: "commands",
|
|
1191
|
-
label: ( localize(
|
|
1207
|
+
label: ( localize(15795, "Commands")),
|
|
1192
1208
|
access: {
|
|
1193
1209
|
canToggle: false
|
|
1194
1210
|
},
|
|
@@ -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(16204, "expected non-empty value.")));
|
|
55
55
|
return false;
|
|
56
56
|
}
|
|
57
57
|
if (typeof keyBinding.command !== "string") {
|
|
58
58
|
rejects.push(( localize(
|
|
59
|
-
|
|
59
|
+
16205,
|
|
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(16206, "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(16206, "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(16206, "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
|
+
16206,
|
|
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(16206, "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(16207, "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(16208, "Arguments to pass to the command to execute."))
|
|
105
105
|
},
|
|
106
106
|
key: {
|
|
107
107
|
description: ( localize(
|
|
108
|
-
|
|
108
|
+
16209,
|
|
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(16210, "Mac specific key or key sequence.")),
|
|
115
115
|
type: "string"
|
|
116
116
|
},
|
|
117
117
|
linux: {
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(16211, "Linux specific key or key sequence.")),
|
|
119
119
|
type: "string"
|
|
120
120
|
},
|
|
121
121
|
win: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(16212, "Windows specific key or key sequence.")),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
when: {
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(16213, "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(16214, "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
|
+
16215,
|
|
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(16216, "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(16217, "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(16218, "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(16219, "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(16220, "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
|
+
16221,
|
|
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(16222, "Condition when the key is active."))
|
|
851
851
|
},
|
|
852
852
|
"args": {
|
|
853
|
-
"description": ( localize(
|
|
853
|
+
"description": ( localize(16223, "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(16224, "Keyboard")),
|
|
480
480
|
"properties": {
|
|
481
481
|
"keyboard.layout": {
|
|
482
482
|
"type": "string",
|
|
483
483
|
"default": "autodetect",
|
|
484
|
-
"description": ( localize(
|
|
484
|
+
"description": ( localize(16225, "Control the keyboard layout used in web."))
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
};
|