Class: LSP::ReferenceRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface ReferenceRegistrationOptions extends TextDocumentRegistrationOptions, ReferenceOptions { }
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) ⇒ ReferenceRegistrationOptions
constructor
A new instance of ReferenceRegistrationOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ ReferenceRegistrationOptions
Returns a new instance of ReferenceRegistrationOptions.
1570 1571 1572 1573 |
# File 'lib/lsp/lsp_protocol.rb', line 1570 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneProgress] end |
Instance Attribute Details
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean
1568 1569 1570 |
# File 'lib/lsp/lsp_protocol.rb', line 1568 def documentSelector @documentSelector end |
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: boolean
1568 1569 1570 |
# File 'lib/lsp/lsp_protocol.rb', line 1568 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
1575 1576 1577 1578 1579 1580 |
# File 'lib/lsp/lsp_protocol.rb', line 1575 def from_h!(value) value = {} if value.nil? self.documentSelector = value['documentSelector'] # Unknown type self.workDoneProgress = value['workDoneProgress'] # Unknown type self end |