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

Method callHost

src/sync/watcher.ts:851–857  ·  view source on GitHub ↗

* Call one of the host's WatchOptions callbacks. They are diagnostics: * one that throws is logged and changes nothing here. A sync runs from a timer, * so a throw would have no caller and end the host's process as an unhandled * rejection. It would also read as a failed sync, or sk

(name: string, call: () => void)

Source from the content-addressed store, hash-verified

849 * degrade owes.
850 */
851 private callHost(name: string, call: () => void): void {
852 try {
853 call();
854 } catch (err) {
855 logWarn(`File watcher ${name} callback threw`, { error: err instanceof Error ? err.message : String(err) });
856 }
857 }
858
859 /**
860 * Disable live watching after a terminal runtime failure

Callers 2

degradeMethod · 0.95
flushMethod · 0.95

Calls 2

logWarnFunction · 0.90
callFunction · 0.50

Tested by

no test coverage detected