forked from usernamehw/vscode-commands
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
376 lines (376 loc) · 11 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
{
"name": "commands",
"displayName": "Commands",
"description": "Run one/multiple commands with arguments from Tree View / Status Bar / Quick Pick.",
"version": "1.8.0",
"publisher": "usernamehw",
"license": "MIT",
"engines": {
"vscode": "^1.55.0"
},
"extensionKind": [
"ui",
"workspace"
],
"repository": {
"type": "git",
"url": "https://github.com/usernamehw/vscode-commands"
},
"icon": "img/icon.png",
"qna": false,
"bugs": {
"url": "https://github.com/usernamehw/vscode-commands/issues"
},
"keywords": [
"run",
"execute",
"multi",
"multiple",
"command",
"commands",
"args",
"arguments",
"tree view",
"status bar",
"keybinding",
"shortcut",
"macros",
"toggle setting",
"delay"
],
"categories": [
"Other"
],
"activationEvents": [
"*",
"onCommand:commands.run",
"onCommand:commands.selectAndRun",
"onCommand:commands.openAsQuickPick",
"onCommand:commands.revealCommand",
"onCommand:commands.assignKeybinding",
"onCommand:commands.addToStatusBar",
"onCommand:commands.suggestCommands",
"onCommand:commands.suggestVariables"
],
"main": "./dist/extension",
"browser": "./dist/web/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "Commands",
"properties": {
"commands.commands": {
"type": "object",
"description": "Main extension property. Commands that will be rendered in the View.",
"scope": "application",
"default": {}
},
"commands.workspaceCommands": {
"type": "object",
"description": "Commands that will be rendered in the View, specific to the workspace.",
"scope": "window",
"default": {}
},
"commands.alias": {
"type": "object",
"markdownDescription": "Use shorter command ids. Extension registers aliased commands so that they can be also used in keybindings.",
"default": {},
"patternProperties": {
"^.*$": {
"type": "string"
}
},
"additionalProperties": false
},
"commands.showKeybindings": {
"type": "boolean",
"markdownDescription": "Whether or not to show keyboard shortcuts assigned to command contributed by user. (Currently only displayed in Tree View).",
"default": false
},
"commands.treeViewCollapseFolders": {
"type": "boolean",
"description": "Collapse folders by default. Requires reload before being applied.",
"default": false
},
"commands.treeViewStatusBarVisibleSymbol": {
"type": "string",
"markdownDescription": "Symbol used in the tree view to indicate that command is also visible in the status bar.",
"default": "💠"
},
"commands.treeViewWorkspaceCommandSymbol": {
"type": "string",
"markdownDescription": "Symbol used in the tree view to indicate workspace command (from `#commands.workspaceCommands#`) setting.",
"default": "🎯"
},
"commands.statusBarDefaultText": {
"type": "string",
"enum": [
"pick",
"same"
],
"default": "same",
"description": "Controls the text of Status Bar item when adding from Tree View context menu."
},
"commands.statusBarDefaultPosition": {
"type": "string",
"enum": [
"left",
"right"
],
"default": "left",
"description": "Where to put command on Status Bar (left or right)."
},
"commands.quickPickIncludeAllCommands": {
"type": "boolean",
"markdownDescription": "EXPERIMENTAL: When checked - include all commands from Command Palette to the Quick Pick.",
"default": false
},
"commands.populateCommandPalette": {
"type": "boolean",
"markdownDescription": "Adds all items to Command Palette (Requires editor reload after every change of main config `#commands.commands#`).",
"default": false
},
"commands.documentLinksEnabled": {
"type": "boolean",
"markdownDescription": "Run commands as links in documents. Links have format `@command?args@`.\n\n[issues/2](https://github.com/usernamehw/vscode-commands/issues/2)",
"default": false
},
"commands.documentLinksPattern": {
"type": "string",
"markdownDescription": "[Glob](https://code.visualstudio.com/api/references/vscode-api#GlobPattern) for `#commands.documentLinksEnabled#`. Example: `**/*.{ts,js}` - only enable in TypeScript & JavaScript files.",
"default": ""
},
"commands.variableSubstitutionEnabled": {
"type": "boolean",
"markdownDescription": "Allow `\"args\"` (of type string) to contain some of the variables from [variables-reference](https://code.visualstudio.com/docs/editor/variables-reference). Supported: \n\n- `${file}` - the current opened file absolute path \n\n- `${fileBasename}` - the current opened file's basename \n\n- `${fileBasenameNoExtension}` - the current opened file's basename with no file extension \n\n- `${fileExtname}` - the current opened file's extension \n\n- `${fileDirname}` - the current opened file's dirname \n\n- `${fileWorkspaceFolder}` - the path of the folder opened in VS Code \n\n- `${workspaceFolderBasename}` - the name of the folder opened in VS Code without any slashes (/) \n\n- `${execPath}` - location of Code.exe \n\n- `${pathSeparator}` - `/` on macOS or linux, `\\` on Windows \n\n- `${lineNumber}` - the current selected line number in the active file \n\n- `${selectedText}` - the current selected text in the active file\n\n- `${clipboard}` - current clipboard value\n\n- `${random}` - 6 random Base-10 digits",
"default": false
},
"commands.toggleSettings.showNotification": {
"type": "boolean",
"markdownDescription": "When enabled - show notification after using `commands.toggleSetting` or `commands.incrementSetting`.",
"default": false
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "commands",
"icon": "$(play-circle)",
"title": "Commands"
}
]
},
"views": {
"commands": [
{
"id": "commands.tree",
"name": "View"
}
]
},
"commands": [
{
"command": "commands.openAsQuickPick",
"title": "Open as Quick Pick",
"category": "Commands"
},
{
"command": "commands.selectAndRun",
"title": "Select and run command",
"category": "Commands"
},
{
"command": "commands.rerun",
"title": "Rerun last command",
"category": "Commands"
},
{
"command": "commands.suggestCommands",
"title": "Suggest (autocomplete) commands",
"category": "Commands"
},
{
"command": "commands.suggestVariables",
"title": "Suggest (autocomplete) variables",
"description": "Suggest variables that are supported by this extension's variable substitutions, e.g: `${workspaceFolderBasename}`.",
"category": "Commands"
},
{
"command": "commands.newCommand",
"title": "Add new command to the list",
"icon": "$(add)",
"category": "Commands"
},
{
"command": "commands.deleteCommand",
"title": "Delete command",
"icon": "$(trash)",
"category": "Commands"
},
{
"command": "commands.newFolder",
"title": "New Folder",
"icon": "$(new-folder)",
"category": "Commands"
},
{
"command": "commands.newCommandInFolder",
"title": "Add new command to this folder",
"icon": "$(add)",
"category": "Commands"
},
{
"command": "commands.revealCommand",
"title": "Reveal in settings.json",
"category": "Commands"
},
{
"command": "commands.assignKeybinding",
"title": "Assign Keybinding",
"category": "Commands"
},
{
"command": "commands.addToStatusBar",
"title": "Toggle Status Bar Item",
"category": "Commands"
},
{
"command": "commands.revealCommandsInSettignsGUI",
"title": "Open Settings GUI",
"icon": "$(gear)",
"category": "Commands"
},
{
"command": "commands.escapeCommandUriArgument",
"title": "Escape command uri argument",
"category": "Commands"
},
{
"command": "commands.run",
"title": "Run custom command",
"category": "Commands"
}
],
"menus": {
"view/title": [
{
"command": "commands.revealCommandsInSettignsGUI",
"group": "navigation@3",
"when": "view == commands.tree"
},
{
"command": "commands.newCommand",
"group": "navigation@1",
"when": "view == commands.tree"
},
{
"command": "commands.newFolder",
"group": "navigation@2",
"when": "view == commands.tree"
}
],
"view/item/context": [
{
"command": "commands.revealCommand",
"when": "view == commands.tree && viewItem =~ /command|folder|stringCommand/",
"group": "1_reveal"
},
{
"command": "commands.addToStatusBar",
"when": "view == commands.tree && viewItem =~ /command|folder/",
"group": "2_status"
},
{
"command": "commands.assignKeybinding",
"when": "view == commands.tree && viewItem =~ /command|stringCommand/",
"group": "3_keybinding"
},
{
"command": "commands.deleteCommand",
"when": "view == commands.tree && viewItem =~ /command|stringCommand/",
"group": "4_delete"
},
{
"command": "commands.newCommandInFolder",
"when": "view == commands.tree && viewItem == folder",
"group": "inline"
}
],
"commandPalette": [
{
"command": "commands.revealCommand",
"when": "false"
},
{
"command": "commands.assignKeybinding",
"when": "false"
},
{
"command": "commands.addToStatusBar",
"when": "false"
},
{
"command": "commands.revealCommandsInSettignsGUI",
"when": "false"
},
{
"command": "commands.newCommandInFolder",
"when": "false"
},
{
"command": "commands.newFolder",
"when": "false"
},
{
"command": "commands.deleteCommand",
"when": "false"
},
{
"command": "commands.run",
"when": "false"
}
]
},
"jsonValidation": [
{
"fileMatch": "**/keybindings.json",
"url": "./data/keybindings.schema.json"
},
{
"fileMatch": "**/settings.json",
"url": "./data/settings.schema.json"
}
]
},
"scripts": {
"vscode:prepublish": "webpack --mode production --color && npm run package-web",
"watch": "webpack --mode development --watch --stats minimal",
"watch-web": "webpack --mode development --watch --config web.webpack.config.js",
"package-web": "webpack --mode production --devtool hidden-source-map --config web.webpack.config.js",
"generateJsonSchema": "tsc scripts\\generateJsonSchema.ts && node scripts\\generateJsonSchema.js"
},
"devDependencies": {
"@soda/friendly-errors-webpack-plugin": "^1.8.1",
"@types/lodash": "^4.14.191",
"@types/node": "^14.18.36",
"@types/vscode": "^1.55.0",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"eslint": "^8.33.0",
"eslint-plugin-no-autofix": "^1.2.3",
"null-loader": "^4.0.1",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
"typescript-json-schema": "^0.55.0",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"jsonc-parser": "^3.2.0",
"lodash": "^4.17.21",
"open": "^8.4.1"
}
}