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

Method close

src/index.ts:649–659  ·  view source on GitHub ↗

* Close the CodeGraph instance and release resources

()

Source from the content-addressed store, hash-verified

647 * Close the CodeGraph instance and release resources
648 */
649 close(): void {
650 this.unwatch();
651 if (this.deferredSynthesisTimer) {
652 clearTimeout(this.deferredSynthesisTimer);
653 this.deferredSynthesisTimer = null;
654 }
655 // Release file lock if held
656 this.hasRebuildLock = false;
657 this.fileLock.release();
658 this.db.close();
659 }
660
661 /**
662 * 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