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

Method close

src/index.ts:629–638  ·  view source on GitHub ↗

* Close the CodeGraph instance and release resources

()

Source from the content-addressed store, hash-verified

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