CompletionApplyContext

data class CompletionApplyContext(val session: EditorSession, val completion: Completion, val from: DocPos, val to: DocPos)

Context passed to Completion.applyFn when a completion is accepted.

Parameters

session

The editor session to apply the completion to.

completion

The completion being applied.

from

Start of the text range being replaced.

to

End of the text range being replaced.

Constructors

Link copied to clipboard
constructor(session: EditorSession, completion: Completion, from: DocPos, to: DocPos)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val to: DocPos