Class: LSP::DocumentRangeFormattingParams
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DocumentRangeFormattingParams extends WorkDoneProgressParams
/**
* The document to format.
*/
textDocument: TextDocumentIdentifier;
/**
* The range to format
*/
range: Range;
/**
* The format options
*/
options: FormattingOptions;
Instance Attribute Summary collapse
-
#options ⇒ Object
type: TextDocumentIdentifier # type: Range # type: FormattingOptions # type: ProgressToken.
-
#range ⇒ Object
type: TextDocumentIdentifier # type: Range # type: FormattingOptions # type: ProgressToken.
-
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Range # type: FormattingOptions # type: ProgressToken.
-
#workDoneToken ⇒ Object
type: TextDocumentIdentifier # type: Range # type: FormattingOptions # type: ProgressToken.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DocumentRangeFormattingParams
constructor
A new instance of DocumentRangeFormattingParams.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DocumentRangeFormattingParams
Returns a new instance of DocumentRangeFormattingParams.
2321 2322 2323 2324 |
# File 'lib/lsp/lsp_protocol.rb', line 2321 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneToken] end |
Instance Attribute Details
#options ⇒ Object
type: TextDocumentIdentifier # type: Range # type: FormattingOptions # type: ProgressToken
2319 2320 2321 |
# File 'lib/lsp/lsp_protocol.rb', line 2319 def @options end |
#range ⇒ Object
type: TextDocumentIdentifier # type: Range # type: FormattingOptions # type: ProgressToken
2319 2320 2321 |
# File 'lib/lsp/lsp_protocol.rb', line 2319 def range @range end |
#textDocument ⇒ Object
type: TextDocumentIdentifier # type: Range # type: FormattingOptions # type: ProgressToken
2319 2320 2321 |
# File 'lib/lsp/lsp_protocol.rb', line 2319 def textDocument @textDocument end |
#workDoneToken ⇒ Object
type: TextDocumentIdentifier # type: Range # type: FormattingOptions # type: ProgressToken
2319 2320 2321 |
# File 'lib/lsp/lsp_protocol.rb', line 2319 def workDoneToken @workDoneToken end |
Instance Method Details
#from_h!(value) ⇒ Object
2326 2327 2328 2329 2330 2331 2332 2333 |
# File 'lib/lsp/lsp_protocol.rb', line 2326 def from_h!(value) value = {} if value.nil? self.textDocument = value['textDocument'] # Unknown type self.range = value['range'] # Unknown type self. = value['options'] # Unknown type self.workDoneToken = value['workDoneToken'] # Unknown type self end |