(ide: IDE)
| 64 | |
| 65 | // factory to make diff cache more testable |
| 66 | export function getDiffFn(ide: IDE): GetDiffFn { |
| 67 | return () => ide.getDiff(true); |
| 68 | } |
| 69 | |
| 70 | export async function getDiffsFromCache(ide: IDE): Promise<string[]> { |
| 71 | const diffCache = GitDiffCache.getInstance(getDiffFn(ide)); |
no test coverage detected