Class: LSP::DocumentHighlightOptions

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

Overview

export interface DocumentHighlightOptions extends WorkDoneProgressOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DocumentHighlightOptions

Returns a new instance of DocumentHighlightOptions.



1629
1630
1631
1632
# File 'lib/lsp/lsp_protocol.rb', line 1629

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[workDoneProgress]
end

Instance Attribute Details

#workDoneProgressObject

type: boolean



1627
1628
1629
# File 'lib/lsp/lsp_protocol.rb', line 1627

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



1634
1635
1636
1637
1638
# File 'lib/lsp/lsp_protocol.rb', line 1634

def from_h!(value)
  value = {} if value.nil?
  self.workDoneProgress = value['workDoneProgress'] # Unknown type
  self
end