* 获取文件的所有高亮和评论
(file: TFile)
| 130 | * 获取文件的所有高亮和评论 |
| 131 | */ |
| 132 | private async getFileHighlights(file: TFile): Promise<HighlightInfo[]> { |
| 133 | const content = await this.app.vault.read(file); |
| 134 | const highlights = this.highlightService.extractHighlights(content, file); |
| 135 | |
| 136 | // 获取已存储的评论 |
| 137 | const storedComments = this.highlightRepository.getCachedHighlights(file.path) || []; |
| 138 | |
| 139 | return this.highlightService.mergeHighlightsWithComments(highlights, storedComments, file); |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * 生成导出内容 |
no test coverage detected