( projectPath: string, projects: Map<string, ProjectConfig> )
| 117 | } |
| 118 | |
| 119 | export function formatProjectHierarchyLabel( |
| 120 | projectPath: string, |
| 121 | projects: Map<string, ProjectConfig> |
| 122 | ): string { |
| 123 | const projectConfig = projects.get(projectPath); |
| 124 | const parentProjectPath = projectConfig?.parentProjectPath; |
| 125 | const projectName = getProjectDisplayName(projectPath, projectConfig); |
| 126 | if (!parentProjectPath) { |
| 127 | return projectName; |
| 128 | } |
| 129 | return `${getProjectDisplayName(parentProjectPath, projects.get(parentProjectPath))} / ${projectName}`; |
| 130 | } |
no test coverage detected