Sha256: be87b51444c9e6c54e331cae6fbca4d1f5aba2e58fc39764a2b4ad5b5e12fc79

Contents?: true

Size: 1.54 KB

Versions: 104

Compression:

Stored size: 1.54 KB

Contents

module LanguageServer
  module Protocol
    module Interface
      #
      # The params sent in a change notebook document notification.
      #
      class DidChangeNotebookDocumentParams
        def initialize(notebook_document:, change:)
          @attributes = {}

          @attributes[:notebookDocument] = notebook_document
          @attributes[:change] = change

          @attributes.freeze
        end

        #
        # The notebook document that did change. The version number points
        # to the version after all provided changes have been applied.
        #
        # @return [VersionedNotebookDocumentIdentifier]
        def notebook_document
          attributes.fetch(:notebookDocument)
        end

        #
        # The actual changes to the notebook document.
        #
        # The change describes single state change to the notebook document.
        # So it moves a notebook document, its cells and its cell text document
        # contents from state S to S'.
        #
        # To mirror the content of a notebook using change events use the
        # following approach:
        # - start with the same initial content
        # - apply the 'notebookDocument/didChange' notifications in the order
        # you receive them.
        #
        # @return [NotebookDocumentChangeEvent]
        def change
          attributes.fetch(:change)
        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

104 entries across 104 versions & 13 rubygems

Version Path
language_server-protocol-3.17.0.4 lib/language_server/protocol/interface/did_change_notebook_document_params.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
bison-0.1.0 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
study_line-0.2.7 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
study_line-0.2.6 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
study_line-0.2.5 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
study_line-0.2.4 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
study_line-0.2.3 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
study_line-0.2.2 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
study_line-0.2.1 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
study_line-0.2.0 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/language_server-protocol-3.17.0.3/lib/language_server/protocol/interface/did_change_notebook_document_params.rb