Class: LSP::DefinitionOptions

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

Overview

export interface DefinitionOptions extends WorkDoneProgressOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DefinitionOptions

Returns a new instance of DefinitionOptions.



1455
1456
1457
1458
# File 'lib/lsp/lsp_protocol.rb', line 1455

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

Instance Attribute Details

#workDoneProgressObject

type: boolean



1453
1454
1455
# File 'lib/lsp/lsp_protocol.rb', line 1453

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



1460
1461
1462
1463
1464
# File 'lib/lsp/lsp_protocol.rb', line 1460

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