View Source GenLSP.Structures.DocumentOnTypeFormattingParams (gen_lsp v0.10.0)
The parameters of a {@link DocumentOnTypeFormattingRequest}.
Link to this section Summary
Functions
Fields
- text_document: The document to format.
- position: The position around which the on type formatting should happen.
This is not necessarily the exact position where the character denoted
by the property
ch
got typed. - ch: The character that has been typed that triggered the formatting on type request. That is not necessarily the last character that got inserted into the document since the client could auto insert characters as well (e.g. like automatic brace completion).
- options: The formatting options.
Link to this section Types
@type t() :: %GenLSP.Structures.DocumentOnTypeFormattingParams{ ch: String.t(), options: GenLSP.Structures.FormattingOptions.t(), position: GenLSP.Structures.Position.t(), text_document: GenLSP.Structures.TextDocumentIdentifier.t() }
Link to this section Functions
fields
Fields
- text_document: The document to format.
- position: The position around which the on type formatting should happen.
This is not necessarily the exact position where the character denoted
by the property
ch
got typed. - ch: The character that has been typed that triggered the formatting on type request. That is not necessarily the last character that got inserted into the document since the client could auto insert characters as well (e.g. like automatic brace completion).
- options: The formatting options.