Class: LSP::CodeLensParams

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

Overview

export interface CodeLensParams extends WorkDoneProgressParams, PartialResultParams

/**
 * The document to request code lens for.
 */
textDocument: TextDocumentIdentifier;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ CodeLensParams

Returns a new instance of CodeLensParams.



2053
2054
2055
2056
# File 'lib/lsp/lsp_protocol.rb', line 2053

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[workDoneToken partialResultToken]
end

Instance Attribute Details

#partialResultTokenObject

type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken



2051
2052
2053
# File 'lib/lsp/lsp_protocol.rb', line 2051

def partialResultToken
  @partialResultToken
end

#textDocumentObject

type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken



2051
2052
2053
# File 'lib/lsp/lsp_protocol.rb', line 2051

def textDocument
  @textDocument
end

#workDoneTokenObject

type: TextDocumentIdentifier # type: ProgressToken # type: ProgressToken



2051
2052
2053
# File 'lib/lsp/lsp_protocol.rb', line 2051

def workDoneToken
  @workDoneToken
end

Instance Method Details

#from_h!(value) ⇒ Object



2058
2059
2060
2061
2062
2063
2064
# File 'lib/lsp/lsp_protocol.rb', line 2058

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