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

Method update

src/cm/lsp/inlayHints.ts:151–163  ·  view source on GitHub ↗
(update: ViewUpdate)

Source from the content-addressed store, hash-verified

149 }
150
151 update(update: ViewUpdate): void {
152 if (
153 update.transactions.some((t) => t.effects.some((e) => e.is(setHints)))
154 ) {
155 this.decorations = buildDecos(
156 update.state.field(hintsField, false) ?? [],
157 update.state.doc.length,
158 );
159 }
160 if (update.docChanged || update.viewportChanged) {
161 this.schedule();
162 }
163 }
164
165 schedule(): void {
166 if (this.timer) clearTimeout(this.timer);

Callers 4

setDefaultRuntimeFunction · 0.45
setServerRuntimeFunction · 0.45
disposeMethod · 0.45
#initializeClientMethod · 0.45

Calls 2

buildDecosFunction · 0.85
scheduleMethod · 0.80

Tested by

no test coverage detected