MCPcopy Create free account
hub / github.com/ZenNotes/zennotes /

Class

packages/app-core/src/lib/cm-wikilink-render.ts:121–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120const 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected