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

Class

packages/app-core/src/lib/cm-code-block-flair.ts:135–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134export 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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected