| 133 | |
| 134 | export const codeBlockFlairPlugin = ViewPlugin.fromClass( |
| 135 | class { |
| 136 | decorations: DecorationSet |
| 137 | |
| 138 | constructor(view: EditorView) { |
| 139 | this.decorations = buildDecorations(view) |
| 140 | } |
| 141 | |
| 142 | update(update: ViewUpdate): void { |
| 143 | if (update.docChanged || update.viewportChanged) { |
| 144 | this.decorations = buildDecorations(update.view) |
| 145 | } |
| 146 | } |
| 147 | }, |
| 148 | { decorations: (plugin) => plugin.decorations } |
| 149 | ) |
nothing calls this directly
no outgoing calls
no test coverage detected