Class: LSP::DefinitionRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DefinitionRegistrationOptions extends TextDocumentRegistrationOptions, DefinitionOptions { }
Instance Attribute Summary collapse
-
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean.
-
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DefinitionRegistrationOptions
constructor
A new instance of DefinitionRegistrationOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DefinitionRegistrationOptions
Returns a new instance of DefinitionRegistrationOptions.
1492 1493 1494 1495 |
# File 'lib/lsp/lsp_protocol.rb', line 1492 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneProgress] end |
Instance Attribute Details
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean
1490 1491 1492 |
# File 'lib/lsp/lsp_protocol.rb', line 1490 def documentSelector @documentSelector end |
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: boolean
1490 1491 1492 |
# File 'lib/lsp/lsp_protocol.rb', line 1490 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
1497 1498 1499 1500 1501 1502 |
# File 'lib/lsp/lsp_protocol.rb', line 1497 def from_h!(value) value = {} if value.nil? self.documentSelector = value['documentSelector'] # Unknown type self.workDoneProgress = value['workDoneProgress'] # Unknown type self end |