Sha256: cc2c3c05500dd914f68b1cda46b8d289519bfd3c7a5e75ee2384f9b99f5637fa
Contents?: true
Size: 886 Bytes
Versions: 105
Compression:
Stored size: 886 Bytes
Contents
module LanguageServer module Protocol module Interface class CodeLensOptions def initialize(work_done_progress: nil, resolve_provider: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # Code lens has a resolve provider as well. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) 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
105 entries across 105 versions & 12 rubygems