(rootPath: string)
| 75 | } |
| 76 | |
| 77 | export function getOrCreateProject(rootPath: string): ProjectState { |
| 78 | const key = normalizeRootKey(rootPath); |
| 79 | let project = projects.get(key); |
| 80 | if (!project) { |
| 81 | project = createProjectState(rootPath); |
| 82 | projects.set(key, project); |
| 83 | } |
| 84 | return project; |
| 85 | } |
| 86 | |
| 87 | export function getProject(rootPath: string): ProjectState | undefined { |
| 88 | return projects.get(normalizeRootKey(rootPath)); |
no test coverage detected