Class: LSP::DocumentHighlightRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DocumentHighlightRegistrationOptions extends TextDocumentRegistrationOptions, DocumentHighlightOptions { }
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) ⇒ DocumentHighlightRegistrationOptions
constructor
A new instance of DocumentHighlightRegistrationOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DocumentHighlightRegistrationOptions
Returns a new instance of DocumentHighlightRegistrationOptions.
1646 1647 1648 1649 |
# File 'lib/lsp/lsp_protocol.rb', line 1646 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneProgress] end |
Instance Attribute Details
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean
1644 1645 1646 |
# File 'lib/lsp/lsp_protocol.rb', line 1644 def documentSelector @documentSelector end |
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: boolean
1644 1645 1646 |
# File 'lib/lsp/lsp_protocol.rb', line 1644 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
1651 1652 1653 1654 1655 1656 |
# File 'lib/lsp/lsp_protocol.rb', line 1651 def from_h!(value) value = {} if value.nil? self.documentSelector = value['documentSelector'] # Unknown type self.workDoneProgress = value['workDoneProgress'] # Unknown type self end |