Skip to content

Commit

Permalink
Add link for ECP registry
Browse files Browse the repository at this point in the history
  • Loading branch information
MilapNaik committed Oct 25, 2023
1 parent 5c6622b commit aad4c5b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/viewProviders/OnlineDevicesViewProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,24 @@ export class OnlineDevicesViewProvider implements vscode.TreeDataProvider<vscode
})
);

if (semver.satisfies(element.details['software-version'], '>=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',
Expand Down

0 comments on commit aad4c5b

Please sign in to comment.