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

Method updateCompletionState

src/utils/DependencyCache.ts:439–447  ·  view source on GitHub ↗
(path: string, frontmatter: Record<string, unknown> | null)

Source from the content-addressed store, hash-verified

437 }
438
439 private updateCompletionState(path: string, frontmatter: Record<string, unknown> | null): void {
440 const oldCompleted = this.completedStatusByPath.get(path) ?? false;
441 const newCompleted = frontmatter ? this.isCompletedFrontmatter(frontmatter) : false;
442 this.completedStatusByPath.set(path, newCompleted);
443
444 if (oldCompleted !== newCompleted) {
445 this.rebuildActiveLinksForBlocker(path);
446 }
447 }
448
449 private isCompletedPath(path: string): boolean {
450 const cached = this.completedStatusByPath.get(path);

Callers 1

handleFileChangedMethod · 0.95

Calls 4

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected