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

Method scheduleBuild

src/cm/rainbowBrackets.ts:203–214  ·  view source on GitHub ↗
(view: EditorView)

Source from the content-addressed store, hash-verified

201 }
202
203 scheduleBuild(view: EditorView): void {
204 this.pendingView = view;
205 if (this.raf) return;
206 this.raf = requestAnimationFrame(() => {
207 this.raf = 0;
208 const pendingView = this.pendingView;
209 this.pendingView = null;
210 if (!pendingView) return;
211 this.decorations = this.buildDecorations(pendingView);
212 pendingView.dispatch({});
213 });
214 }
215
216 buildDecorations(view: EditorView): DecorationSet {
217 const visibleRanges = view.visibleRanges;

Callers 1

updateMethod · 0.80

Calls 1

buildDecorationsMethod · 0.80

Tested by

no test coverage detected