(rootKey: string)
| 291 | } |
| 292 | |
| 293 | function getTrackedRootPathByKey(rootKey: string): string | undefined { |
| 294 | if (knownRoots.has(rootKey)) { |
| 295 | return knownRoots.get(rootKey)?.rootPath; |
| 296 | } |
| 297 | |
| 298 | const project = Array.from(getAllProjects()).find( |
| 299 | (entry) => normalizeRootKey(entry.rootPath) === rootKey |
| 300 | ); |
| 301 | return project?.rootPath; |
| 302 | } |
| 303 | |
| 304 | function forgetProjectPath(rootPath: string): void { |
| 305 | const rootKey = normalizeRootKey(rootPath); |
no test coverage detected