Sha256: 9aec9704eb3069a63eed44bcdceb1bbc34db8140f6b9864144349f66d16fc3e6
Contents?: true
Size: 840 Bytes
Versions: 2
Compression:
Stored size: 840 Bytes
Contents
module LanguageServer module Protocol module Interface # # Known error codes for an `InitializeError`; # class InitializeError def initialize(retry:) @attributes = {} @attributes[:retry] = binding.local_variable_get(:retry) @attributes.freeze end # # Indicates whether the client execute the following retry logic: # (1) show the message provided by the ResponseError to the user # (2) user selects retry or cancel # (3) if user selected retry the initialize method is sent again. # # @return [boolean] def retry attributes.fetch(:retry) 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/initialize_error.rb |
language_server-protocol-0.3.0 | lib/language_server/protocol/interface/initialize_error.rb |