Class: LSP::DocumentFormattingOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DocumentFormattingOptions extends WorkDoneProgressOptions { }
Instance Attribute Summary collapse
-
#workDoneProgress ⇒ Object
type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DocumentFormattingOptions
constructor
A new instance of DocumentFormattingOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DocumentFormattingOptions
Returns a new instance of DocumentFormattingOptions.
2253 2254 2255 2256 |
# File 'lib/lsp/lsp_protocol.rb', line 2253 def initialize(initial_hash = nil) super @optional_method_names = i[workDoneProgress] end |
Instance Attribute Details
#workDoneProgress ⇒ Object
type: boolean
2251 2252 2253 |
# File 'lib/lsp/lsp_protocol.rb', line 2251 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
2258 2259 2260 2261 2262 |
# File 'lib/lsp/lsp_protocol.rb', line 2258 def from_h!(value) value = {} if value.nil? self.workDoneProgress = value['workDoneProgress'] # Unknown type self end |