Class: LSP::SelectionRangeParams

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

Overview

export interface SelectionRangeParams extends WorkDoneProgressParams, PartialResultParams

/**
 * The text document.
 */
textDocument: TextDocumentIdentifier;
/**
 * The positions inside the text document.
 */
positions: Position[];

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#positionsObject

type: TextDocumentIdentifier # type: Position[]



65
66
67
# File 'lib/lsp/lsp_protocol_selectionrange.rb', line 65

def positions
  @positions
end

#textDocumentObject

type: TextDocumentIdentifier # type: Position[]



65
66
67
# File 'lib/lsp/lsp_protocol_selectionrange.rb', line 65

def textDocument
  @textDocument
end

Instance Method Details

#from_h!(value) ⇒ Object



67
68
69
70
71
72
# File 'lib/lsp/lsp_protocol_selectionrange.rb', line 67

def from_h!(value)
  value = {} if value.nil?
  self.textDocument = value['textDocument'] # Unknown type
  self.positions = value['positions'].map { |val| val } unless value['positions'].nil? # Unknown array type
  self
end