OnTypeFormattingSubservice

class OnTypeFormattingSubservice(editSuppliers: List<OnTypeFormattingEditSupplier>) : TextDocumentSubservice<DocumentOnTypeFormattingParams, List<TextEdit>>

Subservice for handling on-type formatting requests. It aggregates edits from all suppliers and returns them as a single list.

Constructors

Link copied to clipboard
constructor(editSuppliers: List<OnTypeFormattingEditSupplier>)

Functions

Link copied to clipboard
open override fun process(params: DocumentOnTypeFormattingParams, document: TextDocument): List<TextEdit>

Processes the given parameters and text to produce an output.