MCPcopy Create free account
hub / github.com/breck7/scroll / toAutoCompleteCube

Method toAutoCompleteCube

external/.scrollLibs.js:18318–18328  ·  view source on GitHub ↗
(fillChar = "")

Source from the content-addressed store, hash-verified

18316 })
18317 }
18318 toAutoCompleteCube(fillChar = "") {
18319 const particles = [this.clone()]
18320 const filled = this.clone().fill(fillChar)
18321 this._getAllAutoCompleteAtoms().forEach(hole => {
18322 hole.suggestions.forEach((suggestion, index) => {
18323 if (!particles[index + 1]) particles[index + 1] = filled.clone()
18324 particles[index + 1].particleAtLine(hole.lineIndex).setAtom(hole.atomIndex, suggestion.text)
18325 })
18326 })
18327 return new Particle(particles)
18328 }
18329 toAutoCompleteTable() {
18330 return new Particle(
18331 this._getAllAutoCompleteAtoms().map(result => {

Callers

nothing calls this directly

Calls 6

fillMethod · 0.80
forEachMethod · 0.80
setAtomMethod · 0.80
particleAtLineMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected