class LSProtocol::DocumentOnTypeFormattingParams
- LSProtocol::DocumentOnTypeFormattingParams
- Reference
- Object
Overview
The parameters of a DocumentOnTypeFormattingRequest
.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(ch : String | Nil, options : FormattingOptions | Nil, position : Position | Nil, text_document : TextDocumentIdentifier | Nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#ch : String
The character that has been typed that triggered the formatting on type request.
-
#options : FormattingOptions
The formatting options.
-
#position : Position
The position around which the on type formatting should happen.
-
#text_document : TextDocumentIdentifier
The document to format.
Constructor Detail
def self.new(ch : String | Nil, options : FormattingOptions | Nil, position : Position | Nil, text_document : TextDocumentIdentifier | Nil)
#
Instance Method Detail
def ch : String
#
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).
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.