Sha256: 3b4a5b0226da8d5101cf4b42f24de70c243d67c30eb8662e4311f322083fecc7

Contents?: true

Size: 846 Bytes

Versions: 4

Compression:

Stored size: 846 Bytes

Contents

module LanguageServer
  module Protocol
    module Interface
      class CompletionRegistrationOptions < CompletionOptions
        def initialize(work_done_progress: nil, trigger_characters: nil, all_commit_characters: nil, resolve_provider: nil)
          @attributes = {}

          @attributes[:workDoneProgress] = work_done_progress if work_done_progress
          @attributes[:triggerCharacters] = trigger_characters if trigger_characters
          @attributes[:allCommitCharacters] = all_commit_characters if all_commit_characters
          @attributes[:resolveProvider] = resolve_provider if resolve_provider

          @attributes.freeze
        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

4 entries across 4 versions & 1 rubygems

Version Path
language_server-protocol-3.16.0.0 lib/language_server/protocol/interface/completion_registration_options.rb
language_server-protocol-3.15.0.2 lib/language_server/protocol/interface/completion_registration_options.rb
language_server-protocol-3.15.0.1 lib/language_server/protocol/interface/completion_registration_options.rb
language_server-protocol-3.15.0.0 lib/language_server/protocol/interface/completion_registration_options.rb