Skip to content

Add device commands to Devices view context menu, nest device info#853

Merged
chrisdp merged 1 commit into
masterfrom
feature/devices-view-context-menu
Jul 9, 2026
Merged

Add device commands to Devices view context menu, nest device info#853
chrisdp merged 1 commit into
masterfrom
feature/devices-view-context-menu

Conversation

@chrisdp

@chrisdp chrisdp commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

What this does

  • Right-clicking a device in the Devices view now shows every device command (set active, capture screenshot, switch TV input, refresh, restart, check for software updates, open web portal, view registry, set/change/clear password, add/edit settings). VS Code doesn't render codicons in tree context menus, so the menu entries use the same emoji as the tree action items. The menu-only commands are hidden from the command palette.
  • Device rows now carry a capability-token contextValue (e.g. device-notInUser-inWorkspace-noPassword-isTv-canViewRegistry-canRestart) so the menu when clauses can honor the same conditions the tree items use (firmware version, serial number, TV, stored password, configured-in scope).
  • The device info fields are nested under an expandable Device Info group instead of sitting alongside the action items. Click-to-copy and the conceal-device-info setting still work the same.
  • Fixes "Set as Active Device" and "Refresh Device" never appearing in the context menu for auto-discovered devices (the old /^device-/ when clause didn't match the plain device contextValue).
image

@chrisdp
chrisdp marked this pull request as ready for review July 9, 2026 14:42
@chrisdp
chrisdp merged commit c842ee4 into master Jul 9, 2026
8 checks passed
@chrisdp
chrisdp deleted the feature/devices-view-context-menu branch July 9, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant