|
34 | 34 | ], |
35 | 35 | "icon": "resources/icon.png", |
36 | 36 | "main": "./dist/extension.js", |
| 37 | + "browser": "./dist/browser/browser.js", |
37 | 38 | "activationEvents": [ |
38 | 39 | "onTaskType:mise", |
39 | 40 | "workspaceContains:.config/mise/**/config.*.toml", |
|
52 | 53 | "untrustedWorkspaces": { |
53 | 54 | "supported": false, |
54 | 55 | "description": "This extension requires a trusted workspace because it can execute code in the workspace." |
| 56 | + }, |
| 57 | + "virtualWorkspaces": { |
| 58 | + "supported": "limited", |
| 59 | + "description": "syntax highlighting only" |
55 | 60 | } |
56 | 61 | }, |
57 | 62 | "contributes": { |
|
371 | 376 | "mise-panel": [ |
372 | 377 | { |
373 | 378 | "id": "miseTasksView", |
374 | | - "name": "Tasks" |
| 379 | + "name": "Tasks", |
| 380 | + "when": "!isWeb" |
375 | 381 | }, |
376 | 382 | { |
377 | 383 | "id": "miseToolsView", |
378 | | - "name": "Tools" |
| 384 | + "name": "Tools", |
| 385 | + "when": "!isWeb" |
379 | 386 | }, |
380 | 387 | { |
381 | 388 | "id": "miseEnvsView", |
382 | | - "name": "Environment Variables" |
| 389 | + "name": "Environment Variables", |
| 390 | + "when": "!isWeb" |
383 | 391 | } |
384 | 392 | ] |
385 | 393 | }, |
386 | 394 | "commands": [ |
387 | 395 | { |
388 | 396 | "command": "mise.refreshEntry", |
389 | 397 | "title": "Mise: Reload configuration", |
390 | | - "icon": "$(refresh)" |
| 398 | + "icon": "$(refresh)", |
| 399 | + "enablement": "!isWeb" |
391 | 400 | }, |
392 | 401 | { |
393 | 402 | "command": "mise.openMenu", |
394 | | - "title": "Mise: Open Menu" |
| 403 | + "title": "Mise: Open Menu", |
| 404 | + "enablement": "!isWeb" |
395 | 405 | }, |
396 | 406 | { |
397 | 407 | "command": "mise.openMissingToolsMenu", |
398 | | - "title": "Mise: Open Missing Tools Menu" |
| 408 | + "title": "Mise: Open Missing Tools Menu", |
| 409 | + "enablement": "!isWeb" |
399 | 410 | }, |
400 | 411 | { |
401 | 412 | "command": "mise.openToolRepository", |
402 | | - "title": "Mise: Open Tool Repository" |
| 413 | + "title": "Mise: Open Tool Repository", |
| 414 | + "enablement": "!isWeb" |
403 | 415 | }, |
404 | 416 | { |
405 | 417 | "command": "mise.selectWorkspaceFolder", |
406 | | - "title": "Mise: Select Workspace Folder" |
| 418 | + "title": "Mise: Select Workspace Folder", |
| 419 | + "enablement": "!isWeb" |
407 | 420 | }, |
408 | 421 | { |
409 | 422 | "command": "mise.runTask", |
410 | 423 | "title": "Mise: Run task", |
411 | | - "icon": "$(play)" |
| 424 | + "icon": "$(play)", |
| 425 | + "enablement": "!isWeb" |
412 | 426 | }, |
413 | 427 | { |
414 | 428 | "command": "mise.watchTask", |
415 | 429 | "title": "Mise: Run Task in Watch Mode", |
416 | | - "icon": "$(watch)" |
| 430 | + "icon": "$(watch)", |
| 431 | + "enablement": "!isWeb" |
417 | 432 | }, |
418 | 433 | { |
419 | 434 | "command": "mise.createFileTask", |
420 | 435 | "title": "Mise: Create File Task", |
421 | | - "icon": "$(new-file)" |
| 436 | + "icon": "$(new-file)", |
| 437 | + "enablement": "!isWeb" |
422 | 438 | }, |
423 | 439 | { |
424 | 440 | "command": "mise.createTomlTask", |
425 | 441 | "title": "Mise: Create Toml Task", |
426 | | - "icon": "$(add)" |
| 442 | + "icon": "$(add)", |
| 443 | + "enablement": "!isWeb" |
427 | 444 | }, |
428 | 445 | { |
429 | 446 | "command": "mise.createTomlTaskTopMenu", |
430 | 447 | "title": "Mise: Create Toml Task", |
431 | | - "icon": "$(add)" |
| 448 | + "icon": "$(add)", |
| 449 | + "enablement": "!isWeb" |
432 | 450 | }, |
433 | 451 | { |
434 | 452 | "command": "mise.openToolDefinition", |
435 | | - "title": "Mise: Open Tool Definition" |
| 453 | + "title": "Mise: Open Tool Definition", |
| 454 | + "enablement": "!isWeb" |
436 | 455 | }, |
437 | 456 | { |
438 | 457 | "command": "mise.openTaskDefinition", |
439 | | - "title": "Mise: Open Task Definition" |
| 458 | + "title": "Mise: Open Task Definition", |
| 459 | + "enablement": "!isWeb" |
440 | 460 | }, |
441 | 461 | { |
442 | 462 | "command": "mise.openEnvVariableDefinition", |
443 | | - "title": "Mise: Find Environment Variable Definition" |
| 463 | + "title": "Mise: Find Environment Variable Definition", |
| 464 | + "enablement": "!isWeb" |
444 | 465 | }, |
445 | 466 | { |
446 | 467 | "command": "mise.openFile", |
447 | | - "title": "Mise: Open File" |
| 468 | + "title": "Mise: Open File", |
| 469 | + "enablement": "!isWeb" |
448 | 470 | }, |
449 | 471 | { |
450 | 472 | "command": "mise.removeTool", |
451 | | - "title": "Mise: Remove Tool" |
| 473 | + "title": "Mise: Remove Tool", |
| 474 | + "enablement": "!isWeb" |
452 | 475 | }, |
453 | 476 | { |
454 | 477 | "command": "mise.copyToolInstallPath", |
455 | 478 | "title": "Mise: Copy Tool Install Path", |
456 | | - "context": [ |
457 | | - "miseToolsView" |
458 | | - ] |
| 479 | + "enablement": "!isWeb" |
459 | 480 | }, |
460 | 481 | { |
461 | 482 | "command": "mise.copyToolBinPaths", |
462 | 483 | "title": "Mise: Copy Tool Bin Paths", |
463 | | - "context": [ |
464 | | - "miseToolsView" |
465 | | - ] |
| 484 | + "enablement": "!isWeb" |
466 | 485 | }, |
467 | 486 | { |
468 | 487 | "command": "mise.copyEnvVariableName", |
469 | | - "title": "Mise: Copy Environment Variable Name" |
| 488 | + "title": "Mise: Copy Environment Variable Name", |
| 489 | + "enablement": "!isWeb" |
470 | 490 | }, |
471 | 491 | { |
472 | 492 | "command": "mise.copyEnvVariableValue", |
473 | | - "title": "Mise: Copy Environment Variable Value" |
| 493 | + "title": "Mise: Copy Environment Variable Value", |
| 494 | + "enablement": "!isWeb" |
474 | 495 | }, |
475 | 496 | { |
476 | 497 | "command": "mise.installTool", |
477 | | - "title": "Mise: Install Tool" |
| 498 | + "title": "Mise: Install Tool", |
| 499 | + "enablement": "!isWeb" |
478 | 500 | }, |
479 | 501 | { |
480 | 502 | "command": "mise.installAll", |
481 | 503 | "title": "Mise: Run mise install", |
482 | | - "icon": "$(cloud-download)" |
| 504 | + "icon": "$(cloud-download)", |
| 505 | + "enablement": "!isWeb" |
483 | 506 | }, |
484 | 507 | { |
485 | 508 | "command": "mise.useTool", |
486 | 509 | "title": "Mise: Run mise use", |
487 | | - "icon": "$(add)" |
| 510 | + "icon": "$(add)", |
| 511 | + "enablement": "!isWeb" |
488 | 512 | }, |
489 | 513 | { |
490 | 514 | "command": "mise.useToolTopMenu", |
491 | 515 | "title": "Mise: Use Tool", |
492 | | - "icon": "$(add)" |
| 516 | + "icon": "$(add)", |
| 517 | + "enablement": "!isWeb" |
493 | 518 | }, |
494 | 519 | { |
495 | 520 | "command": "mise.configureSdkPath", |
496 | | - "title": "Mise: Configure extension sdk path..." |
| 521 | + "title": "Mise: Configure extension sdk path...", |
| 522 | + "enablement": "!isWeb" |
497 | 523 | }, |
498 | 524 | { |
499 | 525 | "command": "mise.configureAllSdkPaths", |
500 | | - "title": "Mise: Configure all extension sdk paths" |
| 526 | + "title": "Mise: Configure all extension sdk paths", |
| 527 | + "enablement": "!isWeb" |
501 | 528 | }, |
502 | 529 | { |
503 | 530 | "command": "mise.openExtensionSettings", |
504 | 531 | "title": "Mise: Open extension settings", |
505 | | - "icon": "$(tools)" |
| 532 | + "icon": "$(tools)", |
| 533 | + "enablement": "!isWeb" |
506 | 534 | }, |
507 | 535 | { |
508 | 536 | "command": "mise.openLogs", |
509 | 537 | "title": "Mise: Show extension logs", |
510 | | - "icon": "$(list-unordered)" |
| 538 | + "icon": "$(list-unordered)", |
| 539 | + "enablement": "!isWeb" |
511 | 540 | }, |
512 | 541 | { |
513 | 542 | "command": "mise.listAllTools", |
514 | 543 | "title": "Mise: List all Tools", |
515 | | - "icon": "$(list-ordered)" |
| 544 | + "icon": "$(list-ordered)", |
| 545 | + "enablement": "!isWeb" |
516 | 546 | }, |
517 | 547 | { |
518 | 548 | "command": "mise.showSettings", |
519 | 549 | "title": "Mise: Show mise settings", |
520 | | - "icon": "$(list-ordered)" |
| 550 | + "icon": "$(list-ordered)", |
| 551 | + "enablement": "!isWeb" |
521 | 552 | }, |
522 | 553 | { |
523 | 554 | "command": "mise.showTrackedConfig", |
524 | 555 | "title": "Mise: Show mise tracked configurations", |
525 | | - "icon": "$(list-ordered)" |
| 556 | + "icon": "$(list-ordered)", |
| 557 | + "enablement": "!isWeb" |
526 | 558 | }, |
527 | 559 | { |
528 | 560 | "command": "mise.visualizeTasksDeps", |
529 | 561 | "title": "Mise: Visualize Tasks Dependencies", |
530 | | - "icon": "$(git-merge)" |
| 562 | + "icon": "$(git-merge)", |
| 563 | + "enablement": "!isWeb" |
531 | 564 | }, |
532 | 565 | { |
533 | 566 | "command": "mise.setEnvVariable", |
534 | 567 | "title": "Mise: Set Environment Variable", |
535 | | - "icon": "$(add)" |
| 568 | + "icon": "$(add)", |
| 569 | + "enablement": "!isWeb" |
536 | 570 | }, |
537 | 571 | { |
538 | 572 | "command": "mise.fmt", |
539 | | - "title": "Mise: Run mise fmt" |
| 573 | + "title": "Mise: Run mise fmt", |
| 574 | + "enablement": "!isWeb" |
540 | 575 | }, |
541 | 576 | { |
542 | 577 | "command": "mise.editSetting", |
543 | | - "title": "Mise: Edit Setting" |
| 578 | + "title": "Mise: Edit Setting", |
| 579 | + "enablement": "!isWeb" |
544 | 580 | }, |
545 | 581 | { |
546 | 582 | "command": "mise.showAllEnvVarValues", |
547 | 583 | "title": "Mise: Show All Environment Variable Values", |
548 | | - "icon": "$(eye)" |
| 584 | + "icon": "$(eye)", |
| 585 | + "enablement": "!isWeb" |
549 | 586 | }, |
550 | 587 | { |
551 | 588 | "command": "mise.hideAllEnvVarValues", |
552 | 589 | "title": "Mise: Hide All Environment Variable Values", |
553 | | - "icon": "$(eye-closed)" |
| 590 | + "icon": "$(eye-closed)", |
| 591 | + "enablement": "!isWeb" |
554 | 592 | }, |
555 | 593 | { |
556 | 594 | "command": "mise.showEnvVariableValue", |
557 | 595 | "title": "Mise: Show Environment Variable Value", |
558 | | - "icon": "$(eye)" |
| 596 | + "icon": "$(eye)", |
| 597 | + "enablement": "!isWeb" |
559 | 598 | }, |
560 | 599 | { |
561 | 600 | "command": "mise.hideEnvVariableValue", |
562 | 601 | "title": "Mise: Hide Environment Variable Value", |
563 | | - "icon": "$(eye-closed)" |
| 602 | + "icon": "$(eye-closed)", |
| 603 | + "enablement": "!isWeb" |
564 | 604 | }, |
565 | 605 | { |
566 | 606 | "command": "mise.displayPath", |
567 | | - "title": "Mise: Display PATH variable" |
| 607 | + "title": "Mise: Display PATH variable", |
| 608 | + "enablement": "!isWeb" |
568 | 609 | }, |
569 | 610 | { |
570 | 611 | "command": "mise.doctor", |
571 | | - "title": "Mise: Run mise doctor" |
| 612 | + "title": "Mise: Run mise doctor", |
| 613 | + "enablement": "!isWeb" |
572 | 614 | } |
573 | 615 | ], |
574 | 616 | "menus": { |
|
809 | 851 | }, |
810 | 852 | "scripts": { |
811 | 853 | "dev-extension": "rsbuild dev", |
| 854 | + "dev-browser": "rslib build -c rslib.browser.config.ts --watch --config-loader jiti", |
812 | 855 | "dev-webviews": "rsbuild dev -c rsbuild.webviews.config.ts", |
813 | | - "build": "rsbuild build && rsbuild build -c rsbuild.webviews.config.ts", |
| 856 | + "build": "rsbuild build && rslib build -c rslib.browser.config.ts --config-loader jiti && rsbuild build -c rsbuild.webviews.config.ts", |
814 | 857 | "ts-check": "tsc --noEmit", |
815 | 858 | "lint-fix": "biome check --fix", |
816 | 859 | "lint": "biome ci", |
|
821 | 864 | "@biomejs/biome": "2.2.5", |
822 | 865 | "@rsbuild/core": "^1.5.13", |
823 | 866 | "@rsbuild/plugin-react": "^1.4.1", |
| 867 | + "@rslib/core": "^0.17.0", |
824 | 868 | "@types/bun": "^1.2.23", |
825 | 869 | "@types/micromatch": "^4.0.9", |
826 | 870 | "@types/node": "^22.10.5", |
|
834 | 878 | "typescript": "^5.9.3" |
835 | 879 | }, |
836 | 880 | "dependencies": { |
| 881 | + "@rsbuild/plugin-node-polyfill": "^1.4.2", |
837 | 882 | "@std/collections": "npm:@jsr/std__collections@^1.0.9", |
838 | 883 | "@tanstack/match-sorter-utils": "^8.19.4", |
839 | 884 | "@tanstack/react-query": "^5.90.2", |
|
0 commit comments