(decos, tr)
| 300 | const 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 |
nothing calls this directly
no outgoing calls
no test coverage detected