|
491 | 491 | "group": "inline" |
492 | 492 | }, |
493 | 493 | { |
494 | | - "command": "extension.brightscript.setActiveDevice", |
495 | | - "when": "view == devicesView && viewItem =~ /^device-/", |
496 | | - "group": "navigation@1" |
| 494 | + "command": "extension.brightscript.devicesView.deviceMenu.setActiveDevice", |
| 495 | + "when": "view == devicesView && viewItem =~ /^device\\b/", |
| 496 | + "group": "1_primary@1" |
497 | 497 | }, |
498 | 498 | { |
499 | | - "command": "extension.brightscript.refreshDevice", |
500 | | - "when": "view == devicesView && viewItem =~ /^device-/", |
501 | | - "group": "navigation@2" |
| 499 | + "command": "extension.brightscript.devicesView.deviceMenu.captureScreenshot", |
| 500 | + "when": "view == devicesView && viewItem =~ /^device\\b/", |
| 501 | + "group": "1_primary@2" |
| 502 | + }, |
| 503 | + { |
| 504 | + "command": "extension.brightscript.devicesView.deviceMenu.switchTvInput", |
| 505 | + "when": "view == devicesView && viewItem =~ /-isTv\\b/", |
| 506 | + "group": "1_primary@3" |
| 507 | + }, |
| 508 | + { |
| 509 | + "command": "extension.brightscript.devicesView.deviceMenu.refreshDevice", |
| 510 | + "when": "view == devicesView && viewItem =~ /^device\\b/", |
| 511 | + "group": "2_device@1" |
| 512 | + }, |
| 513 | + { |
| 514 | + "command": "extension.brightscript.devicesView.deviceMenu.restartDevice", |
| 515 | + "when": "view == devicesView && viewItem =~ /-canRestart\\b/", |
| 516 | + "group": "2_device@2" |
| 517 | + }, |
| 518 | + { |
| 519 | + "command": "extension.brightscript.devicesView.deviceMenu.checkAndInstallUpdates", |
| 520 | + "when": "view == devicesView && viewItem =~ /-canRestart\\b/", |
| 521 | + "group": "2_device@3" |
| 522 | + }, |
| 523 | + { |
| 524 | + "command": "extension.brightscript.devicesView.deviceMenu.openWebPortal", |
| 525 | + "when": "view == devicesView && viewItem =~ /^device\\b/", |
| 526 | + "group": "3_web@1" |
| 527 | + }, |
| 528 | + { |
| 529 | + "command": "extension.brightscript.devicesView.deviceMenu.viewRegistry", |
| 530 | + "when": "view == devicesView && viewItem =~ /-canViewRegistry\\b/", |
| 531 | + "group": "3_web@2" |
502 | 532 | }, |
503 | 533 | { |
504 | | - "command": "extension.brightscript.addDeviceToUserSettings", |
505 | | - "when": "view == devicesView && (viewItem == 'device' || viewItem == 'device-workspace')", |
506 | | - "group": "settings@1" |
| 534 | + "command": "extension.brightscript.devicesView.deviceMenu.setDevicePassword", |
| 535 | + "when": "view == devicesView && viewItem =~ /-noPassword\\b/", |
| 536 | + "group": "4_password@1" |
507 | 537 | }, |
508 | 538 | { |
509 | | - "command": "extension.brightscript.editDeviceInUserSettings", |
510 | | - "when": "view == devicesView && (viewItem == 'device-user' || viewItem == 'device-user-workspace')", |
511 | | - "group": "settings@1" |
| 539 | + "command": "extension.brightscript.devicesView.deviceMenu.changeDevicePassword", |
| 540 | + "when": "view == devicesView && viewItem =~ /-hasPassword\\b/", |
| 541 | + "group": "4_password@1" |
512 | 542 | }, |
513 | 543 | { |
514 | | - "command": "extension.brightscript.addDeviceToWorkspaceSettings", |
515 | | - "when": "view == devicesView && (viewItem == 'device' || viewItem == 'device-user')", |
516 | | - "group": "settings@2" |
| 544 | + "command": "extension.brightscript.devicesView.deviceMenu.clearDevicePassword", |
| 545 | + "when": "view == devicesView && viewItem =~ /-hasPassword\\b/", |
| 546 | + "group": "4_password@2" |
517 | 547 | }, |
518 | 548 | { |
519 | | - "command": "extension.brightscript.editDeviceInWorkspaceSettings", |
520 | | - "when": "view == devicesView && (viewItem == 'device-workspace' || viewItem == 'device-user-workspace')", |
521 | | - "group": "settings@2" |
| 549 | + "command": "extension.brightscript.devicesView.deviceMenu.addToUserSettings", |
| 550 | + "when": "view == devicesView && viewItem =~ /-notInUser\\b/", |
| 551 | + "group": "5_settings@1" |
| 552 | + }, |
| 553 | + { |
| 554 | + "command": "extension.brightscript.devicesView.deviceMenu.editInUserSettings", |
| 555 | + "when": "view == devicesView && viewItem =~ /-inUser\\b/", |
| 556 | + "group": "5_settings@1" |
| 557 | + }, |
| 558 | + { |
| 559 | + "command": "extension.brightscript.devicesView.deviceMenu.addToWorkspaceSettings", |
| 560 | + "when": "view == devicesView && viewItem =~ /-notInWorkspace\\b/", |
| 561 | + "group": "5_settings@2" |
| 562 | + }, |
| 563 | + { |
| 564 | + "command": "extension.brightscript.devicesView.deviceMenu.editInWorkspaceSettings", |
| 565 | + "when": "view == devicesView && viewItem =~ /-inWorkspace\\b/", |
| 566 | + "group": "5_settings@2" |
522 | 567 | } |
523 | 568 | ], |
524 | 569 | "explorer/context": [ |
|
702 | 747 | { |
703 | 748 | "command": "extension.brightscript.devicesView.toggleFilter.autoDetected.active", |
704 | 749 | "when": "false" |
| 750 | + }, |
| 751 | + { |
| 752 | + "command": "extension.brightscript.devicesView.deviceMenu.setActiveDevice", |
| 753 | + "when": "false" |
| 754 | + }, |
| 755 | + { |
| 756 | + "command": "extension.brightscript.devicesView.deviceMenu.captureScreenshot", |
| 757 | + "when": "false" |
| 758 | + }, |
| 759 | + { |
| 760 | + "command": "extension.brightscript.devicesView.deviceMenu.switchTvInput", |
| 761 | + "when": "false" |
| 762 | + }, |
| 763 | + { |
| 764 | + "command": "extension.brightscript.devicesView.deviceMenu.refreshDevice", |
| 765 | + "when": "false" |
| 766 | + }, |
| 767 | + { |
| 768 | + "command": "extension.brightscript.devicesView.deviceMenu.restartDevice", |
| 769 | + "when": "false" |
| 770 | + }, |
| 771 | + { |
| 772 | + "command": "extension.brightscript.devicesView.deviceMenu.checkAndInstallUpdates", |
| 773 | + "when": "false" |
| 774 | + }, |
| 775 | + { |
| 776 | + "command": "extension.brightscript.devicesView.deviceMenu.openWebPortal", |
| 777 | + "when": "false" |
| 778 | + }, |
| 779 | + { |
| 780 | + "command": "extension.brightscript.devicesView.deviceMenu.viewRegistry", |
| 781 | + "when": "false" |
| 782 | + }, |
| 783 | + { |
| 784 | + "command": "extension.brightscript.devicesView.deviceMenu.setDevicePassword", |
| 785 | + "when": "false" |
| 786 | + }, |
| 787 | + { |
| 788 | + "command": "extension.brightscript.devicesView.deviceMenu.changeDevicePassword", |
| 789 | + "when": "false" |
| 790 | + }, |
| 791 | + { |
| 792 | + "command": "extension.brightscript.devicesView.deviceMenu.clearDevicePassword", |
| 793 | + "when": "false" |
| 794 | + }, |
| 795 | + { |
| 796 | + "command": "extension.brightscript.devicesView.deviceMenu.addToUserSettings", |
| 797 | + "when": "false" |
| 798 | + }, |
| 799 | + { |
| 800 | + "command": "extension.brightscript.devicesView.deviceMenu.editInUserSettings", |
| 801 | + "when": "false" |
| 802 | + }, |
| 803 | + { |
| 804 | + "command": "extension.brightscript.devicesView.deviceMenu.addToWorkspaceSettings", |
| 805 | + "when": "false" |
| 806 | + }, |
| 807 | + { |
| 808 | + "command": "extension.brightscript.devicesView.deviceMenu.editInWorkspaceSettings", |
| 809 | + "when": "false" |
705 | 810 | } |
706 | 811 | ] |
707 | 812 | }, |
|
3914 | 4019 | "category": "BrightScript", |
3915 | 4020 | "icon": "$(cloud-download)" |
3916 | 4021 | }, |
| 4022 | + { |
| 4023 | + "command": "extension.brightscript.devicesView.deviceMenu.setActiveDevice", |
| 4024 | + "title": "⭐ Set as Active Device", |
| 4025 | + "category": "BrightScript" |
| 4026 | + }, |
| 4027 | + { |
| 4028 | + "command": "extension.brightscript.devicesView.deviceMenu.captureScreenshot", |
| 4029 | + "title": "📷 Capture Screenshot", |
| 4030 | + "category": "BrightScript" |
| 4031 | + }, |
| 4032 | + { |
| 4033 | + "command": "extension.brightscript.devicesView.deviceMenu.switchTvInput", |
| 4034 | + "title": "📺 Switch TV Input", |
| 4035 | + "category": "BrightScript" |
| 4036 | + }, |
| 4037 | + { |
| 4038 | + "command": "extension.brightscript.devicesView.deviceMenu.refreshDevice", |
| 4039 | + "title": "🔃 Refresh Device", |
| 4040 | + "category": "BrightScript" |
| 4041 | + }, |
| 4042 | + { |
| 4043 | + "command": "extension.brightscript.devicesView.deviceMenu.restartDevice", |
| 4044 | + "title": "🔁 Restart Device", |
| 4045 | + "category": "BrightScript" |
| 4046 | + }, |
| 4047 | + { |
| 4048 | + "command": "extension.brightscript.devicesView.deviceMenu.checkAndInstallUpdates", |
| 4049 | + "title": "🔄 Check for Software Updates", |
| 4050 | + "category": "BrightScript" |
| 4051 | + }, |
| 4052 | + { |
| 4053 | + "command": "extension.brightscript.devicesView.deviceMenu.openWebPortal", |
| 4054 | + "title": "🔗 Open Device Web Portal", |
| 4055 | + "category": "BrightScript" |
| 4056 | + }, |
| 4057 | + { |
| 4058 | + "command": "extension.brightscript.devicesView.deviceMenu.viewRegistry", |
| 4059 | + "title": "📋 View Registry", |
| 4060 | + "category": "BrightScript" |
| 4061 | + }, |
| 4062 | + { |
| 4063 | + "command": "extension.brightscript.devicesView.deviceMenu.setDevicePassword", |
| 4064 | + "title": "🔑 Set Device Password", |
| 4065 | + "category": "BrightScript" |
| 4066 | + }, |
| 4067 | + { |
| 4068 | + "command": "extension.brightscript.devicesView.deviceMenu.changeDevicePassword", |
| 4069 | + "title": "🔑 Change Device Password", |
| 4070 | + "category": "BrightScript" |
| 4071 | + }, |
| 4072 | + { |
| 4073 | + "command": "extension.brightscript.devicesView.deviceMenu.clearDevicePassword", |
| 4074 | + "title": "🗑️ Clear Device Password", |
| 4075 | + "category": "BrightScript" |
| 4076 | + }, |
| 4077 | + { |
| 4078 | + "command": "extension.brightscript.devicesView.deviceMenu.addToUserSettings", |
| 4079 | + "title": "👤 Add to User Settings", |
| 4080 | + "category": "BrightScript" |
| 4081 | + }, |
| 4082 | + { |
| 4083 | + "command": "extension.brightscript.devicesView.deviceMenu.editInUserSettings", |
| 4084 | + "title": "👤 Edit in User Settings", |
| 4085 | + "category": "BrightScript" |
| 4086 | + }, |
| 4087 | + { |
| 4088 | + "command": "extension.brightscript.devicesView.deviceMenu.addToWorkspaceSettings", |
| 4089 | + "title": "📁 Add to Workspace Settings", |
| 4090 | + "category": "BrightScript" |
| 4091 | + }, |
| 4092 | + { |
| 4093 | + "command": "extension.brightscript.devicesView.deviceMenu.editInWorkspaceSettings", |
| 4094 | + "title": "📁 Edit in Workspace Settings", |
| 4095 | + "category": "BrightScript" |
| 4096 | + }, |
3917 | 4097 | { |
3918 | 4098 | "command": "extension.brightscript.addDeviceToUserSettings", |
3919 | 4099 | "title": "Add to User Settings", |
|
0 commit comments