MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web /

Class

app/components/JsonPreview.tsx:172–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171const highlightLineRangePlugin = ViewPlugin.fromClass(
172 class {
173 decorations: any;
174 constructor(view: any) {
175 this.decorations = highlightLines(view);
176 }
177
178 update(update: { docChanged: any; viewportChanged: any; view: any }) {
179 if (update.docChanged || update.viewportChanged)
180 this.decorations = highlightLines(update.view);
181 }
182 },
183 {
184 decorations: (v) => v.decorations,
185 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected