From aad4c5be261ef9d817eea03420ceca3e0f63dedc Mon Sep 17 00:00:00 2001 From: Milap Naik Date: Wed, 25 Oct 2023 18:13:52 +0100 Subject: [PATCH] Add link for ECP registry --- src/viewProviders/OnlineDevicesViewProvider.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/viewProviders/OnlineDevicesViewProvider.ts b/src/viewProviders/OnlineDevicesViewProvider.ts index ba15c511..4ee6f5a1 100644 --- a/src/viewProviders/OnlineDevicesViewProvider.ts +++ b/src/viewProviders/OnlineDevicesViewProvider.ts @@ -166,6 +166,24 @@ export class OnlineDevicesViewProvider implements vscode.TreeDataProvider=11')) { + // TODO: add ECP system hooks here in the future (like registry call, etc...) + result.unshift( + this.createDeviceInfoTreeItem({ + label: '🔗 View Registry', + parent: element, + collapsibleState: vscode.TreeItemCollapsibleState.None, + tooltip: 'View the ECP Registry', + description: device.ip, + command: { + command: 'extension.brightscript.openUrl', + title: 'Open', + arguments: [`http://${device.ip}:8060/query/registry/dev`] + } + }) + ); + } + result.unshift( this.createDeviceInfoTreeItem({ label: '🔗 Open device web portal',