Sha256: d7d5f29f2ec8b43881ae3fee35e5e98ea77368b6a01c73a644c7120b3aaa8931
Contents?: true
Size: 996 Bytes
Versions: 9
Compression:
Stored size: 996 Bytes
Contents
module LanguageServer module Protocol module Interface # # Represents a collection of [completion items](#CompletionItem) to be presented # in the editor. # class CompletionList def initialize(is_incomplete:, items:) @attributes = {} @attributes[:isIncomplete] = is_incomplete @attributes[:items] = items @attributes.freeze end # # This list it not complete. Further typing should result in recomputing # this list. # # @return [boolean] def is_incomplete attributes.fetch(:isIncomplete) end # # The completion items. # # @return [CompletionItem[]] def items attributes.fetch(:items) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems