Sha256: 9cd925fd51d637f9ab009aa8af02ec916e7bdd4a2dc0ba01b2bcfba9ecde32fa
Contents?: true
Size: 671 Bytes
Versions: 1
Compression:
Stored size: 671 Bytes
Contents
module LanguageServer module Protocol module Interface class TextDocumentSaveRegistrationOptions < TextDocumentRegistrationOptions def initialize(document_selector:, include_text: nil) @attributes = {} @attributes[:includeText] = include_text if include_text @attributes.freeze end # # The client is supposed to include the content on save. # # @return [boolean] def include_text attributes.fetch(:includeText) end attr_reader :attributes def to_json(*args) attributes.to_json(*args) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
language_server-protocol-0.4.0 | lib/language_server/protocol/interface/text_document_save_registration_options.rb |