(content: string)
| 658 | |
| 659 | // 解析任务进度 |
| 660 | function parseTaskProgress(content: string): { completed: number; total: number } { |
| 661 | // 使用 parseTaskList 确保统计逻辑与显示逻辑一致 |
| 662 | const tasks = parseTaskList(content).filter(t => !t.isSection) |
| 663 | const completed = tasks.filter(t => t.checked).length |
| 664 | return { completed, total: tasks.length } |
| 665 | } |
| 666 | |
| 667 | // 更新节点进度 |
| 668 | function updateNodeProgress(filePath: string, progress: { completed: number; total: number }): void { |
no test coverage detected