Sha256: 0472f9c2892c9a71803b2399f5d82e332b646283ab6f413e6c2778d63f033bb9
Contents?: true
Size: 725 Bytes
Versions: 5
Compression:
Stored size: 725 Bytes
Contents
module LanguageServer module Protocol module Interface class CodeLensRegistrationOptions < TextDocumentRegistrationOptions def initialize(document_selector:, resolve_provider: nil) @attributes = {} @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze 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
5 entries across 5 versions & 1 rubygems