vscode-projects-plus
Version:
An extension for managing projects. Feature rich, customizable, automatically finds your projects
29 lines (15 loc) • 462 B
text/typescript
/* IMPORT */
import * as vscode from 'vscode';
/* ITEM */
class Item extends vscode.TreeItem {
obj;
contextValue = 'item';
constructor ( obj, label: string, command?: vscode.Command, collapsibleState: vscode.TreeItemCollapsibleState = vscode.TreeItemCollapsibleState.Expanded ) {
super ( label, collapsibleState );
this.obj = obj;
this.command = command;
this.tooltip = obj.description;
}
}
/* EXPORT */
export default Item;