* Update the cache of relevant paths for efficient update checking. * Called when data changes to avoid expensive lookups on every task update.
()
| 220 | * Called when data changes to avoid expensive lookups on every task update. |
| 221 | */ |
| 222 | protected updateRelevantPathsCache(): void { |
| 223 | this.relevantPathsCache.clear(); |
| 224 | |
| 225 | try { |
| 226 | const dataItems = this.dataAdapter.extractDataItems(); |
| 227 | for (const item of dataItems) { |
| 228 | if (item.path) { |
| 229 | this.relevantPathsCache.add(item.path); |
| 230 | } |
| 231 | } |
| 232 | } catch { |
| 233 | // Ignore errors - cache will be empty and all updates will be processed |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * Lifecycle: Save ephemeral state (scroll position, etc). |
nothing calls this directly
no test coverage detected