Class: LSP::DefinitionRegistrationOptions

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

Overview

export interface DefinitionRegistrationOptions extends TextDocumentRegistrationOptions, DefinitionOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DefinitionRegistrationOptions

Returns a new instance of DefinitionRegistrationOptions.



1492
1493
1494
1495
# File 'lib/lsp/lsp_protocol.rb', line 1492

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

Instance Attribute Details

#documentSelectorObject

type: DocumentSelector | null # type: boolean



1490
1491
1492
# File 'lib/lsp/lsp_protocol.rb', line 1490

def documentSelector
  @documentSelector
end

#workDoneProgressObject

type: DocumentSelector | null # type: boolean



1490
1491
1492
# File 'lib/lsp/lsp_protocol.rb', line 1490

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



1497
1498
1499
1500
1501
1502
# File 'lib/lsp/lsp_protocol.rb', line 1497

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