| 53 | |
| 54 | export const frontmatterStyle = ViewPlugin.fromClass( |
| 55 | class { |
| 56 | decorations: DecorationSet |
| 57 | constructor(view: EditorView) { |
| 58 | this.decorations = buildFrontmatterDeco(view) |
| 59 | } |
| 60 | update(update: ViewUpdate): void { |
| 61 | if (update.docChanged) this.decorations = buildFrontmatterDeco(update.view) |
| 62 | } |
| 63 | }, |
| 64 | { decorations: (v) => v.decorations } |
| 65 | ) |
nothing calls this directly
no outgoing calls
no test coverage detected