Sha256: f8e97bfc45b5df7cf2e3cc4a50205e122dac18402e7400da89bb128fd1696f47
Contents?: true
Size: 891 Bytes
Versions: 13
Compression:
Stored size: 891 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_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems