-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpackage.json
571 lines (571 loc) · 16.9 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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
{
"name": "commands",
"displayName": "Commands",
"description": "Run one/multiple commands with arguments from Tree View / Status Bar / Quick Pick.",
"version": "1.14.1",
"publisher": "usernamehw",
"license": "MIT",
"engines": {
"vscode": "^1.93.0"
},
"extensionKind": [
"workspace",
"ui"
],
"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": [
"onStartupFinished",
"onFileSystem:commandsExtension"
],
"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",
"order": 0,
"default": {}
},
"commands.variableSubstitutionEnabled": {
"type": "boolean",
"markdownDescription": "Allow `\"args\"` to replace variables: [📚 Docs](https://github.com/usernamehw/vscode-commands/blob/master/docs/documentation.md#variable-substitution).",
"order": 1,
"default": true
},
"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": "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/docs/editor/glob-patterns) for `#commands.documentLinksEnabled#`. Example: `**/*.{ts,js}` - only enable in TypeScript & JavaScript files.",
"default": ""
},
"commands.toggleSettings.showNotification": {
"type": "boolean",
"markdownDescription": "When enabled - show notification after using `commands.toggleSetting` or `commands.incrementSetting`.",
"default": false
},
"commands.watchTerminalStatusBar": {
"type": "object",
"markdownDescription": "Enable status bar indicator that is supposed to show the status of a running in terminal command (`dev` | `watch`...). Will only work with contributed terminal profile `Commands:Watch`. Status of errors might not be perfect because it relies on simple text match.",
"properties": {
"enabled": {
"type": "boolean",
"default": false
},
"defaultText": {
"type": "string",
"markdownDescription": "Text when no command in running in target terminal.",
"default": "$(play-circle)"
},
"errorText": {
"type": "string",
"markdownDescription": "Text when terminal output matches with `errorWhen`.",
"default": "🔴"
},
"warningText": {
"type": "string",
"markdownDescription": "Text when terminal output matches with `warningWhen`.",
"default": "🟠"
},
"successText": {
"type": "string",
"markdownDescription": "Text when terminal output doesn't match anything from `errorWhen` and `warningWhen`.",
"default": "🟢"
},
"commandOnClick": {
"type": "string",
"markdownDescription": "Command to run when clicking on status bar item when nothing is running.",
"default": "commands.startTerminalWatch"
},
"commandOnClickWhenRunning": {
"type": "string",
"markdownDescription": "Command to run when clicking on status bar item when terminal has a running command. Accepts: `showTerminal` | `killTerminal` | ANY_COMMAND_ID",
"default": "showTerminal"
},
"sendText": {
"type": "string",
"markdownDescription": "Text to send to terminal when clicking on status bar item.",
"default": "npm run dev"
},
"showTerminal": {
"type": "boolean",
"markdownDescription": "Reveal terminal right after its creation.",
"default": false
},
"terminalIcon": {
"type": "string",
"markdownDescription": "Change codicon for terminal.",
"default": "play-circle",
"$ref": "commandsExtension://schemas/codicons"
},
"terminalIconColor": {
"type": "string",
"markdownDescription": "Change codicon color for terminal icon.",
"default": "",
"$ref": "commandsExtension://schemas/colors"
},
"errorWhen": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Match output of terminal to show status bar item with error state. Can be picked with someting more specific like `\\x1b[31m\\x1b[1mERROR` (whatever build system shows as errors for your programming language).",
"default": [
"error"
]
},
"warningWhen": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "Match output of terminal to show status bar item with warning state. Can be picked with someting more specific like `\\x1b[31m\\x1b[1mERROR` (whatever build system shows as errors for your programming language).",
"default": [
"warning"
]
},
"successWhen": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "By default: if output doesn't match `errorWhen` & `warningWhen` => then the state will be success. It may not be true in case of loading or some error occurring that is not in the `errorWhen` array. When this array is not empty => success state will only be when output matches one of the array items of this setting.",
"default": []
},
"highlightErrorWithBackground": {
"type": "boolean",
"markdownDescription": "Highlight status bar item with background color (usually red).",
"default": false
},
"highlightWarningWithBackground": {
"type": "boolean",
"markdownDescription": "Highlight status bar item with background color (usually orange).",
"default": false
},
"tooltipEnabled": {
"type": "boolean",
"markdownDescription": "Enable hover tooltip for status bar item.",
"default": true
},
"replaceInTooltip": {
"type": "object",
"markdownDescription": "Replace text in status bar hover. (key - regex|string, value - replace text).Use \\`/REGEX_TEXT/REGEX_FLAGS\\` key for Regular Expression. Any other key would be considered plain text.",
"default": {}
},
"alignment": {
"type": "string",
"markdownDescription": "Pick alignment for status bar item: left/right.",
"enum": [
"left",
"right"
],
"default": "left"
},
"priority": {
"type": "integer",
"markdownDescription": "The priority of the status bar item. Higher values mean the item should be shown more to the left.",
"default": -100000
}
},
"default": {
"enabled": false,
"defaultText": "$(play-circle)",
"errorText": "🔴",
"warningText": "🟠",
"successText": "🟢",
"commandOnClick": "commands.startTerminalWatch",
"commandOnClickWhenRunning": "showTerminal",
"sendText": "npm run dev",
"showTerminal": false,
"terminalIcon": "play-circle",
"terminalIconColor": "",
"errorWhen": [
"error"
],
"warningWhen": [
"warning"
],
"highlightErrorWithBackground": false,
"highlightWarningWithBackground": false,
"tooltipEnabled": true,
"replaceInTooltip": {},
"alignment": "left",
"priority": -100000
}
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "commands",
"icon": "$(play-circle)",
"title": "Commands"
}
]
},
"views": {
"commands": [
{
"id": "commands.tree",
"name": "View"
}
]
},
"viewsWelcome": [
{
"view": "commands.tree",
"contents": "No commands defined in \"commands.commands\".\n\n[New Command](command:commands.newCommand)",
"when": "commands:emptyCommands"
}
],
"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.suggestCodicons",
"title": "Suggest (autocomplete) codicons",
"description": "Suggest [Codicons](https://code.visualstudio.com/api/references/icons-in-labels)",
"category": "Commands"
},
{
"command": "commands.suggestVariables",
"title": "Suggest (autocomplete) variables",
"description": "Suggest variables that are supported by this extension's variable substitutions, e.g: `${workspaceFolderBasename}`. [📚 Docs](https://github.com/usernamehw/vscode-commands/blob/master/docs/documentation.md#variable-substitution)",
"category": "Commands"
},
{
"command": "commands.suggestSettings",
"title": "Suggest (autocomplete) Settings",
"description": "Suggest setting ids (user & workspace).",
"category": "Commands"
},
{
"command": "commands.suggestColors",
"title": "Suggest (autocomplete) Colors",
"description": "Suggest theme color ids [theme-color](https://code.visualstudio.com/api/references/theme-color).",
"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.newFolderInFolder",
"title": "Add new folder inside this folder",
"icon": "$(new-folder)",
"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"
},
{
"command": "commands.startTerminalWatch",
"title": "Start Terminal Watching",
"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|folder/",
"group": "3_keybinding"
},
{
"command": "commands.deleteCommand",
"when": "view == commands.tree && viewItem =~ /command|stringCommand/",
"group": "4_delete"
},
{
"command": "commands.newFolderInFolder",
"when": "view == commands.tree && viewItem == folder",
"group": "inline"
},
{
"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.newFolderInFolder",
"when": "false"
},
{
"command": "commands.newFolder",
"when": "false"
},
{
"command": "commands.deleteCommand",
"when": "false"
},
{
"command": "commands.run",
"when": "false"
}
]
},
"terminal": {
"profiles": [
{
"id": "commands.watch",
"title": "Commands:Watch"
}
]
},
"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"
},
"devDependencies": {
"@soda/friendly-errors-webpack-plugin": "^1.8.1",
"@types/lodash": "^4.17.13",
"@types/node": "^20.17.6",
"@types/vscode": "^1.93.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.57.1",
"null-loader": "^4.0.1",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"ts-loader": "^9.5.1",
"typescript": "^5.6.3",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"jsonc-parser": "^3.2.1",
"lodash": "^4.17.21",
"open": "^8.4.2"
}
}