Datalayer VS Code Extension - v0.0.4
    Preparing search index...

    Tree item for displaying a runtime in the VS Code tree view. Shows runtime details with appropriate icons and formatting.

    const item = new RuntimeTreeItem(runtime);
    // Displays: "my-runtime"
    // Description: "Python 3.11 • 2h 30m left"

    Hierarchy

    • TreeItem
      • RuntimeTreeItem
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    runtime: Runtime

    The Runtime model instance to display

    Methods

    • Calculates and formats the time remaining until runtime expires.

      Returns string

      Formatted string like "2h 30m" or "15m" or "Expired"