formatting_async


Description:

protected virtual async TextEdit[]? formatting_async (Client client, TextDocumentIdentifier text_document, FormattingOptions options) throws Error

The document formatting request is sent from the client to the server to format a whole document.

Parameters:

text_document

the document to format

options

the formatting options

Returns:

a list of text edits, or null if no formatting is needed