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

Method close

src/index.ts:648–658  ·  view source on GitHub ↗

* Close the CodeGraph instance and release resources

()

Source from the content-addressed store, hash-verified

646 * Close the CodeGraph instance and release resources
647 */
648 close(): void {
649 this.unwatch();
650 if (this.deferredSynthesisTimer) {
651 clearTimeout(this.deferredSynthesisTimer);
652 this.deferredSynthesisTimer = null;
653 }
654 // Release file lock if held
655 this.hasRebuildLock = false;
656 this.fileLock.release();
657 this.db.close();
658 }
659
660 /**
661 * Get the project root directory

Callers 2

destroyMethod · 0.95
uninitializeMethod · 0.95

Calls 3

unwatchMethod · 0.95
releaseMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected