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