Webview provider for the Embedded Devices side panel.

Implements

  • WebviewViewProvider

Constructors

  • Creates the sidebar view provider.

    Parameters

    • context: ExtensionContext

      The extension context for resolving resources.

    • getDevices: () => EmbeddedDevice[]

      Function to retrieve configured devices.

    • onOpenDevice: (deviceId: string) => void

      Handler for opening a device log panel.

    • onRunDeviceCommand: (deviceId: string, commandName: string, command: string) => void

      Handler for running a device command.

    • onOpenSshTerminal: (deviceId: string) => void

      Handler for opening an SSH terminal.

    • onOpenSftpExplorer: (deviceId: string) => void

      Handler for opening the SFTP explorer.

    • onOpenWebBrowser: (deviceId: string) => void

      Handler for opening the device web URL.

    Returns SidebarViewProvider

Methods

  • Pushes updated device data to the webview.

    Returns void

  • Resolves the sidebar webview and wires up message handlers.

    Parameters

    • webviewView: WebviewView

      The webview view instance to populate.

    Returns void | Thenable<void>