Class: LSP::CompletionRegistrationOptions

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

Overview

export interface CompletionRegistrationOptions extends TextDocumentRegistrationOptions, CompletionOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ CompletionRegistrationOptions

Returns a new instance of CompletionRegistrationOptions.



1128
1129
1130
1131
# File 'lib/lsp/lsp_protocol.rb', line 1128

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

Instance Attribute Details

#allCommitCharactersObject

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



1126
1127
1128
# File 'lib/lsp/lsp_protocol.rb', line 1126

def allCommitCharacters
  @allCommitCharacters
end

#documentSelectorObject

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



1126
1127
1128
# File 'lib/lsp/lsp_protocol.rb', line 1126

def documentSelector
  @documentSelector
end

#resolveProviderObject

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



1126
1127
1128
# File 'lib/lsp/lsp_protocol.rb', line 1126

def resolveProvider
  @resolveProvider
end

#triggerCharactersObject

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



1126
1127
1128
# File 'lib/lsp/lsp_protocol.rb', line 1126

def triggerCharacters
  @triggerCharacters
end

#workDoneProgressObject

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



1126
1127
1128
# File 'lib/lsp/lsp_protocol.rb', line 1126

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



1133
1134
1135
1136
1137
1138
1139
1140
1141
# File 'lib/lsp/lsp_protocol.rb', line 1133

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.allCommitCharacters = value['allCommitCharacters'].map { |val| val } unless value['allCommitCharacters'].nil?
  self.resolveProvider = value['resolveProvider'] # Unknown type
  self.workDoneProgress = value['workDoneProgress'] # Unknown type
  self
end