getEdits

abstract fun getEdits(position: CursorPosition, document: TextDocument): List<TextPatch>

Provides text edits for on-type formatting.

Return

a list of text patches to apply to the document

Parameters

position

the position of the cursor after the typed character

document

the text document to format