(rootPath: string)
| 65 | const projects = new Map<string, ProjectState>(); |
| 66 | |
| 67 | export function createProjectState(rootPath: string): ProjectState { |
| 68 | return { |
| 69 | rootPath, |
| 70 | paths: makePaths(rootPath), |
| 71 | indexState: { status: 'idle' }, |
| 72 | autoRefresh: createAutoRefreshController(), |
| 73 | runtimeOverrides: {} |
| 74 | }; |
| 75 | } |
| 76 | |
| 77 | export function getOrCreateProject(rootPath: string): ProjectState { |
| 78 | const key = normalizeRootKey(rootPath); |
no test coverage detected