Class: LSP::CompletionList

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

Overview

export interface CompletionList

/**
 * This list it not complete. Further typing results in recomputing this list.
 */
isIncomplete: boolean;
/**
 * The completion items.
 */
items: CompletionItem[];

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

#isIncompleteObject

type: boolean # type: CompletionItem[]



898
899
900
# File 'lib/lsp/lsp_types.rb', line 898

def isIncomplete
  @isIncomplete
end

#itemsObject

type: boolean # type: CompletionItem[]



898
899
900
# File 'lib/lsp/lsp_types.rb', line 898

def items
  @items
end

Instance Method Details

#from_h!(value) ⇒ Object



900
901
902
903
904
905
# File 'lib/lsp/lsp_types.rb', line 900

def from_h!(value)
  value = {} if value.nil?
  self.isIncomplete = value['isIncomplete'] # Unknown type
  self.items = to_typed_aray(value['items'], CompletionItem)
  self
end