-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
623 lines (623 loc) · 17.2 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
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
621
622
623
{
"name": "mise-vscode",
"displayName": "Mise VSCode",
"publisher": "hverlin",
"description": "mise support for Visual Studio code (dev-tools, tasks and environment variables)",
"version": "0.34.4",
"repository": {
"type": "git",
"url": "https://github.com/hverlin/mise-vscode"
},
"bugs": {
"url": "https://github.com/hverlin/mise-vscode/issues"
},
"license": "MIT",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Programming Languages",
"Snippets",
"Other"
],
"keywords": [
"mise",
"mise-en-place",
"devtools",
"rtx",
"asdf",
"asdf-vm",
"tasks",
"envs",
"environment variables",
"scripts"
],
"icon": "resources/icon.png",
"main": "./dist/extension.js",
"activationEvents": [
"onTaskType:mise",
"workspaceContains:.config/mise/**/config.*.toml",
"workspaceContains:.config/mise/**/config.toml",
"workspaceContains:.mise.*.toml",
"workspaceContains:.mise.toml",
"workspaceContains:.mise/config.*.toml",
"workspaceContains:.mise/config.toml",
"workspaceContains:mise.*.toml",
"workspaceContains:mise.toml",
"workspaceContains:mise/config.*.toml",
"workspaceContains:mise/config.toml",
"onLanguage"
],
"extensionDependencies": [
"tamasfe.even-better-toml"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": false,
"description": "This extension requires a trusted workspace because it can execute code in the workspace."
}
},
"contributes": {
"tomlValidation": [
{
"fileMatch": [
".mise.toml",
".mise.*.toml",
"mise.toml",
"mise.*.toml",
"**/.mise/config.toml",
"**/mise/config.toml"
],
"url": "https://mise.jdx.dev/schema/mise.json"
},
{
"regexMatch": "task[s]?.toml",
"url": "https://mise.jdx.dev/schema/mise-task.json"
}
],
"grammars": [
{
"injectTo": [
"source.toml"
],
"scopeName": "inline.tera-mise",
"path": "./syntaxes/tera-mise.json",
"embeddedLanguages": {
"meta.embedded.tera.expression": "tera",
"meta.embedded.tera.statement": "tera",
"source.js": "javascript",
"source.python": "python",
"source.shell": "shellscript",
"source.ruby": "ruby"
}
}
],
"snippets": [
{
"language": "toml",
"path": "./snippets/toml-tasks-snippets.json"
},
{
"language": "shellscript",
"path": "./snippets/file-tasks-snippets.json"
}
],
"configuration": {
"title": "Mise",
"properties": {
"mise.enable": {
"order": 1,
"type": "boolean",
"default": true,
"markdownDescription": "Enable/disable mise extension."
},
"mise.binPath": {
"order": 2,
"type": "string",
"markdownDescription": "Path to the mise binary (automatically detected on startup).\n\nSee https://mise.jdx.dev/getting-started.html to install mise."
},
"mise.miseEnv": {
"order": 3,
"type": "string",
"markdownDescription": "Mise environment to use. (https://mise.jdx.dev/configuration/environments.html)"
},
"mise.configureExtensionsAutomatically": {
"order": 4,
"type": "boolean",
"default": true,
"markdownDescription": "Automatically configure extensions for the current workspace. ([list of supported extensions](https://github.com/hverlin/mise-vscode/wiki/Supported-extensions))"
},
"mise.configureExtensionsAutomaticallyIgnoreList": {
"order": 5,
"type": "array",
"default": [],
"items": {
"type": "string",
"enum": [
"ms-python.python",
"denoland.vscode-deno",
"charliermarsh.ruff",
"golang.go",
"oven.bun-vscode",
"oracle.oracle-java",
"timonwong.shellcheck",
"ms-vscode.js-debug",
"vscode.php-language-features",
"xdebug.php-debug",
"julialang.language-julia",
"pgourlain.erlang",
"Dart-Code.dart-code",
"dart-code.flutter",
"ziglang.vscode-zig"
]
},
"markdownDescription": "List of extensions that should not be configured automatically."
},
"mise.configureExtensionsUseShims": {
"order": 6,
"type": "boolean",
"title": "Configure extensions to use shims",
"default": true,
"markdownDescription": "Use shims when configuring extensions. When shims are not used, note that you will have to configure environment variables manually."
},
"mise.configureExtensionsUseSymLinks": {
"order": 7,
"type": "boolean",
"title": "Configure extensions to use symlinks",
"default": false,
"markdownDescription": "Create symlinks in your `.vscode` folder that links to the `mise` bin. This is useful if you share the `.vscode/settings.json` file with others."
},
"mise.enableCodeLens": {
"order": 8,
"type": "boolean",
"title": "Enable code lens",
"default": true,
"markdownDescription": "Show run/add tool code lens indicators in the editor."
},
"mise.showToolVersionsDecorations": {
"order": 9,
"type": "boolean",
"title": "Show tool versions",
"default": true,
"markdownDescription": "Show tool versions in the editor. (requires reload)"
},
"mise.checkForNewMiseVersion": {
"order": 10,
"type": "boolean",
"title": "Check for new mise version",
"default": true,
"markdownDescription": "Check if a new mise version is available on startup."
},
"mise.updateEnvAutomatically": {
"order": 11,
"type": "boolean",
"title": "Update environment variables automatically",
"default": true,
"markdownDescription": "Update VSCode and terminal environment variables automatically based on the mise configuration. Note that depending on the extensions loading order, other extensions might not see all mise environment variables."
},
"mise.updateOpenTerminalsEnvAutomatically": {
"order": 12,
"type": "boolean",
"title": "Update terminal environment variables automatically",
"default": false,
"markdownDescription": "Update terminal environment variables automatically based on the mise configuration. This will send `unset` and `eval $(mise env)` commands to the terminal. If you don't enable this, you will need to restart the integrated terminals to get the new environment variables."
},
"mise.teraAutoCompletion": {
"order": 13,
"type": "boolean",
"title": "Enable Tera auto-completion",
"default": true,
"markdownDescription": "Enable experimental Tera auto-completion in `mise.toml` files."
},
"mise.automaticallyTrustMiseConfigFiles": {
"order": 14,
"type": "boolean",
"title": "Automatically trust mise config files",
"default": true,
"markdownDescription": "Automatically trust mise config files when opening them in a trusted worskspace."
},
"mise.commandTTLCacheSeconds": {
"order": 15,
"type": "number",
"title": "Command TTL cache seconds",
"default": 2,
"markdownDescription": "Time to live in seconds for the mise command cache. Only changed it if some commands are expensive to run."
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "mise-panel",
"title": "Mise",
"icon": "$(terminal)"
}
]
},
"viewsWelcome": [
{
"view": "miseTasksView",
"contents": "[Tasks](https://mise.jdx.dev/tasks/) will be displayed here. ([refresh](command:mise.refreshEntry))\n[Add task](command:mise.createTomlTask)",
"when": "config.mise.binPath && config.mise.enable && !mise.tasksProviderError"
},
{
"view": "miseTasksView",
"contents": "Error loading tasks. [Open logs](command:mise.openLogs)",
"when": "mise.tasksProviderError && config.mise.enable"
},
{
"view": "miseTasksView",
"contents": "[Install mise](https://mise.jdx.dev/getting-started.html) to get started.\nOnce mise is installed, click reload.\n[Reload](command:mise.refreshEntry)\n[Configure](command:mise.openExtensionSettings)",
"when": "!config.mise.binPath"
},
{
"view": "miseTasksView",
"contents": "Mise extension is disabled.\n[Open settings](command:mise.openExtensionSettings)",
"when": "!config.mise.enable"
},
{
"view": "miseToolsView",
"contents": "[Tools](https://mise.jdx.dev/dev-tools/) will be displayed here.",
"when": "config.mise.enable && !mise.toolsProviderError"
},
{
"view": "miseToolsView",
"contents": "Error loading tools. [Open logs](command:mise.openLogs)",
"when": "mise.toolsProviderError && config.mise.enable"
},
{
"view": "miseToolsView",
"contents": "Mise extension is disabled.\n[Open settings](command:mise.openExtensionSettings)",
"when": "!config.mise.enable"
},
{
"view": "miseEnvsView",
"contents": "[Environment variables](https://mise.jdx.dev/environments.html) will be displayed here.",
"when": "config.mise.binPath && config.mise.enable"
},
{
"view": "miseEnvsView",
"contents": "Mise extension is disabled.\n[Open settings](command:mise.openExtensionSettings)",
"when": "!config.mise.enable"
},
{
"view": "miseEnvsView",
"contents": "Error loading environment variables. [Open logs](command:mise.openLogs)",
"when": "mise.envProviderError && config.mise.enable"
}
],
"views": {
"mise-panel": [
{
"id": "miseTasksView",
"name": "Tasks"
},
{
"id": "miseToolsView",
"name": "Tools"
},
{
"id": "miseEnvsView",
"name": "Environment Variables"
}
]
},
"commands": [
{
"command": "mise.refreshEntry",
"title": "Mise: Reload configuration",
"icon": "$(refresh)"
},
{
"command": "mise.openMenu",
"title": "Mise: Open Menu"
},
{
"command": "mise.runTask",
"title": "Mise: Run task",
"icon": "$(play)"
},
{
"command": "mise.watchTask",
"title": "Mise: Run Task in Watch Mode",
"icon": "$(watch)"
},
{
"command": "mise.createFileTask",
"title": "Mise: Create File Task",
"icon": "$(new-file)"
},
{
"command": "mise.createTomlTask",
"title": "Mise: Create Toml Task",
"icon": "$(add)"
},
{
"command": "mise.openToolDefinition",
"title": "Mise: Open Tool Definition"
},
{
"command": "mise.openTaskDefinition",
"title": "Mise: Open Task Definition"
},
{
"command": "mise.openEnvVariableDefinition",
"title": "Mise: Find Environment Variable Definition"
},
{
"command": "mise.openFile",
"title": "Mise: Open File"
},
{
"command": "mise.removeTool",
"title": "Mise: Remove Tool"
},
{
"command": "mise.copyToolInstallPath",
"title": "Mise: Copy Tool Install Path",
"context": [
"miseToolsView"
]
},
{
"command": "mise.copyToolBinPaths",
"title": "Mise: Copy Tool Bin Paths",
"context": [
"miseToolsView"
]
},
{
"command": "mise.copyEnvVariableName",
"title": "Mise: Copy Environment Variable Name"
},
{
"command": "mise.copyEnvVariableValue",
"title": "Mise: Copy Environment Variable Value"
},
{
"command": "mise.installTool",
"title": "Mise: Install Tool"
},
{
"command": "mise.installAll",
"title": "Mise: Run mise install",
"icon": "$(cloud-download)"
},
{
"command": "mise.useTool",
"title": "Mise: Run mise use",
"icon": "$(add)"
},
{
"command": "mise.configureSdkPath",
"title": "Mise: Configure extension sdk path..."
},
{
"command": "mise.configureAllSdkPaths",
"title": "Mise: Configure all extension sdk paths"
},
{
"command": "mise.openExtensionSettings",
"title": "Mise: Open extension settings",
"icon": "$(tools)"
},
{
"command": "mise.openLogs",
"title": "Mise: Show extension logs",
"icon": "$(list-unordered)"
},
{
"command": "mise.listAllTools",
"title": "Mise: List all Tools",
"icon": "$(list-ordered)"
},
{
"command": "mise.showSettings",
"title": "Mise: Show mise settings",
"icon": "$(list-ordered)"
},
{
"command": "mise.showTrackedConfig",
"title": "Mise: Show mise tracked configurations",
"icon": "$(list-ordered)"
},
{
"command": "mise.setEnvVariable",
"title": "Mise: Set Environment Variable",
"icon": "$(add)"
},
{
"command": "mise.fmt",
"title": "Mise: Run mise fmt"
}
],
"menus": {
"view/title": [
{
"command": "mise.createTomlTask",
"when": "view == miseTasksView",
"group": "navigation@1"
},
{
"command": "mise.createFileTask",
"when": "view == miseTasksView",
"group": "navigation@2"
},
{
"command": "mise.listAllTools",
"when": "view == miseToolsView",
"group": "navigation@1"
},
{
"command": "mise.useTool",
"when": "view == miseToolsView",
"group": "navigation@2"
},
{
"command": "mise.installAll",
"when": "view == miseToolsView",
"group": "navigation@3"
},
{
"command": "mise.setEnvVariable",
"when": "view == miseEnvsView",
"group": "navigation@1"
},
{
"command": "mise.refreshEntry",
"when": "view == miseTasksView || view == miseToolsView || view == miseEnvsView",
"group": "navigation@4"
}
],
"view/item/context": [
{
"when": "view == miseTasksView && viewItem == miseTask",
"command": "mise.runTask",
"group": "inline"
},
{
"when": "view == miseTasksView && viewItem == miseTask",
"command": "mise.watchTask",
"group": "inline"
},
{
"when": "view == miseTasksView && viewItem == miseTaskGroupEditable",
"command": "mise.createTomlTask",
"group": "inline"
},
{
"when": "view == miseTasksView && (viewItem == miseTaskGroupEditable || viewItem == miseTaskGroup)",
"command": "mise.openFile",
"group": "2_modification"
},
{
"when": "view == miseTasksView && viewItem == miseTask",
"command": "mise.runTask",
"group": "2_modification"
},
{
"when": "view == miseTasksView && viewItem == miseTask",
"command": "mise.watchTask",
"group": "2_modification"
},
{
"command": "mise.removeTool",
"when": "view == miseToolsView && viewItem == tool-installed",
"group": "2_modification"
},
{
"command": "mise.installTool",
"when": "view == miseToolsView && viewItem == tool-notinstalled",
"group": "2_modification"
},
{
"command": "mise.copyToolInstallPath",
"when": "view == miseToolsView && viewItem == tool-installed",
"group": "2_modification"
},
{
"command": "mise.copyToolBinPaths",
"when": "view == miseToolsView && viewItem == tool-installed",
"group": "2_modification"
},
{
"when": "view == miseToolsView && viewItem == miseToolGroup",
"command": "mise.useTool",
"group": "inline"
},
{
"when": "view == miseToolsView && viewItem == miseToolGroup",
"command": "mise.openFile",
"group": "2_modification"
},
{
"command": "mise.copyEnvVariableName",
"when": "view == miseEnvsView && viewItem == envItem",
"group": "2_modification"
},
{
"when": "view == miseEnvsView && viewItem == envItem",
"command": "mise.copyEnvVariableValue",
"group": "2_modification"
}
]
},
"taskDefinitions": [
{
"type": "mise",
"required": [
"task"
],
"properties": {
"task": {
"description": "The mise task to execute",
"type": "string"
},
"watch": {
"description": "Re-run the task when files change",
"type": "boolean"
},
"miseEnv": {
"description": "The mise environment to use",
"type": "string"
},
"glob": {
"description": "Glob pattern to watch for changes. Defaults to sources from the tasks(s)",
"type": "string"
},
"runArgs": {
"description": "Arguments to pass to the task. Not used when watch is true",
"type": "array",
"items": {
"type": "string"
},
"default": []
},
"watchexecArgs": {
"description": "Arguments to pass to watchexec. (example: --clear) | use watchexec --help for more information",
"type": "array",
"items": {
"type": "string"
},
"default": []
}
}
}
]
},
"scripts": {
"dev-extension": "rsbuild dev",
"dev-webviews": "rsbuild dev -c rsbuild.webviews.config.ts",
"build": "rsbuild build && rsbuild build -c rsbuild.webviews.config.ts",
"ts-check": "tsc --noEmit",
"lint-fix": "biome check --fix",
"lint": "biome ci",
"test": "bun test"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@rsbuild/core": "^1.1.6",
"@rsbuild/plugin-react": "^1.0.7",
"@types/node": "^22.9.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/vscode": "^1.85.0",
"bun": "^1.1.38",
"typescript": "^5.6.3"
},
"packageManager": "[email protected]+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228",
"dependencies": {
"@std/collections": "npm:@jsr/std__collections@^1.0.9",
"@tanstack/match-sorter-utils": "^8.19.4",
"@tanstack/react-query": "^5.60.5",
"@tanstack/react-table": "^8.20.5",
"@vscode-elements/react-elements": "^0.8.0",
"@vscode/codicons": "^0.0.36",
"async-cache-dedupe": "^2.2.0",
"cheerio": "^1.0.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-error-boundary": "^4.1.2",
"toml-v1": "^1.0.0"
}
}