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

Method close

src/index.ts:630–639  ·  view source on GitHub ↗

* Close the CodeGraph instance and release resources

()

Source from the content-addressed store, hash-verified

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