CompletionResult

constructor(from: DocPos, to: DocPos? = null, options: List<Completion>, validFor: Regex? = null, filter: Boolean = true)

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).