Tree item for displaying a snapshot in the VS Code tree view. Shows snapshot details with appropriate icons and formatting.
const item = new SnapshotTreeItem(snapshot);// Displays: "my-checkpoint"// Description: "Python 3.11 • 2 days ago" Copy
const item = new SnapshotTreeItem(snapshot);// Displays: "my-checkpoint"// Description: "Python 3.11 • 2 days ago"
Creates a new SnapshotTreeItem.
The RuntimeSnapshotDTO instance to display
Readonly
Private
Calculates and formats the time since snapshot was created.
Formatted string like "2 days ago" or "5 hours ago"
Tree item for displaying a snapshot in the VS Code tree view. Shows snapshot details with appropriate icons and formatting.
Example