struct LSP::DidChangeNotebookDocumentParams

Overview

The params sent in a change notebook document notification.

Included Modules

Defined in:

lsp/document_sync/did_change_notebook_document.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

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.

[View source]
def change=(change : NotebookDocumentChangeEvent) #

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.

[View source]
def notebook_document : VersionedNotebookDocumentIdentifier #

[View source]
def notebook_document=(notebook_document : VersionedNotebookDocumentIdentifier) #

[View source]