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

Method close

src/index.ts:628–637  ·  view source on GitHub ↗

* Close the CodeGraph instance and release resources

()

Source from the content-addressed store, hash-verified

626 * Close the CodeGraph instance and release resources
627 */
628 close(): void {
629 this.unwatch();
630 if (this.deferredSynthesisTimer) {
631 clearTimeout(this.deferredSynthesisTimer);
632 this.deferredSynthesisTimer = null;
633 }
634 // Release file lock if held
635 this.fileLock.release();
636 this.db.close();
637 }
638
639 /**
640 * 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