class LSProtocol::DocumentRangesFormattingParams
- LSProtocol::DocumentRangesFormattingParams
- Reference
- Object
Overview
The parameters of a DocumentRangesFormattingRequest
.
@since 3.18.0 @proposed
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(options : FormattingOptions | Nil, ranges : Array(Range) | Nil, text_document : TextDocumentIdentifier | Nil, work_done_token : ProgressToken | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#options : FormattingOptions
The format options
-
#ranges : Array(Range)
The ranges to format
-
#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, ranges : Array(Range) | 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.