()
| 31 | } |
| 32 | |
| 33 | export function invalidateModelsCache(): void { |
| 34 | const state = getModelsCacheState(); |
| 35 | state.generation += 1; |
| 36 | state.entries.clear(); |
| 37 | state.inFlight.clear(); |
| 38 | } |
| 39 | |
| 40 | export function loadModelsWithCache(cwd: string, loader: () => Promise<ModelsData>): Promise<ModelsData> { |
| 41 | const state = getModelsCacheState(); |
no test coverage detected