@codingame/monaco-vscode-keybindings-service-override 30.0.0 → 31.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/platform/keyboardLayout/common/keyboardConfig.js +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 +149 -149
- 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": "31.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": "31.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "31.0.0"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -23,7 +23,7 @@ const keyboardConfiguration = {
|
|
|
23
23
|
"id": "keyboard",
|
|
24
24
|
"order": 15,
|
|
25
25
|
"type": "object",
|
|
26
|
-
"title": ( localize(
|
|
26
|
+
"title": ( localize(1994, "Keyboard")),
|
|
27
27
|
"properties": {
|
|
28
28
|
"keyboard.dispatch": {
|
|
29
29
|
scope: ConfigurationScope.APPLICATION,
|
|
@@ -31,7 +31,7 @@ const keyboardConfiguration = {
|
|
|
31
31
|
enum: ["code", "keyCode"],
|
|
32
32
|
default: "code",
|
|
33
33
|
markdownDescription: ( localize(
|
|
34
|
-
|
|
34
|
+
1995,
|
|
35
35
|
"Controls the dispatching logic for key presses to use either `code` (recommended) or `keyCode`."
|
|
36
36
|
)),
|
|
37
37
|
included: OS === OperatingSystem.Macintosh || OS === OperatingSystem.Linux
|
|
@@ -40,7 +40,7 @@ const keyboardConfiguration = {
|
|
|
40
40
|
scope: ConfigurationScope.APPLICATION,
|
|
41
41
|
type: "boolean",
|
|
42
42
|
default: false,
|
|
43
|
-
markdownDescription: ( localize(
|
|
43
|
+
markdownDescription: ( localize(1996, "Controls if the AltGraph+ modifier should be treated as Ctrl+Alt+.")),
|
|
44
44
|
included: OS === OperatingSystem.Windows
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -10,10 +10,10 @@ class RunCommands extends Action2 {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: "runCommands",
|
|
13
|
-
title: ( localize2(
|
|
13
|
+
title: ( localize2(7994, "Run Commands")),
|
|
14
14
|
f1: false,
|
|
15
15
|
metadata: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(7995, "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(7996, "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
|
+
7997,
|
|
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
|
+
7998,
|
|
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(10268, "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
|
+
11768,
|
|
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
|
+
11769,
|
|
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(11770, "**{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(15875, "The Command Palette")),
|
|
24
24
|
supportsSubmenus: false
|
|
25
25
|
}, {
|
|
26
26
|
key: "touchBar",
|
|
27
27
|
id: MenuId.TouchBarContext,
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(15876, "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(15877, "The editor title menu"))
|
|
34
34
|
}, {
|
|
35
35
|
key: "modalEditor/editorTitle",
|
|
36
36
|
id: MenuId.ModalEditorEditorTitle,
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(15878, "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(15879, "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(15880, "The editor context menu"))
|
|
46
46
|
}, {
|
|
47
47
|
key: "editor/context/copy",
|
|
48
48
|
id: MenuId.EditorContextCopy,
|
|
49
|
-
description: ( localize(
|
|
49
|
+
description: ( localize(15881, "'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(15882, "'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(15883, "The file explorer context menu"))
|
|
59
59
|
}, {
|
|
60
60
|
key: "explorer/context/share",
|
|
61
61
|
id: MenuId.ExplorerContextShare,
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(15884, "'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(15885, "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(15886, "'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(15887, "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(15888, "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(15889, "The debug watch view context menu"))
|
|
85
85
|
}, {
|
|
86
86
|
key: "debug/toolBar",
|
|
87
87
|
id: MenuId.DebugToolBar,
|
|
88
|
-
description: ( localize(
|
|
88
|
+
description: ( localize(15890, "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(15891, "The debug create configuration menu"))
|
|
94
94
|
}, {
|
|
95
95
|
key: "notebook/variables/context",
|
|
96
96
|
id: MenuId.NotebookVariablesContext,
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(15892, "The notebook variables view context menu"))
|
|
98
98
|
}, {
|
|
99
99
|
key: "menuBar/home",
|
|
100
100
|
id: MenuId.MenubarHomeMenu,
|
|
101
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(15893, "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(15894, "'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(15895, "The Source Control title menu"))
|
|
112
112
|
}, {
|
|
113
113
|
key: "scm/sourceControl",
|
|
114
114
|
id: MenuId.SCMSourceControl,
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(15896, "The Source Control menu"))
|
|
116
116
|
}, {
|
|
117
117
|
key: "scm/repositories/title",
|
|
118
118
|
id: MenuId.SCMSourceControlTitle,
|
|
119
|
-
description: ( localize(
|
|
119
|
+
description: ( localize(15897, "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(15898, "The Source Control repository menu"))
|
|
125
125
|
}, {
|
|
126
126
|
key: "scm/resourceState/context",
|
|
127
127
|
id: MenuId.SCMResourceContext,
|
|
128
|
-
description: ( localize(
|
|
128
|
+
description: ( localize(15899, "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(15900, "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(15901, "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(15902, "The Source Control inline change menu"))
|
|
141
141
|
}, {
|
|
142
142
|
key: "scm/inputBox",
|
|
143
143
|
id: MenuId.SCMInputBox,
|
|
144
|
-
description: ( localize(
|
|
144
|
+
description: ( localize(15903, "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(15904, "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(15905, "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(15906, "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(15907, "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(15908, "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(15909, "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(15910, "The terminal context menu"))
|
|
180
180
|
}, {
|
|
181
181
|
key: "terminal/title/context",
|
|
182
182
|
id: MenuId.TerminalTabContext,
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(15911, "The terminal tabs context menu"))
|
|
184
184
|
}, {
|
|
185
185
|
key: "view/title",
|
|
186
186
|
id: MenuId.ViewTitle,
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(15912, "The contributed view title menu"))
|
|
188
188
|
}, {
|
|
189
189
|
key: "viewContainer/title",
|
|
190
190
|
id: MenuId.ViewContainerTitle,
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(15913, "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(15914, "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(15915, "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(15916, "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
|
+
15917,
|
|
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
|
+
15917,
|
|
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
|
+
15918,
|
|
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(15919, "The contributed comment title menu"))
|
|
235
235
|
}, {
|
|
236
236
|
key: "comments/comment/context",
|
|
237
237
|
id: MenuId.CommentActions,
|
|
238
238
|
description: ( localize(
|
|
239
|
-
|
|
239
|
+
15920,
|
|
240
240
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
241
241
|
)),
|
|
242
242
|
supportsSubmenus: false
|
|
@@ -244,227 +244,227 @@ const apiMenus = [{
|
|
|
244
244
|
key: "comments/commentThread/comment/context",
|
|
245
245
|
id: MenuId.CommentThreadCommentContext,
|
|
246
246
|
description: ( localize(
|
|
247
|
-
|
|
247
|
+
15921,
|
|
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(15922, "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(15923, "The contributed notebook toolbar menu"))
|
|
260
260
|
}, {
|
|
261
261
|
key: "notebook/kernelSource",
|
|
262
262
|
id: MenuId.NotebookKernelSource,
|
|
263
|
-
description: ( localize(
|
|
263
|
+
description: ( localize(15924, "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(15925, "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(15926, "The contributed notebook cell execution menu"))
|
|
273
273
|
}, {
|
|
274
274
|
key: "interactive/toolbar",
|
|
275
275
|
id: MenuId.InteractiveToolbar,
|
|
276
|
-
description: ( localize(
|
|
276
|
+
description: ( localize(15927, "The contributed interactive toolbar menu"))
|
|
277
277
|
}, {
|
|
278
278
|
key: "interactive/cell/title",
|
|
279
279
|
id: MenuId.InteractiveCellTitle,
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(15928, "The contributed interactive cell title menu"))
|
|
281
281
|
}, {
|
|
282
282
|
key: "issue/reporter",
|
|
283
283
|
id: MenuId.IssueReporter,
|
|
284
|
-
description: ( localize(
|
|
284
|
+
description: ( localize(15929, "The contributed issue reporter menu"))
|
|
285
285
|
}, {
|
|
286
286
|
key: "testing/item/context",
|
|
287
287
|
id: MenuId.TestItem,
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(15930, "The contributed test item menu"))
|
|
289
289
|
}, {
|
|
290
290
|
key: "testing/item/gutter",
|
|
291
291
|
id: MenuId.TestItemGutter,
|
|
292
|
-
description: ( localize(
|
|
292
|
+
description: ( localize(15931, "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(15932, "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(15933, "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
|
+
15934,
|
|
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(15935, "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(15936, "The extension context menu"))
|
|
316
316
|
}, {
|
|
317
317
|
key: "timeline/title",
|
|
318
318
|
id: MenuId.TimelineTitle,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(15937, "The Timeline view title menu"))
|
|
320
320
|
}, {
|
|
321
321
|
key: "timeline/item/context",
|
|
322
322
|
id: MenuId.TimelineItemContext,
|
|
323
|
-
description: ( localize(
|
|
323
|
+
description: ( localize(15938, "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(15939, "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(15940, "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(15941, "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
|
+
15942,
|
|
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(15943, "The webview context menu"))
|
|
348
348
|
}, {
|
|
349
349
|
key: "file/share",
|
|
350
350
|
id: MenuId.MenubarShare,
|
|
351
|
-
description: ( localize(
|
|
351
|
+
description: ( localize(15944, "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(15945, "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(15946, "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(15947, "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(15948, "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(15949, "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(15950, "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(15951, "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(15951, "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
|
+
15952,
|
|
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(15953, "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(15954, "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
|
+
15955,
|
|
416
416
|
"Submenu for apply actions in the Chat Editing session changes toolbar."
|
|
417
417
|
)),
|
|
418
418
|
proposed: "chatSessionsProvider"
|
|
419
419
|
}, {
|
|
420
420
|
key: "chat/input/editing/sessionTitleToolbar",
|
|
421
421
|
id: MenuId.ChatEditingSessionTitleToolbar,
|
|
422
|
-
description: ( localize(
|
|
422
|
+
description: ( localize(15956, "The Chat Editing widget toolbar menu for session title.")),
|
|
423
423
|
proposed: "chatSessionsProvider"
|
|
424
424
|
}, {
|
|
425
425
|
key: "chat/input/editing/sessionChangeToolbar",
|
|
426
426
|
id: MenuId.ChatEditingSessionChangeToolbar,
|
|
427
|
-
description: ( localize(
|
|
427
|
+
description: ( localize(15957, "The Chat Editing widget toolbar menu for session changes.")),
|
|
428
428
|
proposed: "chatSessionsProvider"
|
|
429
429
|
}, {
|
|
430
430
|
key: "chat/chatSessions",
|
|
431
431
|
id: MenuId.AgentSessionsContext,
|
|
432
|
-
description: ( localize(
|
|
432
|
+
description: ( localize(15958, "The Chat Sessions menu.")),
|
|
433
433
|
supportsSubmenus: false,
|
|
434
434
|
proposed: "chatSessionsProvider"
|
|
435
435
|
}, {
|
|
436
436
|
key: "chatSessions/newSession",
|
|
437
437
|
id: MenuId.AgentSessionsCreateSubMenu,
|
|
438
|
-
description: ( localize(
|
|
438
|
+
description: ( localize(15959, "Menu for new chat sessions.")),
|
|
439
439
|
supportsSubmenus: false,
|
|
440
440
|
proposed: "chatSessionsProvider"
|
|
441
441
|
}, {
|
|
442
442
|
key: "chat/multiDiff/context",
|
|
443
443
|
id: MenuId.ChatMultiDiffContext,
|
|
444
|
-
description: ( localize(
|
|
444
|
+
description: ( localize(15960, "The Chat Multi-Diff context menu.")),
|
|
445
445
|
supportsSubmenus: false,
|
|
446
446
|
proposed: "chatSessionsProvider"
|
|
447
447
|
}, {
|
|
448
448
|
key: "chat/customizations/create",
|
|
449
449
|
id: MenuId.for("AICustomizationManagementCreate"),
|
|
450
|
-
description: ( localize(
|
|
450
|
+
description: ( localize(15961, "The create button in the Chat Customizations management editor.")),
|
|
451
451
|
supportsSubmenus: false,
|
|
452
452
|
proposed: "chatSessionCustomizationProvider"
|
|
453
453
|
}, {
|
|
454
454
|
key: "chat/editor/inlineGutter",
|
|
455
455
|
id: MenuId.ChatEditorInlineMenu,
|
|
456
|
-
description: ( localize(
|
|
456
|
+
description: ( localize(15962, "The inline gutter menu in the chat editor.")),
|
|
457
457
|
supportsSubmenus: false,
|
|
458
458
|
proposed: "contribChatEditorInlineGutterMenu"
|
|
459
459
|
}, {
|
|
460
460
|
key: "chat/contextUsage/actions",
|
|
461
461
|
id: MenuId.ChatContextUsageActions,
|
|
462
|
-
description: ( localize(
|
|
462
|
+
description: ( localize(15963, "Actions in the chat context usage details popup.")),
|
|
463
463
|
proposed: "chatParticipantAdditions"
|
|
464
464
|
}, {
|
|
465
465
|
key: "chat/newSession",
|
|
466
466
|
id: MenuId.ChatNewMenu,
|
|
467
|
-
description: ( localize(
|
|
467
|
+
description: ( localize(15964, "The Chat new session menu.")),
|
|
468
468
|
proposed: "chatSessionsProvider"
|
|
469
469
|
}];
|
|
470
470
|
var schema;
|
|
@@ -476,23 +476,23 @@ var schema;
|
|
|
476
476
|
function isValidMenuItem(item, collector) {
|
|
477
477
|
if (typeof item.command !== "string") {
|
|
478
478
|
collector.error(( localize(
|
|
479
|
-
|
|
479
|
+
15965,
|
|
480
480
|
"property `{0}` is mandatory and must be of type `string`",
|
|
481
481
|
"command"
|
|
482
482
|
)));
|
|
483
483
|
return false;
|
|
484
484
|
}
|
|
485
485
|
if (item.alt && typeof item.alt !== "string") {
|
|
486
|
-
collector.error(( localize(
|
|
486
|
+
collector.error(( localize(15966, "property `{0}` can be omitted or must be of type `string`", "alt")));
|
|
487
487
|
return false;
|
|
488
488
|
}
|
|
489
489
|
if (item.when && typeof item.when !== "string") {
|
|
490
|
-
collector.error(( localize(
|
|
490
|
+
collector.error(( localize(15966, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
491
491
|
return false;
|
|
492
492
|
}
|
|
493
493
|
if (item.group && typeof item.group !== "string") {
|
|
494
494
|
collector.error(( localize(
|
|
495
|
-
|
|
495
|
+
15966,
|
|
496
496
|
"property `{0}` can be omitted or must be of type `string`",
|
|
497
497
|
"group"
|
|
498
498
|
)));
|
|
@@ -504,19 +504,19 @@ var schema;
|
|
|
504
504
|
function isValidSubmenuItem(item, collector) {
|
|
505
505
|
if (typeof item.submenu !== "string") {
|
|
506
506
|
collector.error(( localize(
|
|
507
|
-
|
|
507
|
+
15965,
|
|
508
508
|
"property `{0}` is mandatory and must be of type `string`",
|
|
509
509
|
"submenu"
|
|
510
510
|
)));
|
|
511
511
|
return false;
|
|
512
512
|
}
|
|
513
513
|
if (item.when && typeof item.when !== "string") {
|
|
514
|
-
collector.error(( localize(
|
|
514
|
+
collector.error(( localize(15966, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
515
515
|
return false;
|
|
516
516
|
}
|
|
517
517
|
if (item.group && typeof item.group !== "string") {
|
|
518
518
|
collector.error(( localize(
|
|
519
|
-
|
|
519
|
+
15966,
|
|
520
520
|
"property `{0}` can be omitted or must be of type `string`",
|
|
521
521
|
"group"
|
|
522
522
|
)));
|
|
@@ -527,7 +527,7 @@ var schema;
|
|
|
527
527
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
528
528
|
function isValidItems(items, collector) {
|
|
529
529
|
if (!Array.isArray(items)) {
|
|
530
|
-
collector.error(( localize(
|
|
530
|
+
collector.error(( localize(15967, "submenu items must be an array")));
|
|
531
531
|
return false;
|
|
532
532
|
}
|
|
533
533
|
for (const item of items) {
|
|
@@ -546,15 +546,15 @@ var schema;
|
|
|
546
546
|
schema.isValidItems = isValidItems;
|
|
547
547
|
function isValidSubmenu(submenu, collector) {
|
|
548
548
|
if (typeof submenu !== "object") {
|
|
549
|
-
collector.error(( localize(
|
|
549
|
+
collector.error(( localize(15968, "submenu items must be an object")));
|
|
550
550
|
return false;
|
|
551
551
|
}
|
|
552
552
|
if (typeof submenu.id !== "string") {
|
|
553
|
-
collector.error(( localize(
|
|
553
|
+
collector.error(( localize(15965, "property `{0}` is mandatory and must be of type `string`", "id")));
|
|
554
554
|
return false;
|
|
555
555
|
}
|
|
556
556
|
if (typeof submenu.label !== "string") {
|
|
557
|
-
collector.error(( localize(
|
|
557
|
+
collector.error(( localize(15965, "property `{0}` is mandatory and must be of type `string`", "label")));
|
|
558
558
|
return false;
|
|
559
559
|
}
|
|
560
560
|
return true;
|
|
@@ -566,24 +566,24 @@ var schema;
|
|
|
566
566
|
properties: {
|
|
567
567
|
command: {
|
|
568
568
|
description: ( localize(
|
|
569
|
-
|
|
569
|
+
15969,
|
|
570
570
|
"Identifier of the command to execute. The command must be declared in the 'commands'-section"
|
|
571
571
|
)),
|
|
572
572
|
type: "string"
|
|
573
573
|
},
|
|
574
574
|
alt: {
|
|
575
575
|
description: ( localize(
|
|
576
|
-
|
|
576
|
+
15970,
|
|
577
577
|
"Identifier of an alternative command to execute. The command must be declared in the 'commands'-section"
|
|
578
578
|
)),
|
|
579
579
|
type: "string"
|
|
580
580
|
},
|
|
581
581
|
when: {
|
|
582
|
-
description: ( localize(
|
|
582
|
+
description: ( localize(15971, "Condition which must be true to show this item")),
|
|
583
583
|
type: "string"
|
|
584
584
|
},
|
|
585
585
|
group: {
|
|
586
|
-
description: ( localize(
|
|
586
|
+
description: ( localize(15972, "Group into which this item belongs")),
|
|
587
587
|
type: "string"
|
|
588
588
|
}
|
|
589
589
|
}
|
|
@@ -593,15 +593,15 @@ var schema;
|
|
|
593
593
|
required: ["submenu"],
|
|
594
594
|
properties: {
|
|
595
595
|
submenu: {
|
|
596
|
-
description: ( localize(
|
|
596
|
+
description: ( localize(15973, "Identifier of the submenu to display in this item.")),
|
|
597
597
|
type: "string"
|
|
598
598
|
},
|
|
599
599
|
when: {
|
|
600
|
-
description: ( localize(
|
|
600
|
+
description: ( localize(15971, "Condition which must be true to show this item")),
|
|
601
601
|
type: "string"
|
|
602
602
|
},
|
|
603
603
|
group: {
|
|
604
|
-
description: ( localize(
|
|
604
|
+
description: ( localize(15972, "Group into which this item belongs")),
|
|
605
605
|
type: "string"
|
|
606
606
|
}
|
|
607
607
|
}
|
|
@@ -611,16 +611,16 @@ var schema;
|
|
|
611
611
|
required: ["id", "label"],
|
|
612
612
|
properties: {
|
|
613
613
|
id: {
|
|
614
|
-
description: ( localize(
|
|
614
|
+
description: ( localize(15974, "Identifier of the menu to display as a submenu.")),
|
|
615
615
|
type: "string"
|
|
616
616
|
},
|
|
617
617
|
label: {
|
|
618
|
-
description: ( localize(
|
|
618
|
+
description: ( localize(15975, "The label of the menu item which leads to this submenu.")),
|
|
619
619
|
type: "string"
|
|
620
620
|
},
|
|
621
621
|
icon: {
|
|
622
622
|
description: ( localize(
|
|
623
|
-
|
|
623
|
+
15976,
|
|
624
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)\""
|
|
625
625
|
)),
|
|
626
626
|
anyOf: [{
|
|
@@ -629,11 +629,11 @@ var schema;
|
|
|
629
629
|
type: "object",
|
|
630
630
|
properties: {
|
|
631
631
|
light: {
|
|
632
|
-
description: ( localize(
|
|
632
|
+
description: ( localize(15977, "Icon path when a light theme is used")),
|
|
633
633
|
type: "string"
|
|
634
634
|
},
|
|
635
635
|
dark: {
|
|
636
|
-
description: ( localize(
|
|
636
|
+
description: ( localize(15978, "Icon path when a dark theme is used")),
|
|
637
637
|
type: "string"
|
|
638
638
|
}
|
|
639
639
|
}
|
|
@@ -642,11 +642,11 @@ var schema;
|
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
644
|
schema.menusContribution = {
|
|
645
|
-
description: ( localize(
|
|
645
|
+
description: ( localize(15979, "Contributes menu items to the editor")),
|
|
646
646
|
type: "object",
|
|
647
647
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
648
648
|
markdownDescription: menu.proposed ? ( localize(
|
|
649
|
-
|
|
649
|
+
15980,
|
|
650
650
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
651
651
|
menu.proposed,
|
|
652
652
|
menu.description
|
|
@@ -665,18 +665,18 @@ var schema;
|
|
|
665
665
|
}
|
|
666
666
|
};
|
|
667
667
|
schema.submenusContribution = {
|
|
668
|
-
description: ( localize(
|
|
668
|
+
description: ( localize(15981, "Contributes submenu items to the editor")),
|
|
669
669
|
type: "array",
|
|
670
670
|
items: submenu
|
|
671
671
|
};
|
|
672
672
|
function isValidCommand(command, collector) {
|
|
673
673
|
if (!command) {
|
|
674
|
-
collector.error(( localize(
|
|
674
|
+
collector.error(( localize(15982, "expected non-empty value.")));
|
|
675
675
|
return false;
|
|
676
676
|
}
|
|
677
677
|
if (isFalsyOrWhitespace(command.command)) {
|
|
678
678
|
collector.error(( localize(
|
|
679
|
-
|
|
679
|
+
15965,
|
|
680
680
|
"property `{0}` is mandatory and must be of type `string`",
|
|
681
681
|
"command"
|
|
682
682
|
)));
|
|
@@ -690,7 +690,7 @@ var schema;
|
|
|
690
690
|
}
|
|
691
691
|
if (command.enablement && typeof command.enablement !== "string") {
|
|
692
692
|
collector.error(( localize(
|
|
693
|
-
|
|
693
|
+
15966,
|
|
694
694
|
"property `{0}` can be omitted or must be of type `string`",
|
|
695
695
|
"precondition"
|
|
696
696
|
)));
|
|
@@ -715,7 +715,7 @@ var schema;
|
|
|
715
715
|
return true;
|
|
716
716
|
}
|
|
717
717
|
collector.error(( localize(
|
|
718
|
-
|
|
718
|
+
15983,
|
|
719
719
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
720
720
|
)));
|
|
721
721
|
return false;
|
|
@@ -723,21 +723,21 @@ var schema;
|
|
|
723
723
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
724
724
|
if (typeof localized === "undefined") {
|
|
725
725
|
collector.error(( localize(
|
|
726
|
-
|
|
726
|
+
15984,
|
|
727
727
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
728
728
|
propertyName
|
|
729
729
|
)));
|
|
730
730
|
return false;
|
|
731
731
|
} else if (typeof localized === "string" && isFalsyOrWhitespace(localized)) {
|
|
732
732
|
collector.error(( localize(
|
|
733
|
-
|
|
733
|
+
15965,
|
|
734
734
|
"property `{0}` is mandatory and must be of type `string`",
|
|
735
735
|
propertyName
|
|
736
736
|
)));
|
|
737
737
|
return false;
|
|
738
738
|
} else if (typeof localized !== "string" && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
739
739
|
collector.error(( localize(
|
|
740
|
-
|
|
740
|
+
15985,
|
|
741
741
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
742
742
|
`${propertyName}.value`,
|
|
743
743
|
`${propertyName}.original`
|
|
@@ -751,37 +751,37 @@ var schema;
|
|
|
751
751
|
required: ["command", "title"],
|
|
752
752
|
properties: {
|
|
753
753
|
command: {
|
|
754
|
-
description: ( localize(
|
|
754
|
+
description: ( localize(15986, "Identifier of the command to execute")),
|
|
755
755
|
type: "string"
|
|
756
756
|
},
|
|
757
757
|
title: {
|
|
758
|
-
description: ( localize(
|
|
758
|
+
description: ( localize(15987, "Title by which the command is represented in the UI")),
|
|
759
759
|
type: "string"
|
|
760
760
|
},
|
|
761
761
|
shortTitle: {
|
|
762
762
|
markdownDescription: ( localize(
|
|
763
|
-
|
|
763
|
+
15988,
|
|
764
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."
|
|
765
765
|
)),
|
|
766
766
|
type: "string"
|
|
767
767
|
},
|
|
768
768
|
category: {
|
|
769
769
|
description: ( localize(
|
|
770
|
-
|
|
770
|
+
15989,
|
|
771
771
|
"(Optional) Category string by which the command is grouped in the UI"
|
|
772
772
|
)),
|
|
773
773
|
type: "string"
|
|
774
774
|
},
|
|
775
775
|
enablement: {
|
|
776
776
|
description: ( localize(
|
|
777
|
-
|
|
777
|
+
15990,
|
|
778
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."
|
|
779
779
|
)),
|
|
780
780
|
type: "string"
|
|
781
781
|
},
|
|
782
782
|
icon: {
|
|
783
783
|
description: ( localize(
|
|
784
|
-
|
|
784
|
+
15991,
|
|
785
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)\""
|
|
786
786
|
)),
|
|
787
787
|
anyOf: [{
|
|
@@ -790,11 +790,11 @@ var schema;
|
|
|
790
790
|
type: "object",
|
|
791
791
|
properties: {
|
|
792
792
|
light: {
|
|
793
|
-
description: ( localize(
|
|
793
|
+
description: ( localize(15992, "Icon path when a light theme is used")),
|
|
794
794
|
type: "string"
|
|
795
795
|
},
|
|
796
796
|
dark: {
|
|
797
|
-
description: ( localize(
|
|
797
|
+
description: ( localize(15993, "Icon path when a dark theme is used")),
|
|
798
798
|
type: "string"
|
|
799
799
|
}
|
|
800
800
|
}
|
|
@@ -803,7 +803,7 @@ var schema;
|
|
|
803
803
|
}
|
|
804
804
|
};
|
|
805
805
|
schema.commandsContribution = {
|
|
806
|
-
description: ( localize(
|
|
806
|
+
description: ( localize(15994, "Contributes commands to the command palette.")),
|
|
807
807
|
oneOf: [commandType, {
|
|
808
808
|
type: "array",
|
|
809
809
|
items: commandType
|
|
@@ -853,14 +853,14 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
853
853
|
if (existingCmd) {
|
|
854
854
|
if (existingCmd.source) {
|
|
855
855
|
extension.collector.info(( localize(
|
|
856
|
-
|
|
856
|
+
15995,
|
|
857
857
|
"Command `{0}` already registered by {1} ({2})",
|
|
858
858
|
userFriendlyCommand.command,
|
|
859
859
|
existingCmd.source.title,
|
|
860
860
|
existingCmd.source.id
|
|
861
861
|
)));
|
|
862
862
|
} else {
|
|
863
|
-
extension.collector.info(( localize(
|
|
863
|
+
extension.collector.info(( localize(15996, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -908,19 +908,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
908
908
|
continue;
|
|
909
909
|
}
|
|
910
910
|
if (!submenuInfo.id) {
|
|
911
|
-
collector.warn(( localize(
|
|
911
|
+
collector.warn(( localize(15997, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
912
912
|
continue;
|
|
913
913
|
}
|
|
914
914
|
if (( _submenus.has(submenuInfo.id))) {
|
|
915
915
|
collector.info(( localize(
|
|
916
|
-
|
|
916
|
+
15998,
|
|
917
917
|
"The `{0}` submenu was already previously registered.",
|
|
918
918
|
submenuInfo.id
|
|
919
919
|
)));
|
|
920
920
|
continue;
|
|
921
921
|
}
|
|
922
922
|
if (!submenuInfo.label) {
|
|
923
|
-
collector.warn(( localize(
|
|
923
|
+
collector.warn(( localize(15999, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
924
924
|
continue;
|
|
925
925
|
}
|
|
926
926
|
let absoluteIcon;
|
|
@@ -981,7 +981,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
981
981
|
}
|
|
982
982
|
if (menu.proposed && !isProposedApiEnabled(extension.description)) {
|
|
983
983
|
collector.error(( localize(
|
|
984
|
-
|
|
984
|
+
16000,
|
|
985
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}",
|
|
986
986
|
entry[0],
|
|
987
987
|
menu.proposed,
|
|
@@ -996,7 +996,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
996
996
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
997
997
|
if (!command) {
|
|
998
998
|
collector.error(( localize(
|
|
999
|
-
|
|
999
|
+
16001,
|
|
1000
1000
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
1001
1001
|
menuItem.command
|
|
1002
1002
|
)));
|
|
@@ -1004,13 +1004,13 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
if (menuItem.alt && !alt) {
|
|
1006
1006
|
collector.warn(( localize(
|
|
1007
|
-
|
|
1007
|
+
16002,
|
|
1008
1008
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
1009
1009
|
menuItem.alt
|
|
1010
1010
|
)));
|
|
1011
1011
|
}
|
|
1012
1012
|
if (menuItem.command === menuItem.alt) {
|
|
1013
|
-
collector.info(( localize(
|
|
1013
|
+
collector.info(( localize(16003, "Menu item references the same command as default and alt-command")));
|
|
1014
1014
|
}
|
|
1015
1015
|
item = {
|
|
1016
1016
|
command,
|
|
@@ -1022,7 +1022,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1022
1022
|
} else {
|
|
1023
1023
|
if (menu.supportsSubmenus === false) {
|
|
1024
1024
|
collector.error(( localize(
|
|
1025
|
-
|
|
1025
|
+
16004,
|
|
1026
1026
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
1027
1027
|
)));
|
|
1028
1028
|
continue;
|
|
@@ -1030,7 +1030,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1030
1030
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1031
1031
|
if (!submenu) {
|
|
1032
1032
|
collector.error(( localize(
|
|
1033
|
-
|
|
1033
|
+
16005,
|
|
1034
1034
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1035
1035
|
menuItem.submenu
|
|
1036
1036
|
)));
|
|
@@ -1043,7 +1043,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1045
1045
|
collector.warn(( localize(
|
|
1046
|
-
|
|
1046
|
+
16006,
|
|
1047
1047
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1048
1048
|
menuItem.submenu,
|
|
1049
1049
|
entry[0]
|
|
@@ -1071,7 +1071,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes("viewContainer == workbench.view.debug")) {
|
|
1073
1073
|
collector.error(( localize(
|
|
1074
|
-
|
|
1074
|
+
16007,
|
|
1075
1075
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1076
1076
|
"`viewContainer/title`",
|
|
1077
1077
|
"`viewContainer == workbench.view.debug`",
|
|
@@ -1173,7 +1173,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1173
1173
|
dispose: () => {}
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
1176
|
-
const headers = [( localize(
|
|
1176
|
+
const headers = [( localize(16008, "ID")), ( localize(16009, "Title")), ( localize(16010, "Keyboard Shortcuts")), ( localize(16011, "Menu Contexts"))];
|
|
1177
1177
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id)).map(command => {
|
|
1178
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(" ")}`)];
|
|
1179
1179
|
}));
|
|
@@ -1204,7 +1204,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1204
1204
|
CommandsTableRenderer = ( __decorate([( __param(0, IKeybindingService))], CommandsTableRenderer));
|
|
1205
1205
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1206
1206
|
id: "commands",
|
|
1207
|
-
label: ( localize(
|
|
1207
|
+
label: ( localize(16012, "Commands")),
|
|
1208
1208
|
access: {
|
|
1209
1209
|
canToggle: false
|
|
1210
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(16421, "expected non-empty value.")));
|
|
55
55
|
return false;
|
|
56
56
|
}
|
|
57
57
|
if (typeof keyBinding.command !== "string") {
|
|
58
58
|
rejects.push(( localize(
|
|
59
|
-
|
|
59
|
+
16422,
|
|
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(16423, "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(16423, "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(16423, "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
|
+
16423,
|
|
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(16423, "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(16424, "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(16425, "Arguments to pass to the command to execute."))
|
|
105
105
|
},
|
|
106
106
|
key: {
|
|
107
107
|
description: ( localize(
|
|
108
|
-
|
|
108
|
+
16426,
|
|
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(16427, "Mac specific key or key sequence.")),
|
|
115
115
|
type: "string"
|
|
116
116
|
},
|
|
117
117
|
linux: {
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(16428, "Linux specific key or key sequence.")),
|
|
119
119
|
type: "string"
|
|
120
120
|
},
|
|
121
121
|
win: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(16429, "Windows specific key or key sequence.")),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
when: {
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(16430, "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(16431, "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
|
+
16432,
|
|
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(16433, "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(16434, "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(16435, "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(16436, "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(16437, "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
|
+
16438,
|
|
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(16439, "Condition when the key is active."))
|
|
851
851
|
},
|
|
852
852
|
"args": {
|
|
853
|
-
"description": ( localize(
|
|
853
|
+
"description": ( localize(16440, "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(16441, "Keyboard")),
|
|
480
480
|
"properties": {
|
|
481
481
|
"keyboard.layout": {
|
|
482
482
|
"type": "string",
|
|
483
483
|
"default": "autodetect",
|
|
484
|
-
"description": ( localize(
|
|
484
|
+
"description": ( localize(16442, "Control the keyboard layout used in web."))
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
};
|