MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / startWorker

Function startWorker

lib/web/CodeMirror/src/display/highlight_worker.js:10–13  ·  view source on GitHub ↗
(cm, time)

Source from the content-addressed store, hash-verified

8// HIGHLIGHT WORKER
9
10export function startWorker(cm, time) {
11 if (cm.doc.highlightFrontier < cm.display.viewTo)
12 cm.state.highlight.set(time, bind(highlightWorker, cm))
13}
14
15function highlightWorker(cm) {
16 let doc = cm.doc

Callers 5

updateDisplayIfNeededFunction · 0.90
updateScrollTopFunction · 0.90
resetModeStateFunction · 0.90
highlightWorkerFunction · 0.70

Calls 2

bindFunction · 0.90
setMethod · 0.65

Tested by

no test coverage detected