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

Method update

src/cm/colorView.ts:316–324  ·  view source on GitHub ↗
(update: ViewUpdate)

Source from the content-addressed store, hash-verified

314 }
315
316 update(update: ViewUpdate): void {
317 if (update.docChanged || update.viewportChanged || update.geometryChanged) {
318 this.scheduleDecorations(update);
319 }
320 const readOnly = update.view.contentDOM.ariaReadOnly === "true";
321 const editable = update.view.contentDOM.contentEditable === "true";
322 const canBeEdited = readOnly === false && editable;
323 this.changePicker(update.view, canBeEdited);
324 }
325
326 scheduleVisibleRanges(view: EditorView): void {
327 this.pendingView = view;

Callers 1

flushDecorationsMethod · 0.45

Calls 2

scheduleDecorationsMethod · 0.95
changePickerMethod · 0.95

Tested by

no test coverage detected