MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / setOnDatabaseReopened

Method setOnDatabaseReopened

src/mcp/tools.ts:2217–2219  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

2215 * sync is its to run (only for the instance it watches and writes).
2216 */
2217 setOnDatabaseReopened(fn: ((cg: CodeGraph) => void) | null): void {
2218 this.onDatabaseReopened = fn;
2219 }
2220
2221 /**
2222 * Await the catch-up gate, but no longer than the configured timeout (#905).

Callers 1

constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected