class ProjectTreeItem extends TreeItem { constructor(project) { super( project.name, project.expanded ? TreeItemCollapsibleState.Expanded : TreeItemCollapsibleState.Collapsed ); this.identifier = project.identifier; this.image = project.compose ? "icons/layers.png" : "icons/folder.png"; // Compose projects gain the compose commands; the ungrouped bucket only // gets the bulk start and stop. this.contextValue = project.compose ? "project.compose" : "project"; this.descriptiveText = project.summary; this.tooltip = project.file ? `Compose file:\t${project.file}` : project.name; } } module.exports = { ProjectTreeItem };