CompletionResult
data class CompletionResult(val from: DocPos, val to: DocPos? = null, val options: List<Completion>, val validFor: Regex? = null, val filter: Boolean = true)
The result of a completion source query.
Parameters
from
Start of the text range that completions apply to.
to
End of the text range. When null, defaults to the cursor position.
options
The list of completion options.
validFor
A regex or predicate that, when matching the updated text between from and the cursor, allows the result to be reused.
filter
Whether the results should be filtered by the editor (default true).