MCPcopy Create free account
hub / github.com/CatMuse/HiNote / getFileHighlights

Method getFileHighlights

src/services/HighlightManager.ts:109–112  ·  view source on GitHub ↗

* 获取文件的所有高亮 * @param file 文件 * @returns 高亮数组

(file: TFile)

Source from the content-addressed store, hash-verified

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 * 根据文本和位置查找高亮

Callers

nothing calls this directly

Calls 1

getFileHighlightsMethod · 0.65

Tested by

no test coverage detected