Class: LSP::DocumentHighlightRegistrationOptions

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol.rb

Overview

export interface DocumentHighlightRegistrationOptions extends TextDocumentRegistrationOptions, DocumentHighlightOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#documentSelectorObject

type: DocumentSelector | null # type: boolean



1644
1645
1646
# File 'lib/lsp/lsp_protocol.rb', line 1644

def documentSelector
  @documentSelector
end

#workDoneProgressObject

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