Add UI and functionality to the Devices panel to support adding a new device to the list. Users should be able to click an "Add" button in the Devices panel, which will:
-
Prompt where to save the device config
- Options: user, folder, or workspace scope. something like this:
-
Collect device information
- Fields:
ip address (host), password (optional), nickname (optional), and any other relevant device fields.
-
Write device structure
- Compose device config and save it under the selected config scope (
brightscript.devices setting).
Example configuration:
{
"host": "192.168.1.100",
"name": "Bedroom Roku",
"password": "myroku123"
}
Structure and Requirements
- Follow the merging and hierarchy logic described in Issue #690:
- Support all VSCode configuration scopes (user, workspace, folder, etc), using "last one in wins" priority.
- If duplicate device IDs exist, properties should be merged, following the config priority order.
- Configuration UI should clarify where the device is being saved and potential overrides.
- The "Add Device" UI/flow must:
Acceptance Criteria:
See reference: #690 for merging rules and structure.
Add UI and functionality to the Devices panel to support adding a new device to the list. Users should be able to click an "Add" button in the Devices panel, which will:
Prompt where to save the device config
Collect device information
ip address(host),password(optional),nickname(optional), and any other relevant device fields.Write device structure
brightscript.devicessetting).Example configuration:
{ "host": "192.168.1.100", "name": "Bedroom Roku", "password": "myroku123" }Structure and Requirements
Acceptance Criteria:
See reference: #690 for merging rules and structure.