The database file at the path was written within the recreate grace window.
()
| 346 | |
| 347 | /** The database file at the path was written within the recreate grace window. */ |
| 348 | private isFreshlyRecreated(): boolean { |
| 349 | try { |
| 350 | return Date.now() - fs.statSync(getDatabasePath(this.projectRoot)).mtimeMs < CodeGraph.RECREATE_GRACE_MS; |
| 351 | } catch { |
| 352 | return false; |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | /** |
| 357 | * Heal a stale database handle in place. If `.codegraph/` was removed and |