Class: LSP::ReferenceRegistrationOptions

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

Overview

export interface ReferenceRegistrationOptions extends TextDocumentRegistrationOptions, ReferenceOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ ReferenceRegistrationOptions

Returns a new instance of ReferenceRegistrationOptions.



1570
1571
1572
1573
# File 'lib/lsp/lsp_protocol.rb', line 1570

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

Instance Attribute Details

#documentSelectorObject

type: DocumentSelector | null # type: boolean



1568
1569
1570
# File 'lib/lsp/lsp_protocol.rb', line 1568

def documentSelector
  @documentSelector
end

#workDoneProgressObject

type: DocumentSelector | null # type: boolean



1568
1569
1570
# File 'lib/lsp/lsp_protocol.rb', line 1568

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



1575
1576
1577
1578
1579
1580
# File 'lib/lsp/lsp_protocol.rb', line 1575

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