Completion
constructor(label: String, displayLabel: String? = null, detail: String? = null, info: String? = null, type: String? = null, boost: Int = 0, apply: String? = null, applyFn: (CompletionApplyContext) -> Unit? = null, section: CompletionSection? = null)
Parameters
label
The text to insert (and the primary display text).
displayLabel
Optional alternative display text.
detail
Optional short description shown next to the label.
info
Optional longer documentation string.
type
Optional type indicator (e.g. "function", "variable", "keyword").
boost
Priority boost (higher = shown earlier).
apply
Optional custom apply text (overrides label).
section
Optional grouping section.