Sha256: a5894f85d7db62653c3cd25f404ac28508eedafe46fad602fb99f242fed05917
Contents?: true
Size: 945 Bytes
Versions: 2
Compression:
Stored size: 945 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_json(*args) attributes.to_json(*args) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
language_server-protocol-0.4.0 | lib/language_server/protocol/interface/completion_list.rb |
language_server-protocol-0.3.0 | lib/language_server/protocol/interface/completion_list.rb |