MCPcopy Create free account
hub / github.com/EmNudge/watlings / update

Function update

web-build/src/editor.ts:302–306  ·  view source on GitHub ↗
(decos, tr)

Source from the content-addressed store, hash-verified

300const refHighlightField = StateField.define<DecorationSet>({
301 create: () => Decoration.none,
302 update(decos, tr) {
303 const effect = tr.effects.find((e) => e.is(setRefHighlights));
304 if (effect) return effect.value;
305 return tr.docChanged || tr.selection ? Decoration.none : decos;
306 },
307 provide: (f) => EditorView.decorations.from(f),
308});
309

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected