| 119 | |
| 120 | const wikilinkRenderPlugin = ViewPlugin.fromClass( |
| 121 | class { |
| 122 | decorations: DecorationSet |
| 123 | constructor(view: EditorView) { |
| 124 | this.decorations = buildDecorations(view) |
| 125 | } |
| 126 | update(update: ViewUpdate): void { |
| 127 | if (update.docChanged || update.selectionSet || update.viewportChanged) { |
| 128 | this.decorations = buildDecorations(update.view) |
| 129 | } |
| 130 | } |
| 131 | }, |
| 132 | { decorations: (p) => p.decorations } |
| 133 | ) |
| 134 |
nothing calls this directly
no outgoing calls
no test coverage detected