MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / updateRelevantPathsCache

Function updateRelevantPathsCache

src/bases/BasesViewBase.ts:222–235  ·  view source on GitHub ↗

* Update the cache of relevant paths for efficient update checking. * Called when data changes to avoid expensive lookups on every task update.

()

Source from the content-addressed store, hash-verified

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).

Callers

nothing calls this directly

Calls 2

extractDataItemsMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected