(rootPath: string)
| 328 | } |
| 329 | |
| 330 | function getRelativeProjectPath(rootPath: string): string | undefined { |
| 331 | const containingRoot = getContainingKnownRoot(rootPath); |
| 332 | if (!containingRoot) return undefined; |
| 333 | |
| 334 | const relativePath = path.relative(containingRoot, rootPath).replace(/\\/g, '/'); |
| 335 | return relativePath || undefined; |
| 336 | } |
| 337 | |
| 338 | function getProjectIndexStatus(rootPath: string): ProjectDescriptor['indexStatus'] { |
| 339 | return getProject(rootPath)?.indexState.status ?? 'idle'; |
no test coverage detected