VSCode-Logger API - v1.7.3
    Preparing search index...

    Class DeviceTreeDataProvider

    Tree provider that lists configured devices.

    Users configure the array in embeddedLogger.devices in settings.json and each entry is presented as a selectable item that opens a log panel.

    Implements

    • TreeDataProvider<DeviceItem>
    Index

    Constructors

    Properties

    onDidChangeTreeData: Event<void | DeviceItem | undefined> = ...

    An optional event to signal that an element or root has changed. This will trigger the view to update the changed element/root and its children recursively (if shown). To signal that root has changed, do not pass any argument or pass undefined or null.

    Methods

    • Retrieves the list of configured devices as tree items.

      Returns Thenable<DeviceItem[]>

      A promise containing the device items or a placeholder when none exist.

    • Returns the tree item used for rendering.

      Parameters

      • element: DeviceItem

        Device tree item to render.

      Returns TreeItem

      The same tree item instance.

    • Signals VS Code to refresh the tree view.

      Returns void