@codingame/monaco-vscode-keybindings-service-override 26.1.1 → 26.1.2
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 +148 -143
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -24
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-keybindings-service-override",
|
|
3
|
-
"version": "26.1.
|
|
3
|
+
"version": "26.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - keybindings service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "26.1.
|
|
19
|
-
"@codingame/monaco-vscode-files-service-override": "26.1.
|
|
18
|
+
"@codingame/monaco-vscode-api": "26.1.2",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "26.1.2"
|
|
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(6781, "Run Commands")),
|
|
14
14
|
f1: false,
|
|
15
15
|
metadata: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(6782, "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(6783, "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
|
+
6784,
|
|
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
|
+
6785,
|
|
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(8998, "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
|
+
10379,
|
|
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
|
+
10380,
|
|
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(10381, "**{0}** for your current keyboard layout.", uiLabel))));
|
|
194
194
|
}
|
|
195
195
|
className = "keybindingInfo";
|
|
196
196
|
overviewRulerColor = themeColorFromId(overviewRulerInfo);
|
|
@@ -20,190 +20,190 @@ import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
20
20
|
const apiMenus = [{
|
|
21
21
|
key: "commandPalette",
|
|
22
22
|
id: MenuId.CommandPalette,
|
|
23
|
-
description: ( localize(
|
|
23
|
+
description: ( localize(14156, "The Command Palette")),
|
|
24
24
|
supportsSubmenus: false
|
|
25
25
|
}, {
|
|
26
26
|
key: "touchBar",
|
|
27
27
|
id: MenuId.TouchBarContext,
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(14157, "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(14158, "The editor title menu"))
|
|
34
34
|
}, {
|
|
35
35
|
key: "editor/title/run",
|
|
36
36
|
id: MenuId.EditorTitleRun,
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(14159, "Run submenu inside the editor title menu"))
|
|
38
38
|
}, {
|
|
39
39
|
key: "editor/context",
|
|
40
40
|
id: MenuId.EditorContext,
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(14160, "The editor context menu"))
|
|
42
42
|
}, {
|
|
43
43
|
key: "editor/context/copy",
|
|
44
44
|
id: MenuId.EditorContextCopy,
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(14161, "'Copy as' submenu in the editor context menu"))
|
|
46
46
|
}, {
|
|
47
47
|
key: "editor/context/share",
|
|
48
48
|
id: MenuId.EditorContextShare,
|
|
49
|
-
description: ( localize(
|
|
49
|
+
description: ( localize(14162, "'Share' submenu in the editor context menu")),
|
|
50
50
|
proposed: "contribShareMenu"
|
|
51
51
|
}, {
|
|
52
52
|
key: "explorer/context",
|
|
53
53
|
id: MenuId.ExplorerContext,
|
|
54
|
-
description: ( localize(
|
|
54
|
+
description: ( localize(14163, "The file explorer context menu"))
|
|
55
55
|
}, {
|
|
56
56
|
key: "explorer/context/share",
|
|
57
57
|
id: MenuId.ExplorerContextShare,
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(14164, "'Share' submenu in the file explorer context menu")),
|
|
59
59
|
proposed: "contribShareMenu"
|
|
60
60
|
}, {
|
|
61
61
|
key: "editor/title/context",
|
|
62
62
|
id: MenuId.EditorTitleContext,
|
|
63
|
-
description: ( localize(
|
|
63
|
+
description: ( localize(14165, "The editor tabs context menu"))
|
|
64
64
|
}, {
|
|
65
65
|
key: "editor/title/context/share",
|
|
66
66
|
id: MenuId.EditorTitleContextShare,
|
|
67
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(14166, "'Share' submenu inside the editor title context menu")),
|
|
68
68
|
proposed: "contribShareMenu"
|
|
69
69
|
}, {
|
|
70
70
|
key: "debug/callstack/context",
|
|
71
71
|
id: MenuId.DebugCallStackContext,
|
|
72
|
-
description: ( localize(
|
|
72
|
+
description: ( localize(14167, "The debug callstack view context menu"))
|
|
73
73
|
}, {
|
|
74
74
|
key: "debug/variables/context",
|
|
75
75
|
id: MenuId.DebugVariablesContext,
|
|
76
|
-
description: ( localize(
|
|
76
|
+
description: ( localize(14168, "The debug variables view context menu"))
|
|
77
77
|
}, {
|
|
78
78
|
key: "debug/watch/context",
|
|
79
79
|
id: MenuId.DebugWatchContext,
|
|
80
|
-
description: ( localize(
|
|
80
|
+
description: ( localize(14169, "The debug watch view context menu"))
|
|
81
81
|
}, {
|
|
82
82
|
key: "debug/toolBar",
|
|
83
83
|
id: MenuId.DebugToolBar,
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(14170, "The debug toolbar menu"))
|
|
85
85
|
}, {
|
|
86
86
|
key: "debug/createConfiguration",
|
|
87
87
|
id: MenuId.DebugCreateConfiguration,
|
|
88
88
|
proposed: "contribDebugCreateConfiguration",
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(14171, "The debug create configuration menu"))
|
|
90
90
|
}, {
|
|
91
91
|
key: "notebook/variables/context",
|
|
92
92
|
id: MenuId.NotebookVariablesContext,
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(14172, "The notebook variables view context menu"))
|
|
94
94
|
}, {
|
|
95
95
|
key: "menuBar/home",
|
|
96
96
|
id: MenuId.MenubarHomeMenu,
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(14173, "The home indicator context menu (web only)")),
|
|
98
98
|
proposed: "contribMenuBarHome",
|
|
99
99
|
supportsSubmenus: false
|
|
100
100
|
}, {
|
|
101
101
|
key: "menuBar/edit/copy",
|
|
102
102
|
id: MenuId.MenubarCopy,
|
|
103
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(14174, "'Copy as' submenu in the top level Edit menu"))
|
|
104
104
|
}, {
|
|
105
105
|
key: "scm/title",
|
|
106
106
|
id: MenuId.SCMTitle,
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(14175, "The Source Control title menu"))
|
|
108
108
|
}, {
|
|
109
109
|
key: "scm/sourceControl",
|
|
110
110
|
id: MenuId.SCMSourceControl,
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(14176, "The Source Control menu"))
|
|
112
112
|
}, {
|
|
113
113
|
key: "scm/repositories/title",
|
|
114
114
|
id: MenuId.SCMSourceControlTitle,
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(14177, "The Source Control Repositories title menu")),
|
|
116
116
|
proposed: "contribSourceControlTitleMenu"
|
|
117
117
|
}, {
|
|
118
118
|
key: "scm/repository",
|
|
119
119
|
id: MenuId.SCMSourceControlInline,
|
|
120
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(14178, "The Source Control repository menu"))
|
|
121
121
|
}, {
|
|
122
122
|
key: "scm/resourceState/context",
|
|
123
123
|
id: MenuId.SCMResourceContext,
|
|
124
|
-
description: ( localize(
|
|
124
|
+
description: ( localize(14179, "The Source Control resource state context menu"))
|
|
125
125
|
}, {
|
|
126
126
|
key: "scm/resourceFolder/context",
|
|
127
127
|
id: MenuId.SCMResourceFolderContext,
|
|
128
|
-
description: ( localize(
|
|
128
|
+
description: ( localize(14180, "The Source Control resource folder context menu"))
|
|
129
129
|
}, {
|
|
130
130
|
key: "scm/resourceGroup/context",
|
|
131
131
|
id: MenuId.SCMResourceGroupContext,
|
|
132
|
-
description: ( localize(
|
|
132
|
+
description: ( localize(14181, "The Source Control resource group context menu"))
|
|
133
133
|
}, {
|
|
134
134
|
key: "scm/change/title",
|
|
135
135
|
id: MenuId.SCMChangeContext,
|
|
136
|
-
description: ( localize(
|
|
136
|
+
description: ( localize(14182, "The Source Control inline change menu"))
|
|
137
137
|
}, {
|
|
138
138
|
key: "scm/inputBox",
|
|
139
139
|
id: MenuId.SCMInputBox,
|
|
140
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(14183, "The Source Control input box menu")),
|
|
141
141
|
proposed: "contribSourceControlInputBoxMenu"
|
|
142
142
|
}, {
|
|
143
143
|
key: "scm/history/title",
|
|
144
144
|
id: MenuId.SCMHistoryTitle,
|
|
145
|
-
description: ( localize(
|
|
145
|
+
description: ( localize(14184, "The Source Control History title menu")),
|
|
146
146
|
proposed: "contribSourceControlHistoryTitleMenu"
|
|
147
147
|
}, {
|
|
148
148
|
key: "scm/historyItem/context",
|
|
149
149
|
id: MenuId.SCMHistoryItemContext,
|
|
150
|
-
description: ( localize(
|
|
150
|
+
description: ( localize(14185, "The Source Control history item context menu")),
|
|
151
151
|
proposed: "contribSourceControlHistoryItemMenu"
|
|
152
152
|
}, {
|
|
153
153
|
key: "scm/historyItemRef/context",
|
|
154
154
|
id: MenuId.SCMHistoryItemRefContext,
|
|
155
|
-
description: ( localize(
|
|
155
|
+
description: ( localize(14186, "The Source Control history item reference context menu")),
|
|
156
156
|
proposed: "contribSourceControlHistoryItemMenu"
|
|
157
157
|
}, {
|
|
158
158
|
key: "scm/artifactGroup/context",
|
|
159
159
|
id: MenuId.SCMArtifactGroupContext,
|
|
160
|
-
description: ( localize(
|
|
160
|
+
description: ( localize(14187, "The Source Control artifact group context menu")),
|
|
161
161
|
proposed: "contribSourceControlArtifactGroupMenu"
|
|
162
162
|
}, {
|
|
163
163
|
key: "scm/artifact/context",
|
|
164
164
|
id: MenuId.SCMArtifactContext,
|
|
165
|
-
description: ( localize(
|
|
165
|
+
description: ( localize(14188, "The Source Control artifact context menu")),
|
|
166
166
|
proposed: "contribSourceControlArtifactMenu"
|
|
167
167
|
}, {
|
|
168
168
|
key: "statusBar/remoteIndicator",
|
|
169
169
|
id: MenuId.StatusBarRemoteIndicatorMenu,
|
|
170
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(14189, "The remote indicator menu in the status bar")),
|
|
171
171
|
supportsSubmenus: false
|
|
172
172
|
}, {
|
|
173
173
|
key: "terminal/context",
|
|
174
174
|
id: MenuId.TerminalInstanceContext,
|
|
175
|
-
description: ( localize(
|
|
175
|
+
description: ( localize(14190, "The terminal context menu"))
|
|
176
176
|
}, {
|
|
177
177
|
key: "terminal/title/context",
|
|
178
178
|
id: MenuId.TerminalTabContext,
|
|
179
|
-
description: ( localize(
|
|
179
|
+
description: ( localize(14191, "The terminal tabs context menu"))
|
|
180
180
|
}, {
|
|
181
181
|
key: "view/title",
|
|
182
182
|
id: MenuId.ViewTitle,
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(14192, "The contributed view title menu"))
|
|
184
184
|
}, {
|
|
185
185
|
key: "viewContainer/title",
|
|
186
186
|
id: MenuId.ViewContainerTitle,
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(14193, "The contributed view container title menu")),
|
|
188
188
|
proposed: "contribViewContainerTitle"
|
|
189
189
|
}, {
|
|
190
190
|
key: "view/item/context",
|
|
191
191
|
id: MenuId.ViewItemContext,
|
|
192
|
-
description: ( localize(
|
|
192
|
+
description: ( localize(14194, "The contributed view item context menu"))
|
|
193
193
|
}, {
|
|
194
194
|
key: "comments/comment/editorActions",
|
|
195
195
|
id: MenuId.CommentEditorActions,
|
|
196
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(14195, "The contributed comment editor actions")),
|
|
197
197
|
proposed: "contribCommentEditorActionsMenu"
|
|
198
198
|
}, {
|
|
199
199
|
key: "comments/commentThread/title",
|
|
200
200
|
id: MenuId.CommentThreadTitle,
|
|
201
|
-
description: ( localize(
|
|
201
|
+
description: ( localize(14196, "The contributed comment thread title menu"))
|
|
202
202
|
}, {
|
|
203
203
|
key: "comments/commentThread/context",
|
|
204
204
|
id: MenuId.CommentThreadActions,
|
|
205
205
|
description: ( localize(
|
|
206
|
-
|
|
206
|
+
14197,
|
|
207
207
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
208
208
|
)),
|
|
209
209
|
supportsSubmenus: false
|
|
@@ -211,7 +211,7 @@ const apiMenus = [{
|
|
|
211
211
|
key: "comments/commentThread/additionalActions",
|
|
212
212
|
id: MenuId.CommentThreadAdditionalActions,
|
|
213
213
|
description: ( localize(
|
|
214
|
-
|
|
214
|
+
14197,
|
|
215
215
|
"The contributed comment thread context menu, rendered as buttons below the comment editor"
|
|
216
216
|
)),
|
|
217
217
|
supportsSubmenus: true,
|
|
@@ -220,19 +220,19 @@ const apiMenus = [{
|
|
|
220
220
|
key: "comments/commentThread/title/context",
|
|
221
221
|
id: MenuId.CommentThreadTitleContext,
|
|
222
222
|
description: ( localize(
|
|
223
|
-
|
|
223
|
+
14198,
|
|
224
224
|
"The contributed comment thread title's peek context menu, rendered as a right click menu on the comment thread's peek title."
|
|
225
225
|
)),
|
|
226
226
|
proposed: "contribCommentPeekContext"
|
|
227
227
|
}, {
|
|
228
228
|
key: "comments/comment/title",
|
|
229
229
|
id: MenuId.CommentTitle,
|
|
230
|
-
description: ( localize(
|
|
230
|
+
description: ( localize(14199, "The contributed comment title menu"))
|
|
231
231
|
}, {
|
|
232
232
|
key: "comments/comment/context",
|
|
233
233
|
id: MenuId.CommentActions,
|
|
234
234
|
description: ( localize(
|
|
235
|
-
|
|
235
|
+
14200,
|
|
236
236
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
237
237
|
)),
|
|
238
238
|
supportsSubmenus: false
|
|
@@ -240,199 +240,204 @@ const apiMenus = [{
|
|
|
240
240
|
key: "comments/commentThread/comment/context",
|
|
241
241
|
id: MenuId.CommentThreadCommentContext,
|
|
242
242
|
description: ( localize(
|
|
243
|
-
|
|
243
|
+
14201,
|
|
244
244
|
"The contributed comment context menu, rendered as a right click menu on the an individual comment in the comment thread's peek view."
|
|
245
245
|
)),
|
|
246
246
|
proposed: "contribCommentPeekContext"
|
|
247
247
|
}, {
|
|
248
248
|
key: "commentsView/commentThread/context",
|
|
249
249
|
id: MenuId.CommentsViewThreadActions,
|
|
250
|
-
description: ( localize(
|
|
250
|
+
description: ( localize(14202, "The contributed comment thread context menu in the comments view")),
|
|
251
251
|
proposed: "contribCommentsViewThreadMenus"
|
|
252
252
|
}, {
|
|
253
253
|
key: "notebook/toolbar",
|
|
254
254
|
id: MenuId.NotebookToolbar,
|
|
255
|
-
description: ( localize(
|
|
255
|
+
description: ( localize(14203, "The contributed notebook toolbar menu"))
|
|
256
256
|
}, {
|
|
257
257
|
key: "notebook/kernelSource",
|
|
258
258
|
id: MenuId.NotebookKernelSource,
|
|
259
|
-
description: ( localize(
|
|
259
|
+
description: ( localize(14204, "The contributed notebook kernel sources menu")),
|
|
260
260
|
proposed: "notebookKernelSource"
|
|
261
261
|
}, {
|
|
262
262
|
key: "notebook/cell/title",
|
|
263
263
|
id: MenuId.NotebookCellTitle,
|
|
264
|
-
description: ( localize(
|
|
264
|
+
description: ( localize(14205, "The contributed notebook cell title menu"))
|
|
265
265
|
}, {
|
|
266
266
|
key: "notebook/cell/execute",
|
|
267
267
|
id: MenuId.NotebookCellExecute,
|
|
268
|
-
description: ( localize(
|
|
268
|
+
description: ( localize(14206, "The contributed notebook cell execution menu"))
|
|
269
269
|
}, {
|
|
270
270
|
key: "interactive/toolbar",
|
|
271
271
|
id: MenuId.InteractiveToolbar,
|
|
272
|
-
description: ( localize(
|
|
272
|
+
description: ( localize(14207, "The contributed interactive toolbar menu"))
|
|
273
273
|
}, {
|
|
274
274
|
key: "interactive/cell/title",
|
|
275
275
|
id: MenuId.InteractiveCellTitle,
|
|
276
|
-
description: ( localize(
|
|
276
|
+
description: ( localize(14208, "The contributed interactive cell title menu"))
|
|
277
277
|
}, {
|
|
278
278
|
key: "issue/reporter",
|
|
279
279
|
id: MenuId.IssueReporter,
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(14209, "The contributed issue reporter menu"))
|
|
281
281
|
}, {
|
|
282
282
|
key: "testing/item/context",
|
|
283
283
|
id: MenuId.TestItem,
|
|
284
|
-
description: ( localize(
|
|
284
|
+
description: ( localize(14210, "The contributed test item menu"))
|
|
285
285
|
}, {
|
|
286
286
|
key: "testing/item/gutter",
|
|
287
287
|
id: MenuId.TestItemGutter,
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(14211, "The menu for a gutter decoration for a test item"))
|
|
289
289
|
}, {
|
|
290
290
|
key: "testing/profiles/context",
|
|
291
291
|
id: MenuId.TestProfilesContext,
|
|
292
|
-
description: ( localize(
|
|
292
|
+
description: ( localize(14212, "The menu for configuring testing profiles."))
|
|
293
293
|
}, {
|
|
294
294
|
key: "testing/item/result",
|
|
295
295
|
id: MenuId.TestPeekElement,
|
|
296
|
-
description: ( localize(
|
|
296
|
+
description: ( localize(14213, "The menu for an item in the Test Results view or peek."))
|
|
297
297
|
}, {
|
|
298
298
|
key: "testing/message/context",
|
|
299
299
|
id: MenuId.TestMessageContext,
|
|
300
300
|
description: ( localize(
|
|
301
|
-
|
|
301
|
+
14214,
|
|
302
302
|
"A prominent button overlaying editor content where the message is displayed"
|
|
303
303
|
))
|
|
304
304
|
}, {
|
|
305
305
|
key: "testing/message/content",
|
|
306
306
|
id: MenuId.TestMessageContent,
|
|
307
|
-
description: ( localize(
|
|
307
|
+
description: ( localize(14215, "Context menu for the message in the results tree"))
|
|
308
308
|
}, {
|
|
309
309
|
key: "extension/context",
|
|
310
310
|
id: MenuId.ExtensionContext,
|
|
311
|
-
description: ( localize(
|
|
311
|
+
description: ( localize(14216, "The extension context menu"))
|
|
312
312
|
}, {
|
|
313
313
|
key: "timeline/title",
|
|
314
314
|
id: MenuId.TimelineTitle,
|
|
315
|
-
description: ( localize(
|
|
315
|
+
description: ( localize(14217, "The Timeline view title menu"))
|
|
316
316
|
}, {
|
|
317
317
|
key: "timeline/item/context",
|
|
318
318
|
id: MenuId.TimelineItemContext,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(14218, "The Timeline view item context menu"))
|
|
320
320
|
}, {
|
|
321
321
|
key: "ports/item/context",
|
|
322
322
|
id: MenuId.TunnelContext,
|
|
323
|
-
description: ( localize(
|
|
323
|
+
description: ( localize(14219, "The Ports view item context menu"))
|
|
324
324
|
}, {
|
|
325
325
|
key: "ports/item/origin/inline",
|
|
326
326
|
id: MenuId.TunnelOriginInline,
|
|
327
|
-
description: ( localize(
|
|
327
|
+
description: ( localize(14220, "The Ports view item origin inline menu"))
|
|
328
328
|
}, {
|
|
329
329
|
key: "ports/item/port/inline",
|
|
330
330
|
id: MenuId.TunnelPortInline,
|
|
331
|
-
description: ( localize(
|
|
331
|
+
description: ( localize(14221, "The Ports view item port inline menu"))
|
|
332
332
|
}, {
|
|
333
333
|
key: "file/newFile",
|
|
334
334
|
id: MenuId.NewFile,
|
|
335
335
|
description: ( localize(
|
|
336
|
-
|
|
336
|
+
14222,
|
|
337
337
|
"The 'New File...' quick pick, shown on welcome page and File menu."
|
|
338
338
|
)),
|
|
339
339
|
supportsSubmenus: false
|
|
340
340
|
}, {
|
|
341
341
|
key: "webview/context",
|
|
342
342
|
id: MenuId.WebviewContext,
|
|
343
|
-
description: ( localize(
|
|
343
|
+
description: ( localize(14223, "The webview context menu"))
|
|
344
344
|
}, {
|
|
345
345
|
key: "file/share",
|
|
346
346
|
id: MenuId.MenubarShare,
|
|
347
|
-
description: ( localize(
|
|
347
|
+
description: ( localize(14224, "Share submenu shown in the top level File menu.")),
|
|
348
348
|
proposed: "contribShareMenu"
|
|
349
349
|
}, {
|
|
350
350
|
key: "editor/inlineCompletions/actions",
|
|
351
351
|
id: MenuId.InlineCompletionsActions,
|
|
352
|
-
description: ( localize(
|
|
352
|
+
description: ( localize(14225, "The actions shown when hovering on an inline completion")),
|
|
353
353
|
supportsSubmenus: false,
|
|
354
354
|
proposed: "inlineCompletionsAdditions"
|
|
355
355
|
}, {
|
|
356
356
|
key: "editor/content",
|
|
357
357
|
id: MenuId.EditorContent,
|
|
358
|
-
description: ( localize(
|
|
358
|
+
description: ( localize(14226, "The prominent button in an editor, overlays its content")),
|
|
359
359
|
proposed: "contribEditorContentMenu"
|
|
360
360
|
}, {
|
|
361
361
|
key: "editor/lineNumber/context",
|
|
362
362
|
id: MenuId.EditorLineNumberContext,
|
|
363
|
-
description: ( localize(
|
|
363
|
+
description: ( localize(14227, "The contributed editor line number context menu"))
|
|
364
364
|
}, {
|
|
365
365
|
key: "mergeEditor/result/title",
|
|
366
366
|
id: MenuId.MergeInputResultToolbar,
|
|
367
|
-
description: ( localize(
|
|
367
|
+
description: ( localize(14228, "The result toolbar of the merge editor")),
|
|
368
368
|
proposed: "contribMergeEditorMenus"
|
|
369
369
|
}, {
|
|
370
370
|
key: "multiDiffEditor/content",
|
|
371
371
|
id: MenuId.MultiDiffEditorContent,
|
|
372
|
-
description: ( localize(
|
|
372
|
+
description: ( localize(14229, "A prominent button overlaying the multi diff editor")),
|
|
373
373
|
proposed: "contribEditorContentMenu"
|
|
374
374
|
}, {
|
|
375
375
|
key: "multiDiffEditor/resource/title",
|
|
376
376
|
id: MenuId.MultiDiffEditorFileToolbar,
|
|
377
|
-
description: ( localize(
|
|
377
|
+
description: ( localize(14230, "The resource toolbar in the multi diff editor")),
|
|
378
378
|
proposed: "contribMultiDiffEditorMenus"
|
|
379
379
|
}, {
|
|
380
380
|
key: "diffEditor/gutter/hunk",
|
|
381
381
|
id: MenuId.DiffEditorHunkToolbar,
|
|
382
|
-
description: ( localize(
|
|
382
|
+
description: ( localize(14231, "The gutter toolbar in the diff editor")),
|
|
383
383
|
proposed: "contribDiffEditorGutterToolBarMenus"
|
|
384
384
|
}, {
|
|
385
385
|
key: "diffEditor/gutter/selection",
|
|
386
386
|
id: MenuId.DiffEditorSelectionToolbar,
|
|
387
|
-
description: ( localize(
|
|
387
|
+
description: ( localize(14231, "The gutter toolbar in the diff editor")),
|
|
388
388
|
proposed: "contribDiffEditorGutterToolBarMenus"
|
|
389
389
|
}, {
|
|
390
390
|
key: "searchPanel/aiResults/commands",
|
|
391
391
|
id: MenuId.SearchActionMenu,
|
|
392
392
|
description: ( localize(
|
|
393
|
-
|
|
393
|
+
14232,
|
|
394
394
|
"The commands that will contribute to the menu rendered as buttons next to the AI search title"
|
|
395
395
|
))
|
|
396
396
|
}, {
|
|
397
397
|
key: "editor/context/chat",
|
|
398
398
|
id: MenuId.ChatTextEditorMenu,
|
|
399
|
-
description: ( localize(
|
|
399
|
+
description: ( localize(14233, "The Chat submenu in the text editor context menu.")),
|
|
400
400
|
supportsSubmenus: false,
|
|
401
401
|
proposed: "chatParticipantPrivate"
|
|
402
402
|
}, {
|
|
403
403
|
key: "chat/input/editing/sessionToolbar",
|
|
404
404
|
id: MenuId.ChatEditingSessionChangesToolbar,
|
|
405
|
-
description: ( localize(
|
|
405
|
+
description: ( localize(14234, "The Chat Editing widget toolbar menu for session changes.")),
|
|
406
406
|
proposed: "chatSessionsProvider"
|
|
407
407
|
}, {
|
|
408
408
|
key: "chat/chatSessions",
|
|
409
409
|
id: MenuId.AgentSessionsContext,
|
|
410
|
-
description: ( localize(
|
|
410
|
+
description: ( localize(14235, "The Chat Sessions menu.")),
|
|
411
411
|
supportsSubmenus: false,
|
|
412
412
|
proposed: "chatSessionsProvider"
|
|
413
413
|
}, {
|
|
414
414
|
key: "chatSessions/newSession",
|
|
415
415
|
id: MenuId.AgentSessionsCreateSubMenu,
|
|
416
|
-
description: ( localize(
|
|
416
|
+
description: ( localize(14236, "Menu for new chat sessions.")),
|
|
417
417
|
supportsSubmenus: false,
|
|
418
418
|
proposed: "chatSessionsProvider"
|
|
419
419
|
}, {
|
|
420
420
|
key: "chat/multiDiff/context",
|
|
421
421
|
id: MenuId.ChatMultiDiffContext,
|
|
422
|
-
description: ( localize(
|
|
422
|
+
description: ( localize(14237, "The Chat Multi-Diff context menu.")),
|
|
423
423
|
supportsSubmenus: false,
|
|
424
424
|
proposed: "chatSessionsProvider"
|
|
425
425
|
}, {
|
|
426
426
|
key: "chat/editor/inlineGutter",
|
|
427
427
|
id: MenuId.ChatEditorInlineGutter,
|
|
428
|
-
description: ( localize(
|
|
428
|
+
description: ( localize(14238, "The inline gutter menu in the chat editor.")),
|
|
429
429
|
supportsSubmenus: false,
|
|
430
430
|
proposed: "contribChatEditorInlineGutterMenu"
|
|
431
431
|
}, {
|
|
432
432
|
key: "chat/contextUsage/actions",
|
|
433
433
|
id: MenuId.ChatContextUsageActions,
|
|
434
|
-
description: ( localize(
|
|
434
|
+
description: ( localize(14239, "Actions in the chat context usage details popup.")),
|
|
435
435
|
proposed: "chatParticipantAdditions"
|
|
436
|
+
}, {
|
|
437
|
+
key: "chat/newSession",
|
|
438
|
+
id: MenuId.ChatNewMenu,
|
|
439
|
+
description: ( localize(14240, "The Chat new session menu.")),
|
|
440
|
+
proposed: "chatSessionsProvider"
|
|
436
441
|
}];
|
|
437
442
|
var schema;
|
|
438
443
|
(function(schema) {
|
|
@@ -443,23 +448,23 @@ var schema;
|
|
|
443
448
|
function isValidMenuItem(item, collector) {
|
|
444
449
|
if (typeof item.command !== "string") {
|
|
445
450
|
collector.error(( localize(
|
|
446
|
-
|
|
451
|
+
14241,
|
|
447
452
|
"property `{0}` is mandatory and must be of type `string`",
|
|
448
453
|
"command"
|
|
449
454
|
)));
|
|
450
455
|
return false;
|
|
451
456
|
}
|
|
452
457
|
if (item.alt && typeof item.alt !== "string") {
|
|
453
|
-
collector.error(( localize(
|
|
458
|
+
collector.error(( localize(14242, "property `{0}` can be omitted or must be of type `string`", "alt")));
|
|
454
459
|
return false;
|
|
455
460
|
}
|
|
456
461
|
if (item.when && typeof item.when !== "string") {
|
|
457
|
-
collector.error(( localize(
|
|
462
|
+
collector.error(( localize(14242, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
458
463
|
return false;
|
|
459
464
|
}
|
|
460
465
|
if (item.group && typeof item.group !== "string") {
|
|
461
466
|
collector.error(( localize(
|
|
462
|
-
|
|
467
|
+
14242,
|
|
463
468
|
"property `{0}` can be omitted or must be of type `string`",
|
|
464
469
|
"group"
|
|
465
470
|
)));
|
|
@@ -471,19 +476,19 @@ var schema;
|
|
|
471
476
|
function isValidSubmenuItem(item, collector) {
|
|
472
477
|
if (typeof item.submenu !== "string") {
|
|
473
478
|
collector.error(( localize(
|
|
474
|
-
|
|
479
|
+
14241,
|
|
475
480
|
"property `{0}` is mandatory and must be of type `string`",
|
|
476
481
|
"submenu"
|
|
477
482
|
)));
|
|
478
483
|
return false;
|
|
479
484
|
}
|
|
480
485
|
if (item.when && typeof item.when !== "string") {
|
|
481
|
-
collector.error(( localize(
|
|
486
|
+
collector.error(( localize(14242, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
482
487
|
return false;
|
|
483
488
|
}
|
|
484
489
|
if (item.group && typeof item.group !== "string") {
|
|
485
490
|
collector.error(( localize(
|
|
486
|
-
|
|
491
|
+
14242,
|
|
487
492
|
"property `{0}` can be omitted or must be of type `string`",
|
|
488
493
|
"group"
|
|
489
494
|
)));
|
|
@@ -494,7 +499,7 @@ var schema;
|
|
|
494
499
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
495
500
|
function isValidItems(items, collector) {
|
|
496
501
|
if (!Array.isArray(items)) {
|
|
497
|
-
collector.error(( localize(
|
|
502
|
+
collector.error(( localize(14243, "submenu items must be an array")));
|
|
498
503
|
return false;
|
|
499
504
|
}
|
|
500
505
|
for (const item of items) {
|
|
@@ -513,15 +518,15 @@ var schema;
|
|
|
513
518
|
schema.isValidItems = isValidItems;
|
|
514
519
|
function isValidSubmenu(submenu, collector) {
|
|
515
520
|
if (typeof submenu !== "object") {
|
|
516
|
-
collector.error(( localize(
|
|
521
|
+
collector.error(( localize(14244, "submenu items must be an object")));
|
|
517
522
|
return false;
|
|
518
523
|
}
|
|
519
524
|
if (typeof submenu.id !== "string") {
|
|
520
|
-
collector.error(( localize(
|
|
525
|
+
collector.error(( localize(14241, "property `{0}` is mandatory and must be of type `string`", "id")));
|
|
521
526
|
return false;
|
|
522
527
|
}
|
|
523
528
|
if (typeof submenu.label !== "string") {
|
|
524
|
-
collector.error(( localize(
|
|
529
|
+
collector.error(( localize(14241, "property `{0}` is mandatory and must be of type `string`", "label")));
|
|
525
530
|
return false;
|
|
526
531
|
}
|
|
527
532
|
return true;
|
|
@@ -533,24 +538,24 @@ var schema;
|
|
|
533
538
|
properties: {
|
|
534
539
|
command: {
|
|
535
540
|
description: ( localize(
|
|
536
|
-
|
|
541
|
+
14245,
|
|
537
542
|
"Identifier of the command to execute. The command must be declared in the 'commands'-section"
|
|
538
543
|
)),
|
|
539
544
|
type: "string"
|
|
540
545
|
},
|
|
541
546
|
alt: {
|
|
542
547
|
description: ( localize(
|
|
543
|
-
|
|
548
|
+
14246,
|
|
544
549
|
"Identifier of an alternative command to execute. The command must be declared in the 'commands'-section"
|
|
545
550
|
)),
|
|
546
551
|
type: "string"
|
|
547
552
|
},
|
|
548
553
|
when: {
|
|
549
|
-
description: ( localize(
|
|
554
|
+
description: ( localize(14247, "Condition which must be true to show this item")),
|
|
550
555
|
type: "string"
|
|
551
556
|
},
|
|
552
557
|
group: {
|
|
553
|
-
description: ( localize(
|
|
558
|
+
description: ( localize(14248, "Group into which this item belongs")),
|
|
554
559
|
type: "string"
|
|
555
560
|
}
|
|
556
561
|
}
|
|
@@ -560,15 +565,15 @@ var schema;
|
|
|
560
565
|
required: ["submenu"],
|
|
561
566
|
properties: {
|
|
562
567
|
submenu: {
|
|
563
|
-
description: ( localize(
|
|
568
|
+
description: ( localize(14249, "Identifier of the submenu to display in this item.")),
|
|
564
569
|
type: "string"
|
|
565
570
|
},
|
|
566
571
|
when: {
|
|
567
|
-
description: ( localize(
|
|
572
|
+
description: ( localize(14247, "Condition which must be true to show this item")),
|
|
568
573
|
type: "string"
|
|
569
574
|
},
|
|
570
575
|
group: {
|
|
571
|
-
description: ( localize(
|
|
576
|
+
description: ( localize(14248, "Group into which this item belongs")),
|
|
572
577
|
type: "string"
|
|
573
578
|
}
|
|
574
579
|
}
|
|
@@ -578,16 +583,16 @@ var schema;
|
|
|
578
583
|
required: ["id", "label"],
|
|
579
584
|
properties: {
|
|
580
585
|
id: {
|
|
581
|
-
description: ( localize(
|
|
586
|
+
description: ( localize(14250, "Identifier of the menu to display as a submenu.")),
|
|
582
587
|
type: "string"
|
|
583
588
|
},
|
|
584
589
|
label: {
|
|
585
|
-
description: ( localize(
|
|
590
|
+
description: ( localize(14251, "The label of the menu item which leads to this submenu.")),
|
|
586
591
|
type: "string"
|
|
587
592
|
},
|
|
588
593
|
icon: {
|
|
589
594
|
description: ( localize(
|
|
590
|
-
|
|
595
|
+
14252,
|
|
591
596
|
"(Optional) Icon which is used to represent the submenu in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like \"\\$(zap)\""
|
|
592
597
|
)),
|
|
593
598
|
anyOf: [{
|
|
@@ -596,11 +601,11 @@ var schema;
|
|
|
596
601
|
type: "object",
|
|
597
602
|
properties: {
|
|
598
603
|
light: {
|
|
599
|
-
description: ( localize(
|
|
604
|
+
description: ( localize(14253, "Icon path when a light theme is used")),
|
|
600
605
|
type: "string"
|
|
601
606
|
},
|
|
602
607
|
dark: {
|
|
603
|
-
description: ( localize(
|
|
608
|
+
description: ( localize(14254, "Icon path when a dark theme is used")),
|
|
604
609
|
type: "string"
|
|
605
610
|
}
|
|
606
611
|
}
|
|
@@ -609,11 +614,11 @@ var schema;
|
|
|
609
614
|
}
|
|
610
615
|
};
|
|
611
616
|
schema.menusContribution = {
|
|
612
|
-
description: ( localize(
|
|
617
|
+
description: ( localize(14255, "Contributes menu items to the editor")),
|
|
613
618
|
type: "object",
|
|
614
619
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
615
620
|
markdownDescription: menu.proposed ? ( localize(
|
|
616
|
-
|
|
621
|
+
14256,
|
|
617
622
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
618
623
|
menu.proposed,
|
|
619
624
|
menu.description
|
|
@@ -632,18 +637,18 @@ var schema;
|
|
|
632
637
|
}
|
|
633
638
|
};
|
|
634
639
|
schema.submenusContribution = {
|
|
635
|
-
description: ( localize(
|
|
640
|
+
description: ( localize(14257, "Contributes submenu items to the editor")),
|
|
636
641
|
type: "array",
|
|
637
642
|
items: submenu
|
|
638
643
|
};
|
|
639
644
|
function isValidCommand(command, collector) {
|
|
640
645
|
if (!command) {
|
|
641
|
-
collector.error(( localize(
|
|
646
|
+
collector.error(( localize(14258, "expected non-empty value.")));
|
|
642
647
|
return false;
|
|
643
648
|
}
|
|
644
649
|
if (isFalsyOrWhitespace(command.command)) {
|
|
645
650
|
collector.error(( localize(
|
|
646
|
-
|
|
651
|
+
14241,
|
|
647
652
|
"property `{0}` is mandatory and must be of type `string`",
|
|
648
653
|
"command"
|
|
649
654
|
)));
|
|
@@ -657,7 +662,7 @@ var schema;
|
|
|
657
662
|
}
|
|
658
663
|
if (command.enablement && typeof command.enablement !== "string") {
|
|
659
664
|
collector.error(( localize(
|
|
660
|
-
|
|
665
|
+
14242,
|
|
661
666
|
"property `{0}` can be omitted or must be of type `string`",
|
|
662
667
|
"precondition"
|
|
663
668
|
)));
|
|
@@ -682,7 +687,7 @@ var schema;
|
|
|
682
687
|
return true;
|
|
683
688
|
}
|
|
684
689
|
collector.error(( localize(
|
|
685
|
-
|
|
690
|
+
14259,
|
|
686
691
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
687
692
|
)));
|
|
688
693
|
return false;
|
|
@@ -690,21 +695,21 @@ var schema;
|
|
|
690
695
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
691
696
|
if (typeof localized === "undefined") {
|
|
692
697
|
collector.error(( localize(
|
|
693
|
-
|
|
698
|
+
14260,
|
|
694
699
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
695
700
|
propertyName
|
|
696
701
|
)));
|
|
697
702
|
return false;
|
|
698
703
|
} else if (typeof localized === "string" && isFalsyOrWhitespace(localized)) {
|
|
699
704
|
collector.error(( localize(
|
|
700
|
-
|
|
705
|
+
14241,
|
|
701
706
|
"property `{0}` is mandatory and must be of type `string`",
|
|
702
707
|
propertyName
|
|
703
708
|
)));
|
|
704
709
|
return false;
|
|
705
710
|
} else if (typeof localized !== "string" && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
706
711
|
collector.error(( localize(
|
|
707
|
-
|
|
712
|
+
14261,
|
|
708
713
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
709
714
|
`${propertyName}.value`,
|
|
710
715
|
`${propertyName}.original`
|
|
@@ -718,37 +723,37 @@ var schema;
|
|
|
718
723
|
required: ["command", "title"],
|
|
719
724
|
properties: {
|
|
720
725
|
command: {
|
|
721
|
-
description: ( localize(
|
|
726
|
+
description: ( localize(14262, "Identifier of the command to execute")),
|
|
722
727
|
type: "string"
|
|
723
728
|
},
|
|
724
729
|
title: {
|
|
725
|
-
description: ( localize(
|
|
730
|
+
description: ( localize(14263, "Title by which the command is represented in the UI")),
|
|
726
731
|
type: "string"
|
|
727
732
|
},
|
|
728
733
|
shortTitle: {
|
|
729
734
|
markdownDescription: ( localize(
|
|
730
|
-
|
|
735
|
+
14264,
|
|
731
736
|
"(Optional) Short title by which the command is represented in the UI. Menus pick either `title` or `shortTitle` depending on the context in which they show commands."
|
|
732
737
|
)),
|
|
733
738
|
type: "string"
|
|
734
739
|
},
|
|
735
740
|
category: {
|
|
736
741
|
description: ( localize(
|
|
737
|
-
|
|
742
|
+
14265,
|
|
738
743
|
"(Optional) Category string by which the command is grouped in the UI"
|
|
739
744
|
)),
|
|
740
745
|
type: "string"
|
|
741
746
|
},
|
|
742
747
|
enablement: {
|
|
743
748
|
description: ( localize(
|
|
744
|
-
|
|
749
|
+
14266,
|
|
745
750
|
"(Optional) Condition which must be true to enable the command in the UI (menu and keybindings). Does not prevent executing the command by other means, like the `executeCommand`-api."
|
|
746
751
|
)),
|
|
747
752
|
type: "string"
|
|
748
753
|
},
|
|
749
754
|
icon: {
|
|
750
755
|
description: ( localize(
|
|
751
|
-
|
|
756
|
+
14267,
|
|
752
757
|
"(Optional) Icon which is used to represent the command in the UI. Either a file path, an object with file paths for dark and light themes, or a theme icon references, like \"\\$(zap)\""
|
|
753
758
|
)),
|
|
754
759
|
anyOf: [{
|
|
@@ -757,11 +762,11 @@ var schema;
|
|
|
757
762
|
type: "object",
|
|
758
763
|
properties: {
|
|
759
764
|
light: {
|
|
760
|
-
description: ( localize(
|
|
765
|
+
description: ( localize(14268, "Icon path when a light theme is used")),
|
|
761
766
|
type: "string"
|
|
762
767
|
},
|
|
763
768
|
dark: {
|
|
764
|
-
description: ( localize(
|
|
769
|
+
description: ( localize(14269, "Icon path when a dark theme is used")),
|
|
765
770
|
type: "string"
|
|
766
771
|
}
|
|
767
772
|
}
|
|
@@ -770,7 +775,7 @@ var schema;
|
|
|
770
775
|
}
|
|
771
776
|
};
|
|
772
777
|
schema.commandsContribution = {
|
|
773
|
-
description: ( localize(
|
|
778
|
+
description: ( localize(14270, "Contributes commands to the command palette.")),
|
|
774
779
|
oneOf: [commandType, {
|
|
775
780
|
type: "array",
|
|
776
781
|
items: commandType
|
|
@@ -820,14 +825,14 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
820
825
|
if (existingCmd) {
|
|
821
826
|
if (existingCmd.source) {
|
|
822
827
|
extension.collector.info(( localize(
|
|
823
|
-
|
|
828
|
+
14271,
|
|
824
829
|
"Command `{0}` already registered by {1} ({2})",
|
|
825
830
|
userFriendlyCommand.command,
|
|
826
831
|
existingCmd.source.title,
|
|
827
832
|
existingCmd.source.id
|
|
828
833
|
)));
|
|
829
834
|
} else {
|
|
830
|
-
extension.collector.info(( localize(
|
|
835
|
+
extension.collector.info(( localize(14272, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
831
836
|
}
|
|
832
837
|
}
|
|
833
838
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -875,19 +880,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
875
880
|
continue;
|
|
876
881
|
}
|
|
877
882
|
if (!submenuInfo.id) {
|
|
878
|
-
collector.warn(( localize(
|
|
883
|
+
collector.warn(( localize(14273, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
879
884
|
continue;
|
|
880
885
|
}
|
|
881
886
|
if (( _submenus.has(submenuInfo.id))) {
|
|
882
887
|
collector.info(( localize(
|
|
883
|
-
|
|
888
|
+
14274,
|
|
884
889
|
"The `{0}` submenu was already previously registered.",
|
|
885
890
|
submenuInfo.id
|
|
886
891
|
)));
|
|
887
892
|
continue;
|
|
888
893
|
}
|
|
889
894
|
if (!submenuInfo.label) {
|
|
890
|
-
collector.warn(( localize(
|
|
895
|
+
collector.warn(( localize(14275, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
891
896
|
continue;
|
|
892
897
|
}
|
|
893
898
|
let absoluteIcon;
|
|
@@ -948,7 +953,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
948
953
|
}
|
|
949
954
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
950
955
|
collector.error(( localize(
|
|
951
|
-
|
|
956
|
+
14276,
|
|
952
957
|
"{0} is a proposed menu identifier. It requires 'package.json#enabledApiProposals: [\"{1}\"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api {2}",
|
|
953
958
|
entry[0],
|
|
954
959
|
menu.proposed,
|
|
@@ -963,7 +968,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
963
968
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
964
969
|
if (!command) {
|
|
965
970
|
collector.error(( localize(
|
|
966
|
-
|
|
971
|
+
14277,
|
|
967
972
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
968
973
|
menuItem.command
|
|
969
974
|
)));
|
|
@@ -971,13 +976,13 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
971
976
|
}
|
|
972
977
|
if (menuItem.alt && !alt) {
|
|
973
978
|
collector.warn(( localize(
|
|
974
|
-
|
|
979
|
+
14278,
|
|
975
980
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
976
981
|
menuItem.alt
|
|
977
982
|
)));
|
|
978
983
|
}
|
|
979
984
|
if (menuItem.command === menuItem.alt) {
|
|
980
|
-
collector.info(( localize(
|
|
985
|
+
collector.info(( localize(14279, "Menu item references the same command as default and alt-command")));
|
|
981
986
|
}
|
|
982
987
|
item = {
|
|
983
988
|
command,
|
|
@@ -989,7 +994,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
989
994
|
} else {
|
|
990
995
|
if (menu.supportsSubmenus === false) {
|
|
991
996
|
collector.error(( localize(
|
|
992
|
-
|
|
997
|
+
14280,
|
|
993
998
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
994
999
|
)));
|
|
995
1000
|
continue;
|
|
@@ -997,7 +1002,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
997
1002
|
const submenu = _submenus.get(menuItem.submenu);
|
|
998
1003
|
if (!submenu) {
|
|
999
1004
|
collector.error(( localize(
|
|
1000
|
-
|
|
1005
|
+
14281,
|
|
1001
1006
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1002
1007
|
menuItem.submenu
|
|
1003
1008
|
)));
|
|
@@ -1010,7 +1015,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1010
1015
|
}
|
|
1011
1016
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1012
1017
|
collector.warn(( localize(
|
|
1013
|
-
|
|
1018
|
+
14282,
|
|
1014
1019
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1015
1020
|
menuItem.submenu,
|
|
1016
1021
|
entry[0]
|
|
@@ -1038,7 +1043,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1038
1043
|
}
|
|
1039
1044
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes("viewContainer == workbench.view.debug")) {
|
|
1040
1045
|
collector.error(( localize(
|
|
1041
|
-
|
|
1046
|
+
14283,
|
|
1042
1047
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1043
1048
|
"`viewContainer/title`",
|
|
1044
1049
|
"`viewContainer == workbench.view.debug`",
|
|
@@ -1140,7 +1145,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1140
1145
|
dispose: () => {}
|
|
1141
1146
|
};
|
|
1142
1147
|
}
|
|
1143
|
-
const headers = [( localize(
|
|
1148
|
+
const headers = [( localize(14284, "ID")), ( localize(14285, "Title")), ( localize(14286, "Keyboard Shortcuts")), ( localize(14287, "Menu Contexts"))];
|
|
1144
1149
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id)).map(command => {
|
|
1145
1150
|
return [( new MarkdownString()).appendMarkdown(`\`${command.id}\``), typeof command.title === "string" ? command.title : command.title.value, command.keybindings, ( new MarkdownString()).appendMarkdown(`${( command.menus.sort((a, b) => a.localeCompare(b)).map(menu => `\`${menu}\``)).join(" ")}`)];
|
|
1146
1151
|
}));
|
|
@@ -1171,7 +1176,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1171
1176
|
CommandsTableRenderer = ( __decorate([( __param(0, IKeybindingService))], CommandsTableRenderer));
|
|
1172
1177
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1173
1178
|
id: "commands",
|
|
1174
|
-
label: ( localize(
|
|
1179
|
+
label: ( localize(14288, "Commands")),
|
|
1175
1180
|
access: {
|
|
1176
1181
|
canToggle: false
|
|
1177
1182
|
},
|
|
@@ -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(14696, "expected non-empty value.")));
|
|
55
55
|
return false;
|
|
56
56
|
}
|
|
57
57
|
if (typeof keyBinding.command !== "string") {
|
|
58
58
|
rejects.push(( localize(
|
|
59
|
-
|
|
59
|
+
14697,
|
|
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(14698, "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(14698, "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(14698, "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
|
+
14698,
|
|
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(14698, "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(14699, "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(14700, "Arguments to pass to the command to execute."))
|
|
105
105
|
},
|
|
106
106
|
key: {
|
|
107
107
|
description: ( localize(
|
|
108
|
-
|
|
108
|
+
14701,
|
|
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(14702, "Mac specific key or key sequence.")),
|
|
115
115
|
type: "string"
|
|
116
116
|
},
|
|
117
117
|
linux: {
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(14703, "Linux specific key or key sequence.")),
|
|
119
119
|
type: "string"
|
|
120
120
|
},
|
|
121
121
|
win: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(14704, "Windows specific key or key sequence.")),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
when: {
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(14705, "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(14706, "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
|
+
14707,
|
|
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(14708, "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(14709, "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(14710, "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(14711, "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(14712, "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
|
+
14713,
|
|
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(14714, "Condition when the key is active."))
|
|
851
851
|
},
|
|
852
852
|
"args": {
|
|
853
|
-
"description": ( localize(
|
|
853
|
+
"description": ( localize(14715, "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(14716, "Keyboard")),
|
|
480
480
|
"properties": {
|
|
481
481
|
"keyboard.layout": {
|
|
482
482
|
"type": "string",
|
|
483
483
|
"default": "autodetect",
|
|
484
|
-
"description": ( localize(
|
|
484
|
+
"description": ( localize(14717, "Control the keyboard layout used in web."))
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
};
|