@codingame/monaco-vscode-keybindings-service-override 27.0.0 → 28.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 +152 -144
- 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": "28.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": "28.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-files-service-override": "28.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(1987, "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
|
+
1988,
|
|
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(1989, "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(7574, "Run Commands")),
|
|
14
14
|
f1: false,
|
|
15
15
|
metadata: {
|
|
16
|
-
description: ( localize(
|
|
16
|
+
description: ( localize(7575, "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(7576, "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
|
+
7577,
|
|
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
|
+
7578,
|
|
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(9838, "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
|
+
11320,
|
|
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
|
+
11321,
|
|
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(11322, "**{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(15281, "The Command Palette")),
|
|
24
24
|
supportsSubmenus: false
|
|
25
25
|
}, {
|
|
26
26
|
key: "touchBar",
|
|
27
27
|
id: MenuId.TouchBarContext,
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(15282, "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(15283, "The editor title menu"))
|
|
34
34
|
}, {
|
|
35
35
|
key: "editor/title/run",
|
|
36
36
|
id: MenuId.EditorTitleRun,
|
|
37
|
-
description: ( localize(
|
|
37
|
+
description: ( localize(15284, "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(15285, "The editor context menu"))
|
|
42
42
|
}, {
|
|
43
43
|
key: "editor/context/copy",
|
|
44
44
|
id: MenuId.EditorContextCopy,
|
|
45
|
-
description: ( localize(
|
|
45
|
+
description: ( localize(15286, "'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(15287, "'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(15288, "The file explorer context menu"))
|
|
55
55
|
}, {
|
|
56
56
|
key: "explorer/context/share",
|
|
57
57
|
id: MenuId.ExplorerContextShare,
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(15289, "'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(15290, "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(15291, "'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(15292, "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(15293, "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(15294, "The debug watch view context menu"))
|
|
81
81
|
}, {
|
|
82
82
|
key: "debug/toolBar",
|
|
83
83
|
id: MenuId.DebugToolBar,
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(15295, "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(15296, "The debug create configuration menu"))
|
|
90
90
|
}, {
|
|
91
91
|
key: "notebook/variables/context",
|
|
92
92
|
id: MenuId.NotebookVariablesContext,
|
|
93
|
-
description: ( localize(
|
|
93
|
+
description: ( localize(15297, "The notebook variables view context menu"))
|
|
94
94
|
}, {
|
|
95
95
|
key: "menuBar/home",
|
|
96
96
|
id: MenuId.MenubarHomeMenu,
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(15298, "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(15299, "'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(15300, "The Source Control title menu"))
|
|
108
108
|
}, {
|
|
109
109
|
key: "scm/sourceControl",
|
|
110
110
|
id: MenuId.SCMSourceControl,
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(15301, "The Source Control menu"))
|
|
112
112
|
}, {
|
|
113
113
|
key: "scm/repositories/title",
|
|
114
114
|
id: MenuId.SCMSourceControlTitle,
|
|
115
|
-
description: ( localize(
|
|
115
|
+
description: ( localize(15302, "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(15303, "The Source Control repository menu"))
|
|
121
121
|
}, {
|
|
122
122
|
key: "scm/resourceState/context",
|
|
123
123
|
id: MenuId.SCMResourceContext,
|
|
124
|
-
description: ( localize(
|
|
124
|
+
description: ( localize(15304, "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(15305, "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(15306, "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(15307, "The Source Control inline change menu"))
|
|
137
137
|
}, {
|
|
138
138
|
key: "scm/inputBox",
|
|
139
139
|
id: MenuId.SCMInputBox,
|
|
140
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(15308, "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(15309, "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(15310, "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(15311, "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(15312, "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(15313, "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(15314, "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(15315, "The terminal context menu"))
|
|
176
176
|
}, {
|
|
177
177
|
key: "terminal/title/context",
|
|
178
178
|
id: MenuId.TerminalTabContext,
|
|
179
|
-
description: ( localize(
|
|
179
|
+
description: ( localize(15316, "The terminal tabs context menu"))
|
|
180
180
|
}, {
|
|
181
181
|
key: "view/title",
|
|
182
182
|
id: MenuId.ViewTitle,
|
|
183
|
-
description: ( localize(
|
|
183
|
+
description: ( localize(15317, "The contributed view title menu"))
|
|
184
184
|
}, {
|
|
185
185
|
key: "viewContainer/title",
|
|
186
186
|
id: MenuId.ViewContainerTitle,
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(15318, "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(15319, "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(15320, "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(15321, "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
|
+
15322,
|
|
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
|
+
15322,
|
|
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
|
+
15323,
|
|
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(15324, "The contributed comment title menu"))
|
|
231
231
|
}, {
|
|
232
232
|
key: "comments/comment/context",
|
|
233
233
|
id: MenuId.CommentActions,
|
|
234
234
|
description: ( localize(
|
|
235
|
-
|
|
235
|
+
15325,
|
|
236
236
|
"The contributed comment context menu, rendered as buttons below the comment editor"
|
|
237
237
|
)),
|
|
238
238
|
supportsSubmenus: false
|
|
@@ -240,203 +240,211 @@ const apiMenus = [{
|
|
|
240
240
|
key: "comments/commentThread/comment/context",
|
|
241
241
|
id: MenuId.CommentThreadCommentContext,
|
|
242
242
|
description: ( localize(
|
|
243
|
-
|
|
243
|
+
15326,
|
|
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(15327, "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(15328, "The contributed notebook toolbar menu"))
|
|
256
256
|
}, {
|
|
257
257
|
key: "notebook/kernelSource",
|
|
258
258
|
id: MenuId.NotebookKernelSource,
|
|
259
|
-
description: ( localize(
|
|
259
|
+
description: ( localize(15329, "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(15330, "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(15331, "The contributed notebook cell execution menu"))
|
|
269
269
|
}, {
|
|
270
270
|
key: "interactive/toolbar",
|
|
271
271
|
id: MenuId.InteractiveToolbar,
|
|
272
|
-
description: ( localize(
|
|
272
|
+
description: ( localize(15332, "The contributed interactive toolbar menu"))
|
|
273
273
|
}, {
|
|
274
274
|
key: "interactive/cell/title",
|
|
275
275
|
id: MenuId.InteractiveCellTitle,
|
|
276
|
-
description: ( localize(
|
|
276
|
+
description: ( localize(15333, "The contributed interactive cell title menu"))
|
|
277
277
|
}, {
|
|
278
278
|
key: "issue/reporter",
|
|
279
279
|
id: MenuId.IssueReporter,
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(15334, "The contributed issue reporter menu"))
|
|
281
281
|
}, {
|
|
282
282
|
key: "testing/item/context",
|
|
283
283
|
id: MenuId.TestItem,
|
|
284
|
-
description: ( localize(
|
|
284
|
+
description: ( localize(15335, "The contributed test item menu"))
|
|
285
285
|
}, {
|
|
286
286
|
key: "testing/item/gutter",
|
|
287
287
|
id: MenuId.TestItemGutter,
|
|
288
|
-
description: ( localize(
|
|
288
|
+
description: ( localize(15336, "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(15337, "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(15338, "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
|
+
15339,
|
|
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(15340, "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(15341, "The extension context menu"))
|
|
312
312
|
}, {
|
|
313
313
|
key: "timeline/title",
|
|
314
314
|
id: MenuId.TimelineTitle,
|
|
315
|
-
description: ( localize(
|
|
315
|
+
description: ( localize(15342, "The Timeline view title menu"))
|
|
316
316
|
}, {
|
|
317
317
|
key: "timeline/item/context",
|
|
318
318
|
id: MenuId.TimelineItemContext,
|
|
319
|
-
description: ( localize(
|
|
319
|
+
description: ( localize(15343, "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(15344, "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(15345, "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(15346, "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
|
+
15347,
|
|
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(15348, "The webview context menu"))
|
|
344
344
|
}, {
|
|
345
345
|
key: "file/share",
|
|
346
346
|
id: MenuId.MenubarShare,
|
|
347
|
-
description: ( localize(
|
|
347
|
+
description: ( localize(15349, "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(15350, "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(15351, "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(15352, "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(15353, "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(15354, "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(15355, "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(15356, "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(15356, "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
|
+
15357,
|
|
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(15358, "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(15359, "The Chat Editing widget toolbar menu for session changes.")),
|
|
406
|
+
proposed: "chatSessionsProvider"
|
|
407
|
+
}, {
|
|
408
|
+
key: "chat/input/editing/sessionApplyActions",
|
|
409
|
+
id: MenuId.ChatEditingSessionApplySubmenu,
|
|
410
|
+
description: ( localize(
|
|
411
|
+
15360,
|
|
412
|
+
"Submenu for apply actions in the Chat Editing session changes toolbar."
|
|
413
|
+
)),
|
|
406
414
|
proposed: "chatSessionsProvider"
|
|
407
415
|
}, {
|
|
408
416
|
key: "chat/chatSessions",
|
|
409
417
|
id: MenuId.AgentSessionsContext,
|
|
410
|
-
description: ( localize(
|
|
418
|
+
description: ( localize(15361, "The Chat Sessions menu.")),
|
|
411
419
|
supportsSubmenus: false,
|
|
412
420
|
proposed: "chatSessionsProvider"
|
|
413
421
|
}, {
|
|
414
422
|
key: "chatSessions/newSession",
|
|
415
423
|
id: MenuId.AgentSessionsCreateSubMenu,
|
|
416
|
-
description: ( localize(
|
|
424
|
+
description: ( localize(15362, "Menu for new chat sessions.")),
|
|
417
425
|
supportsSubmenus: false,
|
|
418
426
|
proposed: "chatSessionsProvider"
|
|
419
427
|
}, {
|
|
420
428
|
key: "chat/multiDiff/context",
|
|
421
429
|
id: MenuId.ChatMultiDiffContext,
|
|
422
|
-
description: ( localize(
|
|
430
|
+
description: ( localize(15363, "The Chat Multi-Diff context menu.")),
|
|
423
431
|
supportsSubmenus: false,
|
|
424
432
|
proposed: "chatSessionsProvider"
|
|
425
433
|
}, {
|
|
426
434
|
key: "chat/editor/inlineGutter",
|
|
427
435
|
id: MenuId.ChatEditorInlineMenu,
|
|
428
|
-
description: ( localize(
|
|
436
|
+
description: ( localize(15364, "The inline gutter menu in the chat editor.")),
|
|
429
437
|
supportsSubmenus: false,
|
|
430
438
|
proposed: "contribChatEditorInlineGutterMenu"
|
|
431
439
|
}, {
|
|
432
440
|
key: "chat/contextUsage/actions",
|
|
433
441
|
id: MenuId.ChatContextUsageActions,
|
|
434
|
-
description: ( localize(
|
|
442
|
+
description: ( localize(15365, "Actions in the chat context usage details popup.")),
|
|
435
443
|
proposed: "chatParticipantAdditions"
|
|
436
444
|
}, {
|
|
437
445
|
key: "chat/newSession",
|
|
438
446
|
id: MenuId.ChatNewMenu,
|
|
439
|
-
description: ( localize(
|
|
447
|
+
description: ( localize(15366, "The Chat new session menu.")),
|
|
440
448
|
proposed: "chatSessionsProvider"
|
|
441
449
|
}];
|
|
442
450
|
var schema;
|
|
@@ -448,23 +456,23 @@ var schema;
|
|
|
448
456
|
function isValidMenuItem(item, collector) {
|
|
449
457
|
if (typeof item.command !== "string") {
|
|
450
458
|
collector.error(( localize(
|
|
451
|
-
|
|
459
|
+
15367,
|
|
452
460
|
"property `{0}` is mandatory and must be of type `string`",
|
|
453
461
|
"command"
|
|
454
462
|
)));
|
|
455
463
|
return false;
|
|
456
464
|
}
|
|
457
465
|
if (item.alt && typeof item.alt !== "string") {
|
|
458
|
-
collector.error(( localize(
|
|
466
|
+
collector.error(( localize(15368, "property `{0}` can be omitted or must be of type `string`", "alt")));
|
|
459
467
|
return false;
|
|
460
468
|
}
|
|
461
469
|
if (item.when && typeof item.when !== "string") {
|
|
462
|
-
collector.error(( localize(
|
|
470
|
+
collector.error(( localize(15368, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
463
471
|
return false;
|
|
464
472
|
}
|
|
465
473
|
if (item.group && typeof item.group !== "string") {
|
|
466
474
|
collector.error(( localize(
|
|
467
|
-
|
|
475
|
+
15368,
|
|
468
476
|
"property `{0}` can be omitted or must be of type `string`",
|
|
469
477
|
"group"
|
|
470
478
|
)));
|
|
@@ -476,19 +484,19 @@ var schema;
|
|
|
476
484
|
function isValidSubmenuItem(item, collector) {
|
|
477
485
|
if (typeof item.submenu !== "string") {
|
|
478
486
|
collector.error(( localize(
|
|
479
|
-
|
|
487
|
+
15367,
|
|
480
488
|
"property `{0}` is mandatory and must be of type `string`",
|
|
481
489
|
"submenu"
|
|
482
490
|
)));
|
|
483
491
|
return false;
|
|
484
492
|
}
|
|
485
493
|
if (item.when && typeof item.when !== "string") {
|
|
486
|
-
collector.error(( localize(
|
|
494
|
+
collector.error(( localize(15368, "property `{0}` can be omitted or must be of type `string`", "when")));
|
|
487
495
|
return false;
|
|
488
496
|
}
|
|
489
497
|
if (item.group && typeof item.group !== "string") {
|
|
490
498
|
collector.error(( localize(
|
|
491
|
-
|
|
499
|
+
15368,
|
|
492
500
|
"property `{0}` can be omitted or must be of type `string`",
|
|
493
501
|
"group"
|
|
494
502
|
)));
|
|
@@ -499,7 +507,7 @@ var schema;
|
|
|
499
507
|
schema.isValidSubmenuItem = isValidSubmenuItem;
|
|
500
508
|
function isValidItems(items, collector) {
|
|
501
509
|
if (!Array.isArray(items)) {
|
|
502
|
-
collector.error(( localize(
|
|
510
|
+
collector.error(( localize(15369, "submenu items must be an array")));
|
|
503
511
|
return false;
|
|
504
512
|
}
|
|
505
513
|
for (const item of items) {
|
|
@@ -518,15 +526,15 @@ var schema;
|
|
|
518
526
|
schema.isValidItems = isValidItems;
|
|
519
527
|
function isValidSubmenu(submenu, collector) {
|
|
520
528
|
if (typeof submenu !== "object") {
|
|
521
|
-
collector.error(( localize(
|
|
529
|
+
collector.error(( localize(15370, "submenu items must be an object")));
|
|
522
530
|
return false;
|
|
523
531
|
}
|
|
524
532
|
if (typeof submenu.id !== "string") {
|
|
525
|
-
collector.error(( localize(
|
|
533
|
+
collector.error(( localize(15367, "property `{0}` is mandatory and must be of type `string`", "id")));
|
|
526
534
|
return false;
|
|
527
535
|
}
|
|
528
536
|
if (typeof submenu.label !== "string") {
|
|
529
|
-
collector.error(( localize(
|
|
537
|
+
collector.error(( localize(15367, "property `{0}` is mandatory and must be of type `string`", "label")));
|
|
530
538
|
return false;
|
|
531
539
|
}
|
|
532
540
|
return true;
|
|
@@ -538,24 +546,24 @@ var schema;
|
|
|
538
546
|
properties: {
|
|
539
547
|
command: {
|
|
540
548
|
description: ( localize(
|
|
541
|
-
|
|
549
|
+
15371,
|
|
542
550
|
"Identifier of the command to execute. The command must be declared in the 'commands'-section"
|
|
543
551
|
)),
|
|
544
552
|
type: "string"
|
|
545
553
|
},
|
|
546
554
|
alt: {
|
|
547
555
|
description: ( localize(
|
|
548
|
-
|
|
556
|
+
15372,
|
|
549
557
|
"Identifier of an alternative command to execute. The command must be declared in the 'commands'-section"
|
|
550
558
|
)),
|
|
551
559
|
type: "string"
|
|
552
560
|
},
|
|
553
561
|
when: {
|
|
554
|
-
description: ( localize(
|
|
562
|
+
description: ( localize(15373, "Condition which must be true to show this item")),
|
|
555
563
|
type: "string"
|
|
556
564
|
},
|
|
557
565
|
group: {
|
|
558
|
-
description: ( localize(
|
|
566
|
+
description: ( localize(15374, "Group into which this item belongs")),
|
|
559
567
|
type: "string"
|
|
560
568
|
}
|
|
561
569
|
}
|
|
@@ -565,15 +573,15 @@ var schema;
|
|
|
565
573
|
required: ["submenu"],
|
|
566
574
|
properties: {
|
|
567
575
|
submenu: {
|
|
568
|
-
description: ( localize(
|
|
576
|
+
description: ( localize(15375, "Identifier of the submenu to display in this item.")),
|
|
569
577
|
type: "string"
|
|
570
578
|
},
|
|
571
579
|
when: {
|
|
572
|
-
description: ( localize(
|
|
580
|
+
description: ( localize(15373, "Condition which must be true to show this item")),
|
|
573
581
|
type: "string"
|
|
574
582
|
},
|
|
575
583
|
group: {
|
|
576
|
-
description: ( localize(
|
|
584
|
+
description: ( localize(15374, "Group into which this item belongs")),
|
|
577
585
|
type: "string"
|
|
578
586
|
}
|
|
579
587
|
}
|
|
@@ -583,16 +591,16 @@ var schema;
|
|
|
583
591
|
required: ["id", "label"],
|
|
584
592
|
properties: {
|
|
585
593
|
id: {
|
|
586
|
-
description: ( localize(
|
|
594
|
+
description: ( localize(15376, "Identifier of the menu to display as a submenu.")),
|
|
587
595
|
type: "string"
|
|
588
596
|
},
|
|
589
597
|
label: {
|
|
590
|
-
description: ( localize(
|
|
598
|
+
description: ( localize(15377, "The label of the menu item which leads to this submenu.")),
|
|
591
599
|
type: "string"
|
|
592
600
|
},
|
|
593
601
|
icon: {
|
|
594
602
|
description: ( localize(
|
|
595
|
-
|
|
603
|
+
15378,
|
|
596
604
|
"(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)\""
|
|
597
605
|
)),
|
|
598
606
|
anyOf: [{
|
|
@@ -601,11 +609,11 @@ var schema;
|
|
|
601
609
|
type: "object",
|
|
602
610
|
properties: {
|
|
603
611
|
light: {
|
|
604
|
-
description: ( localize(
|
|
612
|
+
description: ( localize(15379, "Icon path when a light theme is used")),
|
|
605
613
|
type: "string"
|
|
606
614
|
},
|
|
607
615
|
dark: {
|
|
608
|
-
description: ( localize(
|
|
616
|
+
description: ( localize(15380, "Icon path when a dark theme is used")),
|
|
609
617
|
type: "string"
|
|
610
618
|
}
|
|
611
619
|
}
|
|
@@ -614,11 +622,11 @@ var schema;
|
|
|
614
622
|
}
|
|
615
623
|
};
|
|
616
624
|
schema.menusContribution = {
|
|
617
|
-
description: ( localize(
|
|
625
|
+
description: ( localize(15381, "Contributes menu items to the editor")),
|
|
618
626
|
type: "object",
|
|
619
627
|
properties: index(apiMenus, menu => menu.key, menu => ({
|
|
620
628
|
markdownDescription: menu.proposed ? ( localize(
|
|
621
|
-
|
|
629
|
+
15382,
|
|
622
630
|
"Proposed API, requires `enabledApiProposal: [\"{0}\"]` - {1}",
|
|
623
631
|
menu.proposed,
|
|
624
632
|
menu.description
|
|
@@ -637,18 +645,18 @@ var schema;
|
|
|
637
645
|
}
|
|
638
646
|
};
|
|
639
647
|
schema.submenusContribution = {
|
|
640
|
-
description: ( localize(
|
|
648
|
+
description: ( localize(15383, "Contributes submenu items to the editor")),
|
|
641
649
|
type: "array",
|
|
642
650
|
items: submenu
|
|
643
651
|
};
|
|
644
652
|
function isValidCommand(command, collector) {
|
|
645
653
|
if (!command) {
|
|
646
|
-
collector.error(( localize(
|
|
654
|
+
collector.error(( localize(15384, "expected non-empty value.")));
|
|
647
655
|
return false;
|
|
648
656
|
}
|
|
649
657
|
if (isFalsyOrWhitespace(command.command)) {
|
|
650
658
|
collector.error(( localize(
|
|
651
|
-
|
|
659
|
+
15367,
|
|
652
660
|
"property `{0}` is mandatory and must be of type `string`",
|
|
653
661
|
"command"
|
|
654
662
|
)));
|
|
@@ -662,7 +670,7 @@ var schema;
|
|
|
662
670
|
}
|
|
663
671
|
if (command.enablement && typeof command.enablement !== "string") {
|
|
664
672
|
collector.error(( localize(
|
|
665
|
-
|
|
673
|
+
15368,
|
|
666
674
|
"property `{0}` can be omitted or must be of type `string`",
|
|
667
675
|
"precondition"
|
|
668
676
|
)));
|
|
@@ -687,7 +695,7 @@ var schema;
|
|
|
687
695
|
return true;
|
|
688
696
|
}
|
|
689
697
|
collector.error(( localize(
|
|
690
|
-
|
|
698
|
+
15385,
|
|
691
699
|
"property `icon` can be omitted or must be either a string or a literal like `{dark, light}`"
|
|
692
700
|
)));
|
|
693
701
|
return false;
|
|
@@ -695,21 +703,21 @@ var schema;
|
|
|
695
703
|
function isValidLocalizedString(localized, collector, propertyName) {
|
|
696
704
|
if (typeof localized === "undefined") {
|
|
697
705
|
collector.error(( localize(
|
|
698
|
-
|
|
706
|
+
15386,
|
|
699
707
|
"property `{0}` is mandatory and must be of type `string` or `object`",
|
|
700
708
|
propertyName
|
|
701
709
|
)));
|
|
702
710
|
return false;
|
|
703
711
|
} else if (typeof localized === "string" && isFalsyOrWhitespace(localized)) {
|
|
704
712
|
collector.error(( localize(
|
|
705
|
-
|
|
713
|
+
15367,
|
|
706
714
|
"property `{0}` is mandatory and must be of type `string`",
|
|
707
715
|
propertyName
|
|
708
716
|
)));
|
|
709
717
|
return false;
|
|
710
718
|
} else if (typeof localized !== "string" && (isFalsyOrWhitespace(localized.original) || isFalsyOrWhitespace(localized.value))) {
|
|
711
719
|
collector.error(( localize(
|
|
712
|
-
|
|
720
|
+
15387,
|
|
713
721
|
"properties `{0}` and `{1}` are mandatory and must be of type `string`",
|
|
714
722
|
`${propertyName}.value`,
|
|
715
723
|
`${propertyName}.original`
|
|
@@ -723,37 +731,37 @@ var schema;
|
|
|
723
731
|
required: ["command", "title"],
|
|
724
732
|
properties: {
|
|
725
733
|
command: {
|
|
726
|
-
description: ( localize(
|
|
734
|
+
description: ( localize(15388, "Identifier of the command to execute")),
|
|
727
735
|
type: "string"
|
|
728
736
|
},
|
|
729
737
|
title: {
|
|
730
|
-
description: ( localize(
|
|
738
|
+
description: ( localize(15389, "Title by which the command is represented in the UI")),
|
|
731
739
|
type: "string"
|
|
732
740
|
},
|
|
733
741
|
shortTitle: {
|
|
734
742
|
markdownDescription: ( localize(
|
|
735
|
-
|
|
743
|
+
15390,
|
|
736
744
|
"(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."
|
|
737
745
|
)),
|
|
738
746
|
type: "string"
|
|
739
747
|
},
|
|
740
748
|
category: {
|
|
741
749
|
description: ( localize(
|
|
742
|
-
|
|
750
|
+
15391,
|
|
743
751
|
"(Optional) Category string by which the command is grouped in the UI"
|
|
744
752
|
)),
|
|
745
753
|
type: "string"
|
|
746
754
|
},
|
|
747
755
|
enablement: {
|
|
748
756
|
description: ( localize(
|
|
749
|
-
|
|
757
|
+
15392,
|
|
750
758
|
"(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."
|
|
751
759
|
)),
|
|
752
760
|
type: "string"
|
|
753
761
|
},
|
|
754
762
|
icon: {
|
|
755
763
|
description: ( localize(
|
|
756
|
-
|
|
764
|
+
15393,
|
|
757
765
|
"(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)\""
|
|
758
766
|
)),
|
|
759
767
|
anyOf: [{
|
|
@@ -762,11 +770,11 @@ var schema;
|
|
|
762
770
|
type: "object",
|
|
763
771
|
properties: {
|
|
764
772
|
light: {
|
|
765
|
-
description: ( localize(
|
|
773
|
+
description: ( localize(15394, "Icon path when a light theme is used")),
|
|
766
774
|
type: "string"
|
|
767
775
|
},
|
|
768
776
|
dark: {
|
|
769
|
-
description: ( localize(
|
|
777
|
+
description: ( localize(15395, "Icon path when a dark theme is used")),
|
|
770
778
|
type: "string"
|
|
771
779
|
}
|
|
772
780
|
}
|
|
@@ -775,7 +783,7 @@ var schema;
|
|
|
775
783
|
}
|
|
776
784
|
};
|
|
777
785
|
schema.commandsContribution = {
|
|
778
|
-
description: ( localize(
|
|
786
|
+
description: ( localize(15396, "Contributes commands to the command palette.")),
|
|
779
787
|
oneOf: [commandType, {
|
|
780
788
|
type: "array",
|
|
781
789
|
items: commandType
|
|
@@ -825,14 +833,14 @@ commandsExtensionPoint.setHandler(extensions => {
|
|
|
825
833
|
if (existingCmd) {
|
|
826
834
|
if (existingCmd.source) {
|
|
827
835
|
extension.collector.info(( localize(
|
|
828
|
-
|
|
836
|
+
15397,
|
|
829
837
|
"Command `{0}` already registered by {1} ({2})",
|
|
830
838
|
userFriendlyCommand.command,
|
|
831
839
|
existingCmd.source.title,
|
|
832
840
|
existingCmd.source.id
|
|
833
841
|
)));
|
|
834
842
|
} else {
|
|
835
|
-
extension.collector.info(( localize(
|
|
843
|
+
extension.collector.info(( localize(15398, "Command `{0}` already registered", userFriendlyCommand.command)));
|
|
836
844
|
}
|
|
837
845
|
}
|
|
838
846
|
_commandRegistrations.add(MenuRegistry.addCommand({
|
|
@@ -880,19 +888,19 @@ submenusExtensionPoint.setHandler(extensions => {
|
|
|
880
888
|
continue;
|
|
881
889
|
}
|
|
882
890
|
if (!submenuInfo.id) {
|
|
883
|
-
collector.warn(( localize(
|
|
891
|
+
collector.warn(( localize(15399, "`{0}` is not a valid submenu identifier", submenuInfo.id)));
|
|
884
892
|
continue;
|
|
885
893
|
}
|
|
886
894
|
if (( _submenus.has(submenuInfo.id))) {
|
|
887
895
|
collector.info(( localize(
|
|
888
|
-
|
|
896
|
+
15400,
|
|
889
897
|
"The `{0}` submenu was already previously registered.",
|
|
890
898
|
submenuInfo.id
|
|
891
899
|
)));
|
|
892
900
|
continue;
|
|
893
901
|
}
|
|
894
902
|
if (!submenuInfo.label) {
|
|
895
|
-
collector.warn(( localize(
|
|
903
|
+
collector.warn(( localize(15401, "`{0}` is not a valid submenu label", submenuInfo.label)));
|
|
896
904
|
continue;
|
|
897
905
|
}
|
|
898
906
|
let absoluteIcon;
|
|
@@ -953,7 +961,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
953
961
|
}
|
|
954
962
|
if (menu.proposed && !isProposedApiEnabled(extension.description, menu.proposed)) {
|
|
955
963
|
collector.error(( localize(
|
|
956
|
-
|
|
964
|
+
15402,
|
|
957
965
|
"{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}",
|
|
958
966
|
entry[0],
|
|
959
967
|
menu.proposed,
|
|
@@ -968,7 +976,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
968
976
|
const alt = menuItem.alt && MenuRegistry.getCommand(menuItem.alt) || undefined;
|
|
969
977
|
if (!command) {
|
|
970
978
|
collector.error(( localize(
|
|
971
|
-
|
|
979
|
+
15403,
|
|
972
980
|
"Menu item references a command `{0}` which is not defined in the 'commands' section.",
|
|
973
981
|
menuItem.command
|
|
974
982
|
)));
|
|
@@ -976,13 +984,13 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
976
984
|
}
|
|
977
985
|
if (menuItem.alt && !alt) {
|
|
978
986
|
collector.warn(( localize(
|
|
979
|
-
|
|
987
|
+
15404,
|
|
980
988
|
"Menu item references an alt-command `{0}` which is not defined in the 'commands' section.",
|
|
981
989
|
menuItem.alt
|
|
982
990
|
)));
|
|
983
991
|
}
|
|
984
992
|
if (menuItem.command === menuItem.alt) {
|
|
985
|
-
collector.info(( localize(
|
|
993
|
+
collector.info(( localize(15405, "Menu item references the same command as default and alt-command")));
|
|
986
994
|
}
|
|
987
995
|
item = {
|
|
988
996
|
command,
|
|
@@ -994,7 +1002,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
994
1002
|
} else {
|
|
995
1003
|
if (menu.supportsSubmenus === false) {
|
|
996
1004
|
collector.error(( localize(
|
|
997
|
-
|
|
1005
|
+
15406,
|
|
998
1006
|
"Menu item references a submenu for a menu which doesn't have submenu support."
|
|
999
1007
|
)));
|
|
1000
1008
|
continue;
|
|
@@ -1002,7 +1010,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1002
1010
|
const submenu = _submenus.get(menuItem.submenu);
|
|
1003
1011
|
if (!submenu) {
|
|
1004
1012
|
collector.error(( localize(
|
|
1005
|
-
|
|
1013
|
+
15407,
|
|
1006
1014
|
"Menu item references a submenu `{0}` which is not defined in the 'submenus' section.",
|
|
1007
1015
|
menuItem.submenu
|
|
1008
1016
|
)));
|
|
@@ -1015,7 +1023,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1015
1023
|
}
|
|
1016
1024
|
if (( submenuRegistrations.has(submenu.id.id))) {
|
|
1017
1025
|
collector.warn(( localize(
|
|
1018
|
-
|
|
1026
|
+
15408,
|
|
1019
1027
|
"The `{0}` submenu was already contributed to the `{1}` menu.",
|
|
1020
1028
|
menuItem.submenu,
|
|
1021
1029
|
entry[0]
|
|
@@ -1043,7 +1051,7 @@ menusExtensionPoint.setHandler(extensions => {
|
|
|
1043
1051
|
}
|
|
1044
1052
|
if (menu.id === MenuId.ViewContainerTitle && !menuItem.when?.includes("viewContainer == workbench.view.debug")) {
|
|
1045
1053
|
collector.error(( localize(
|
|
1046
|
-
|
|
1054
|
+
15409,
|
|
1047
1055
|
"The {0} menu contribution must check {1} in its {2} clause.",
|
|
1048
1056
|
"`viewContainer/title`",
|
|
1049
1057
|
"`viewContainer == workbench.view.debug`",
|
|
@@ -1145,7 +1153,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1145
1153
|
dispose: () => {}
|
|
1146
1154
|
};
|
|
1147
1155
|
}
|
|
1148
|
-
const headers = [( localize(
|
|
1156
|
+
const headers = [( localize(15410, "ID")), ( localize(15411, "Title")), ( localize(15412, "Keyboard Shortcuts")), ( localize(15413, "Menu Contexts"))];
|
|
1149
1157
|
const rows = ( commands.sort((a, b) => a.id.localeCompare(b.id)).map(command => {
|
|
1150
1158
|
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(" ")}`)];
|
|
1151
1159
|
}));
|
|
@@ -1176,7 +1184,7 @@ let CommandsTableRenderer = class CommandsTableRenderer extends Disposable {
|
|
|
1176
1184
|
CommandsTableRenderer = ( __decorate([( __param(0, IKeybindingService))], CommandsTableRenderer));
|
|
1177
1185
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1178
1186
|
id: "commands",
|
|
1179
|
-
label: ( localize(
|
|
1187
|
+
label: ( localize(15414, "Commands")),
|
|
1180
1188
|
access: {
|
|
1181
1189
|
canToggle: false
|
|
1182
1190
|
},
|
|
@@ -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(15822, "expected non-empty value.")));
|
|
55
55
|
return false;
|
|
56
56
|
}
|
|
57
57
|
if (typeof keyBinding.command !== "string") {
|
|
58
58
|
rejects.push(( localize(
|
|
59
|
-
|
|
59
|
+
15823,
|
|
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(15824, "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(15824, "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(15824, "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
|
+
15824,
|
|
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(15824, "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(15825, "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(15826, "Arguments to pass to the command to execute."))
|
|
105
105
|
},
|
|
106
106
|
key: {
|
|
107
107
|
description: ( localize(
|
|
108
|
-
|
|
108
|
+
15827,
|
|
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(15828, "Mac specific key or key sequence.")),
|
|
115
115
|
type: "string"
|
|
116
116
|
},
|
|
117
117
|
linux: {
|
|
118
|
-
description: ( localize(
|
|
118
|
+
description: ( localize(15829, "Linux specific key or key sequence.")),
|
|
119
119
|
type: "string"
|
|
120
120
|
},
|
|
121
121
|
win: {
|
|
122
|
-
description: ( localize(
|
|
122
|
+
description: ( localize(15830, "Windows specific key or key sequence.")),
|
|
123
123
|
type: "string"
|
|
124
124
|
},
|
|
125
125
|
when: {
|
|
126
|
-
description: ( localize(
|
|
126
|
+
description: ( localize(15831, "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(15832, "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
|
+
15833,
|
|
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(15834, "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(15835, "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(15836, "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(15837, "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(15838, "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
|
+
15839,
|
|
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(15840, "Condition when the key is active."))
|
|
851
851
|
},
|
|
852
852
|
"args": {
|
|
853
|
-
"description": ( localize(
|
|
853
|
+
"description": ( localize(15841, "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(15842, "Keyboard")),
|
|
480
480
|
"properties": {
|
|
481
481
|
"keyboard.layout": {
|
|
482
482
|
"type": "string",
|
|
483
483
|
"default": "autodetect",
|
|
484
|
-
"description": ( localize(
|
|
484
|
+
"description": ( localize(15843, "Control the keyboard layout used in web."))
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
};
|