Class: LSP::CodeLensRegistrationOptions

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

Overview

export interface CodeLensRegistrationOptions extends TextDocumentRegistrationOptions, CodeLensOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ CodeLensRegistrationOptions

Returns a new instance of CodeLensRegistrationOptions.



2094
2095
2096
2097
# File 'lib/lsp/lsp_protocol.rb', line 2094

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

Instance Attribute Details

#documentSelectorObject

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



2092
2093
2094
# File 'lib/lsp/lsp_protocol.rb', line 2092

def documentSelector
  @documentSelector
end

#resolveProviderObject

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



2092
2093
2094
# File 'lib/lsp/lsp_protocol.rb', line 2092

def resolveProvider
  @resolveProvider
end

#workDoneProgressObject

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



2092
2093
2094
# File 'lib/lsp/lsp_protocol.rb', line 2092

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2099
2100
2101
2102
2103
2104
2105
# File 'lib/lsp/lsp_protocol.rb', line 2099

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