Class: LSP::CodeLensOptions

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

Overview

export interface CodeLensOptions extends WorkDoneProgressOptions

/**
 * Code lens has 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) ⇒ CodeLensOptions

Returns a new instance of CodeLensOptions.



2076
2077
2078
2079
# File 'lib/lsp/lsp_protocol.rb', line 2076

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

Instance Attribute Details

#resolveProviderObject

type: boolean # type: boolean



2074
2075
2076
# File 'lib/lsp/lsp_protocol.rb', line 2074

def resolveProvider
  @resolveProvider
end

#workDoneProgressObject

type: boolean # type: boolean



2074
2075
2076
# File 'lib/lsp/lsp_protocol.rb', line 2074

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2081
2082
2083
2084
2085
2086
# File 'lib/lsp/lsp_protocol.rb', line 2081

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