MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / update

Function update

src/cm/lsp/inlayHints.ts:63–68  ·  view source on GitHub ↗
(hints, tr)

Source from the content-addressed store, hash-verified

61const hintsField = StateField.define<ProcessedHint[]>({
62 create: () => [],
63 update(hints, tr) {
64 for (const e of tr.effects) {
65 if (e.is(setHints)) return e.value;
66 }
67 return hints;
68 },
69});
70
71// ============================================================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected