* Close the CodeGraph instance and release resources
()
| 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 |
no test coverage detected