Completion
data class Completion(val label: String, val displayLabel: String? = null, val detail: String? = null, val info: String? = null, val type: String? = null, val boost: Int = 0, val apply: String? = null, val applyFn: (CompletionApplyContext) -> Unit? = null, val section: CompletionSection? = null)
A single completion option.
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.
Constructors
Link copied to clipboard
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)