Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

CompletionOption

Defined in: packages/engine/src/language/adapters/codemirror.ts:37

A CodeMirror completion option, by structure: CM6’s Completion accepts it.

optional apply?: (view, completion, from, to) => void;

Defined in: packages/engine/src/language/adapters/codemirror.ts:45

Present for a phrase matched across the words already typed: replaces those words, not only the last one, and puts the cursor after the label.

ParameterType
viewCompletionTargetView
completionunknown
fromnumber
tonumber

void


optional detail?: string;

Defined in: packages/engine/src/language/adapters/codemirror.ts:40


label: string;

Defined in: packages/engine/src/language/adapters/codemirror.ts:38


type: string;

Defined in: packages/engine/src/language/adapters/codemirror.ts:39