* 获取文件的所有高亮 * @param file 文件 * @returns 高亮数组
(file: TFile)
| 107 | * @returns 高亮数组 |
| 108 | */ |
| 109 | async getFileHighlights(file: TFile): Promise<HiNote[]> { |
| 110 | if (!file) return []; |
| 111 | return await this.repository.getFileHighlights(file.path); |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * 根据文本和位置查找高亮 |
nothing calls this directly
no test coverage detected