-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
620 lines (620 loc) · 21.1 KB
/
package.json
File metadata and controls
620 lines (620 loc) · 21.1 KB
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
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
{
"name": "statusbar-quick-actions",
"displayName": "StatusBar Quick Actions",
"description": "Highly customizable statusbar buttons for executing user-defined scripts and commands with advanced features including theme support, execution tracking, and intelligent visibility conditions.",
"version": "0.0.25",
"publisher": "involvex",
"author": {
"name": "involvex"
},
"bin": {
"statusbar-quick-actions-configcli": "out/config-cli.js"
},
"private": false,
"license": "MIT",
"icon": "assets/icon.png",
"galleryBanner": {
"color": "#1e2024",
"theme": "dark"
},
"funding": {
"type": "url",
"url": "https://paypal.me/involvex"
},
"sponsor": {
"url": "https://github.com/sponsors/involvex"
},
"repository": {
"type": "git",
"url": "https://github.com/involvex/vscode-statusbar-quick-actions.git"
},
"bugs": {
"url": "https://github.com/involvex/vscode-statusbar-quick-actions/issues"
},
"homepage": "https://github.com/involvex/vscode-statusbar-quick-actions#readme",
"engines": {
"vscode": "^1.110.0"
},
"categories": [
"Other",
"Extension Packs",
"Snippets"
],
"keywords": [
"statusbar",
"quick-actions",
"buttons",
"scripts",
"commands",
"npm",
"yarn",
"pnpm",
"bun",
"git",
"development",
"productivity",
"customizable",
"theme",
"accessibility"
],
"activationEvents": [
"*"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "statusbarQuickActions.editButton",
"title": "StatusBar Quick Actions: Edit Button",
"category": "StatusBar Quick Actions"
},
{
"command": "statusbarQuickActions.viewHistory",
"title": "StatusBar Quick Actions: View History",
"category": "StatusBar Quick Actions"
},
{
"command": "statusbarQuickActions.clearHistory",
"title": "StatusBar Quick Actions: Clear History",
"category": "StatusBar Quick Actions"
},
{
"command": "statusbarQuickActions.navigateButtons",
"title": "StatusBar Quick Actions: Navigate Buttons",
"category": "StatusBar Quick Actions"
}
],
"keybindings": [
{
"command": "statusbarQuickActions.navigateButtons",
"key": "ctrl+shift+b",
"mac": "cmd+shift+b",
"when": "editorTextFocus"
}
],
"configuration": {
"title": "StatusBar Quick Actions",
"properties": {
"statusbarQuickActions.buttons": {
"type": "array",
"default": [],
"description": "Array of statusbar button configurations",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the button"
},
"text": {
"type": "string",
"description": "Text to display on the button (supports emojis)"
},
"tooltip": {
"type": "string",
"description": "Tooltip text shown on hover"
},
"icon": {
"type": "object",
"description": "Icon configuration for the button",
"properties": {
"id": {
"type": "string",
"description": "VS Code icon ID (e.g., 'symbol-method', 'play')"
},
"animation": {
"type": "string",
"enum": [
"spin",
"pulse"
],
"description": "Icon animation type"
}
}
},
"command": {
"type": "object",
"description": "Command configuration",
"properties": {
"type": {
"type": "string",
"enum": [
"npm",
"yarn",
"pnpm",
"bun",
"bunx",
"npx",
"pnpx",
"shell",
"github",
"vscode",
"task",
"detect"
],
"description": "Type of command to execute"
},
"script": {
"type": "string",
"description": "Script name for package manager commands"
},
"command": {
"type": "string",
"description": "Command to execute for shell and other command types"
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional arguments for the command"
}
},
"required": [
"type"
]
},
"enabled": {
"type": "boolean",
"default": true,
"description": "Whether the button is enabled"
},
"alignment": {
"type": "string",
"enum": [
"left",
"right"
],
"default": "left",
"description": "Alignment of the button in the statusbar"
},
"priority": {
"type": "number",
"default": 100,
"description": "Priority for button positioning (higher numbers appear first)"
},
"colors": {
"type": "object",
"description": "Custom colors for the button",
"properties": {
"foreground": {
"type": "string",
"description": "Foreground color (theme color or hex)"
},
"background": {
"type": "string",
"description": "Background color (theme color or hex)"
}
}
},
"execution": {
"type": "object",
"description": "Execution behavior configuration",
"properties": {
"foreground": {
"type": "boolean",
"default": false,
"description": "Execute in foreground (blocking) or background (non-blocking)"
},
"showProgress": {
"type": "boolean",
"default": true,
"description": "Show progress indicator during execution"
},
"timeout": {
"type": "number",
"default": 30000,
"description": "Timeout in milliseconds for command execution"
},
"notifications": {
"type": "object",
"description": "Notification settings",
"properties": {
"showSuccess": {
"type": "boolean",
"default": true
},
"showError": {
"type": "boolean",
"default": true
},
"showOutput": {
"type": "boolean",
"default": false
}
}
}
}
},
"visibility": {
"type": "object",
"description": "Visibility conditions for the button",
"properties": {
"conditions": {
"type": "array",
"description": "Array of visibility conditions (all must be met)",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"fileType",
"fileExists",
"gitStatus",
"workspaceFolder"
],
"description": "Type of visibility condition"
},
"patterns": {
"type": "array",
"items": {
"type": "string"
},
"description": "File patterns to match (for fileType)"
},
"path": {
"type": "string",
"description": "File/directory path to check (for fileExists)"
},
"status": {
"type": "string",
"enum": [
"repository",
"clean",
"dirty",
"ahead",
"behind"
],
"description": "Git status to match (for gitStatus)"
},
"folders": {
"type": "array",
"items": {
"type": "string"
},
"description": "Workspace folder names to match (for workspaceFolder)"
},
"invert": {
"type": "boolean",
"default": false,
"description": "Invert the condition logic"
}
},
"required": [
"type"
]
}
}
}
},
"workingDirectory": {
"type": "string",
"description": "Working directory for command execution"
},
"environment": {
"type": "object",
"description": "Environment variables to set for command execution",
"additionalProperties": {
"type": "string"
}
},
"history": {
"type": "object",
"description": "History tracking configuration",
"properties": {
"enabled": {
"type": "boolean",
"default": true
},
"maxEntries": {
"type": "number",
"default": 20,
"description": "Maximum number of history entries to keep"
}
}
}
},
"required": [
"id",
"text",
"command"
]
}
},
"statusbarQuickActions.settings.theme": {
"type": "object",
"description": "Theme configuration for the extension",
"properties": {
"darkTheme": {
"type": "boolean",
"default": true,
"description": "Use dark theme colors"
},
"highContrast": {
"type": "boolean",
"default": false,
"description": "Enable high contrast mode for better accessibility"
},
"customColors": {
"type": "object",
"description": "Custom color palette",
"properties": {
"success": {
"type": "string",
"default": "#28a745",
"description": "Color for success states"
},
"error": {
"type": "string",
"default": "#dc3545",
"description": "Color for error states"
},
"warning": {
"type": "string",
"default": "#ffc107",
"description": "Color for warning states"
},
"info": {
"type": "string",
"default": "#17a2b8",
"description": "Color for info states"
},
"executing": {
"type": "string",
"default": "#007acc",
"description": "Color for executing states"
},
"disabled": {
"type": "string",
"default": "#6c757d",
"description": "Color for disabled states"
}
}
},
"statusBarColors": {
"type": "object",
"description": "Custom statusbar colors",
"properties": {
"foreground": {
"type": "string",
"default": "statusBarItem.foreground",
"description": "Default foreground color"
},
"background": {
"type": "string",
"default": "statusBarItem.background",
"description": "Default background color"
}
}
}
}
},
"statusbarQuickActions.settings.debug": {
"type": "boolean",
"default": false,
"description": "Enable debug logging for troubleshooting"
},
"statusbarQuickActions.settings.output": {
"type": "object",
"description": "Output panel configuration for command execution",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Enable dedicated output panel for command execution"
},
"mode": {
"type": "string",
"enum": [
"per-button",
"shared"
],
"default": "per-button",
"description": "Output panel mode: per-button (separate panel for each button) or shared (one panel for all)"
},
"format": {
"type": "string",
"enum": [
"raw",
"formatted",
"ansi"
],
"default": "formatted",
"description": "Output formatting: raw (plain text), formatted (with timestamps), ansi (preserve colors)"
},
"clearOnRun": {
"type": "boolean",
"default": false,
"description": "Clear output panel before each command execution"
},
"showTimestamps": {
"type": "boolean",
"default": true,
"description": "Show timestamps in output panel"
},
"preserveHistory": {
"type": "boolean",
"default": true,
"description": "Preserve output history across command runs"
},
"maxLines": {
"type": "number",
"default": 1000,
"description": "Maximum number of lines to keep in output panel"
}
}
},
"statusbarQuickActions.settings.performance": {
"type": "object",
"description": "Performance optimization settings",
"properties": {
"visibilityDebounceMs": {
"type": "number",
"default": 300,
"description": "Debounce delay for visibility checks in milliseconds (reduces CPU usage on rapid file switching)"
},
"enableVirtualization": {
"type": "boolean",
"default": false,
"description": "Enable virtualization for large button lists (experimental)"
},
"cacheResults": {
"type": "boolean",
"default": true,
"description": "Cache visibility evaluation results for better performance"
}
}
},
"statusbarQuickActions.settings.icons": {
"type": "object",
"description": "Icon configuration for status bar buttons",
"properties": {
"library": {
"type": "string",
"enum": [
"vscode",
"material"
],
"default": "vscode",
"description": "Icon library: VSCode Codicons or Material Design Icons"
},
"defaultVariant": {
"type": "string",
"enum": [
"outlined",
"filled",
"rounded",
"sharp",
"two-tone"
],
"default": "outlined",
"description": "Default Material Design Icon variant (only applies when library is 'material')"
},
"defaultSize": {
"type": "string",
"enum": [
"small",
"medium",
"large"
],
"default": "medium",
"description": "Default icon size"
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "bun run compile",
"compile": "bun run tsc -p ./",
"compile:watch": "bun run tsc -watch -p ./",
"lint": "bun run eslint .",
"lint:fix": "bun run eslint --fix .",
"format": "bun run prettier --write .",
"format:check": "bun run prettier --check .",
"typecheck": "bun run tsc --noEmit",
"watch": "bun run compile:watch",
"clean": "rimraf out dist && mkdir dist",
"rebuild": "bun run clean && bun run compile",
"dev": "bun run clean && bun run watch",
"prepack": "bun run format && bun run lint:fix && bun run typecheck && bun run compile",
"package": "bun run vsce package --no-dependencies --allow-star-activation -o dist/",
"package:prerelease": "bun run prepack && bun run vsce package --no-dependencies --allow-star-activation --pre-release -o dist/",
"package:install": "bun run package && code --install-extension dist/statusbar-quick-actions-*.vsix",
"test": "bun test",
"test:unit": "bun test src/test/unit",
"test:integration": "bun test src/test/integration",
"test:e2e": "node ./out/test/runTest.js",
"test:coverage": "bun test --coverage",
"test:watch": "bun test --watch",
"pretest": "bun run compile && bun run lint",
"test:all": "bun run test:unit && bun run test:integration && bun run test:e2e",
"install:deps": "bun install",
"dev:cli": "bun run src/config-cli.ts",
"debug": "bun run --inspect-brk compile",
"publish:extension": "bun run package && vsce publish",
"publish:extension:prerelease": "bun run package:prerelease && vsce publish --pre-release",
"publish:cli": "bun run package && npm publish --access public",
"changelog": "bun run src/utils/changelog.ts"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@stylistic/eslint-plugin": "^5.7.0",
"@types/bun": "^1.3.11",
"@types/console-clear": "^1.1.4",
"@types/mocha": "^10.0.10",
"@types/node": "25.0.9",
"@types/sinon": "^21.0.0",
"@types/vscode": "1.110.0",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"benchmark": "^2.1.4",
"eslint": "^9.39.2",
"glob": "^13.0.0",
"perf_hooks": "^0.0.1",
"prettier": "^3.8.1",
"rimraf": "^6.1.3",
"sinon": "21.0.3",
"typescript": "^5.9.3",
"typescript-eslint": "^8.53.0"
},
"extensionDependencies": [],
"badges": [
{
"url": "https://img.shields.io/badge/version-blue.svg",
"href": "https://img.shields.io/badge/version-blue.svg",
"description": "Version"
},
{
"url": "https://img.shields.io/badge/downloads-blue.svg",
"href": "https://img.shields.io/badge/downloads-blue.svg",
"description": "Downloads"
},
{
"url": "https://img.shields.io/badge/Rating-blue.svg",
"href": "https://img.shields.io/badge/Rating-blue.svg",
"description": "Rating"
},
{
"url": "https://img.shields.io/badge/license-MIT-blue.svg",
"href": "https://github.com/involvex/vscode-statusbar-quick-actions/blob/main/LICENSE",
"description": "License"
},
{
"url": "https://img.shields.io/github/stars/involvex/vscode-statusbar-quick-actions?style=flat",
"href": "https://github.com/involvex/vscode-statusbar-quick-actions",
"description": "GitHub Stars"
},
{
"url": "https://img.shields.io/github/issues/involvex/vscode-statusbar-quick-actions",
"href": "https://github.com/involvex/vscode-statusbar-quick-actions/issues",
"description": "GitHub Issues"
}
],
"dependencies": {
"bun": "^1.3.11",
"console-clear": "^1.1.1"
}
}