* Engine-only: called after a tool call's freshen reopened a database * that was replaced on disk (#1902). The engine decides whether a catch-up * sync is its to run (only for the instance it watches and writes).
(fn: ((cg: CodeGraph) => void) | null)
| 2241 | * sync is its to run (only for the instance it watches and writes). |
| 2242 | */ |
| 2243 | setOnDatabaseReopened(fn: ((cg: CodeGraph) => void) | null): void { |
| 2244 | this.onDatabaseReopened = fn; |
| 2245 | } |
| 2246 | |
| 2247 | /** |
| 2248 | * Await the catch-up gate, but no longer than the configured timeout (#905). |