Class: LSP::SignatureHelpRegistrationOptions

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

Overview

export interface SignatureHelpRegistrationOptions extends TextDocumentRegistrationOptions, SignatureHelpOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ SignatureHelpRegistrationOptions

Returns a new instance of SignatureHelpRegistrationOptions.



1407
1408
1409
1410
# File 'lib/lsp/lsp_protocol.rb', line 1407

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

Instance Attribute Details

#documentSelectorObject

type: DocumentSelector | null # type: string[] # type: string[] # type: boolean



1405
1406
1407
# File 'lib/lsp/lsp_protocol.rb', line 1405

def documentSelector
  @documentSelector
end

#retriggerCharactersObject

type: DocumentSelector | null # type: string[] # type: string[] # type: boolean



1405
1406
1407
# File 'lib/lsp/lsp_protocol.rb', line 1405

def retriggerCharacters
  @retriggerCharacters
end

#triggerCharactersObject

type: DocumentSelector | null # type: string[] # type: string[] # type: boolean



1405
1406
1407
# File 'lib/lsp/lsp_protocol.rb', line 1405

def triggerCharacters
  @triggerCharacters
end

#workDoneProgressObject

type: DocumentSelector | null # type: string[] # type: string[] # type: boolean



1405
1406
1407
# File 'lib/lsp/lsp_protocol.rb', line 1405

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



1412
1413
1414
1415
1416
1417
1418
1419
# File 'lib/lsp/lsp_protocol.rb', line 1412

def from_h!(value)
  value = {} if value.nil?
  self.documentSelector = value['documentSelector'] # Unknown type
  self.triggerCharacters = value['triggerCharacters'].map { |val| val } unless value['triggerCharacters'].nil?
  self.retriggerCharacters = value['retriggerCharacters'].map { |val| val } unless value['retriggerCharacters'].nil?
  self.workDoneProgress = value['workDoneProgress'] # Unknown type
  self
end