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" Copy
const item = new RuntimeTreeItem(runtime);// Displays: "my-runtime"// Description: "Python 3.11 • 2h 30m left"
Creates a new RuntimeTreeItem.
The Runtime model instance to display
Readonly
Private
Calculates and formats the time remaining until runtime expires.
Formatted string like "2h 30m" or "15m" or "Expired"
Tree item for displaying a runtime in the VS Code tree view. Shows runtime details with appropriate icons and formatting.
Example