Class: LSP::ReferenceOptions

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

Overview

export interface ReferenceOptions extends WorkDoneProgressOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ ReferenceOptions

Returns a new instance of ReferenceOptions.



1553
1554
1555
1556
# File 'lib/lsp/lsp_protocol.rb', line 1553

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

Instance Attribute Details

#workDoneProgressObject

type: boolean



1551
1552
1553
# File 'lib/lsp/lsp_protocol.rb', line 1551

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



1558
1559
1560
1561
1562
# File 'lib/lsp/lsp_protocol.rb', line 1558

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