completionItemToOption
function completionItemToOption(item): { detail?: string; label: string; type: string;};Defined in: packages/engine/src/language/adapters/codemirror.ts:39
Convert a completion into CodeMirror’s option shape.
Kept in an adapter so the language service itself stays editor-agnostic.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
item | CompletionItem | Completion produced by the language service. |
Returns
Section titled “Returns”{ detail?: string; label: string; type: string;}The equivalent CodeMirror option.
detail?
Section titled “detail?”optional detail?: string;label: string;type: string;