class LSProtocol::DocumentFormattingParams
- LSProtocol::DocumentFormattingParams
- Reference
- Object
Overview
The parameters of a DocumentFormattingRequest
.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(options : FormattingOptions | Nil, text_document : TextDocumentIdentifier | Nil, work_done_token : ProgressToken | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#options : FormattingOptions
The format options.
-
#text_document : TextDocumentIdentifier
The document to format.
-
#work_done_token : ProgressToken | Nil
An optional token that a server can use to report work done progress.
Constructor Detail
def self.new(options : FormattingOptions | Nil, text_document : TextDocumentIdentifier | Nil, work_done_token : ProgressToken | Nil = nil)
#
Instance Method Detail
def work_done_token : ProgressToken | Nil
#
An optional token that a server can use to report work done progress.