(path: string, frontmatter: Record<string, unknown> | null)
| 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); |
no test coverage detected