MCPcopy Create free account
hub / github.com/CatMuse/HiNote / update

Method update

src/editor/EditorHighlightDecorations.ts:28–32  ·  view source on GitHub ↗
(update: ViewUpdate)

Source from the content-addressed store, hash-verified

26 }
27
28 update(update: ViewUpdate): void {
29 if (update.docChanged || update.viewportChanged || update.transactions.length > 0) {
30 this.decorations = this.buildDecorations(update.view);
31 }
32 }
33
34 private buildDecorations(view: EditorView): DecorationSet {
35 const activeView = plugin.app.workspace.getActiveViewOfType(MarkdownView);

Callers

nothing calls this directly

Calls 1

buildDecorationsMethod · 0.80

Tested by

no test coverage detected