This site describes solve-engine 2.44.0, the version npm installs.
CompletionItem
Defined in: packages/engine/src/language/LanguageService.ts:26
A single completion candidate, the entire output contract of getCompletions().
Properties
Section titled “Properties”category
Section titled “category”category: TokenCategory;Defined in: packages/engine/src/language/LanguageService.ts:29
Reuses the highlighting taxonomy, one adapter can serve both features.
detail?
Section titled “detail?”detail?: string;Defined in: packages/engine/src/language/LanguageService.ts:31
e.g. a unit’s measure (“length”), or the category name for keywords/functions.
label: string;Defined in: packages/engine/src/language/LanguageService.ts:27
replaceLength?
Section titled “replaceLength?”replaceLength?: number;Defined in: packages/engine/src/language/LanguageService.ts:38
How many characters before the cursor the label replaces, present only
when that is more than the word under the cursor: a phrase matched across
the words already typed (net pres offering net present value of) sets
it to the length of net pres. Absent, the label replaces the last word.