* Force immediate save of any pending changes. * Call this on extension deactivation to ensure cache is persisted.
()
| 229 | * Call this on extension deactivation to ensure cache is persisted. |
| 230 | */ |
| 231 | async flush(): Promise<void> { |
| 232 | if (this.saveTimer) { |
| 233 | clearTimeout(this.saveTimer); |
| 234 | this.saveTimer = null; |
| 235 | } |
| 236 | await this.saveNow(); |
| 237 | await this.writeGraphFile(this.lastMergedGraph); |
| 238 | } |
| 239 | |
| 240 | // ========================================================================= |
| 241 | // Multi-Batch Analysis State |
no test coverage detected