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