MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / getFrontmatterForFile

Method getFrontmatterForFile

src/utils/DependencyCache.ts:231–234  ·  view source on GitHub ↗
(file: TFile)

Source from the content-addressed store, hash-verified

229 }
230
231 private getFrontmatterForFile(file: TFile): Record<string, unknown> | null {
232 const metadata = this.app.metadataCache.getFileCache(file);
233 return this.getFrontmatterFromCache(metadata);
234 }
235
236 private getFrontmatterFromCache(cache: unknown): Record<string, unknown> | null {
237 if (!cache || typeof cache !== "object" || !("frontmatter" in cache)) {

Callers 3

handleFileChangedMethod · 0.95
handleFileRenamedMethod · 0.95
isCompletedPathMethod · 0.95

Calls 2

getFileCacheMethod · 0.80

Tested by

no test coverage detected