* Run a `processFrontMatter` mutation serialized through this file's write * queue, so it interleaves safely with every other MetaEdit write to the same * file (the inline/tag `vault.read`+`vault.modify` paths in particular, which * Obsidian does NOT serialize against a bare `processF
(file: TFile, update: (frontmatter: Record<string, unknown>) => void)
| 848 | * (`isReservedFrontmatterKey`); any new caller must do the same. |
| 849 | */ |
| 850 | public async enqueueFrontmatterWrite(file: TFile, update: (frontmatter: Record<string, unknown>) => void): Promise<void> { |
| 851 | await this.enqueueFileWrite(file, () => this.processFrontMatter(file, update)); |
| 852 | } |
| 853 | |
| 854 | private async processFrontMatter(file: TFile, update: (frontmatter: Record<string, unknown>) => void): Promise<void> { |
| 855 | await this.app.fileManager.processFrontMatter(file, update); |
no test coverage detected