Class: LSP::DocumentLinkOptions

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

Overview

export interface DocumentLinkOptions extends WorkDoneProgressOptions

/**
 * Document links have a resolve provider as well.
 */
resolveProvider?: boolean;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DocumentLinkOptions

Returns a new instance of DocumentLinkOptions.



2168
2169
2170
2171
# File 'lib/lsp/lsp_protocol.rb', line 2168

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

Instance Attribute Details

#resolveProviderObject

type: boolean # type: boolean



2166
2167
2168
# File 'lib/lsp/lsp_protocol.rb', line 2166

def resolveProvider
  @resolveProvider
end

#workDoneProgressObject

type: boolean # type: boolean



2166
2167
2168
# File 'lib/lsp/lsp_protocol.rb', line 2166

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2173
2174
2175
2176
2177
2178
# File 'lib/lsp/lsp_protocol.rb', line 2173

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