Class: LSP::HoverOptions

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

Overview

export interface HoverOptions extends WorkDoneProgressOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ HoverOptions

Returns a new instance of HoverOptions.



1176
1177
1178
1179
# File 'lib/lsp/lsp_protocol.rb', line 1176

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

Instance Attribute Details

#workDoneProgressObject

type: boolean



1174
1175
1176
# File 'lib/lsp/lsp_protocol.rb', line 1174

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



1181
1182
1183
1184
1185
# File 'lib/lsp/lsp_protocol.rb', line 1181

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