(rootPath: string)
| 244 | } |
| 245 | |
| 246 | function classifyProjectSource(rootPath: string): ProjectDescriptor['source'] { |
| 247 | const rootKey = normalizeRootKey(rootPath); |
| 248 | if (knownRoots.has(rootKey)) { |
| 249 | return 'root'; |
| 250 | } |
| 251 | return getContainingKnownRoot(rootPath) ? 'subdirectory' : 'ad_hoc'; |
| 252 | } |
| 253 | |
| 254 | function touchProject(rootPath: string): void { |
| 255 | projectAccessOrder.set(normalizeRootKey(rootPath), nextProjectAccessOrder++); |
no test coverage detected