Class: LSP::DocumentLinkRegistrationOptions

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

Overview

export interface DocumentLinkRegistrationOptions extends TextDocumentRegistrationOptions, DocumentLinkOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DocumentLinkRegistrationOptions

Returns a new instance of DocumentLinkRegistrationOptions.



2186
2187
2188
2189
# File 'lib/lsp/lsp_protocol.rb', line 2186

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

Instance Attribute Details

#documentSelectorObject

type: DocumentSelector | null # type: boolean # type: boolean



2184
2185
2186
# File 'lib/lsp/lsp_protocol.rb', line 2184

def documentSelector
  @documentSelector
end

#resolveProviderObject

type: DocumentSelector | null # type: boolean # type: boolean



2184
2185
2186
# File 'lib/lsp/lsp_protocol.rb', line 2184

def resolveProvider
  @resolveProvider
end

#workDoneProgressObject

type: DocumentSelector | null # type: boolean # type: boolean



2184
2185
2186
# File 'lib/lsp/lsp_protocol.rb', line 2184

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2191
2192
2193
2194
2195
2196
2197
# File 'lib/lsp/lsp_protocol.rb', line 2191

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