class

LSProtocol::NotebookDocument

Inherits JSON::Serializable / Reference / Object

A notebook document.

@since 3.17.0

Constructors

new(cells : Array(NotebookCell) | Nil, notebook_type : String | Nil, uri : URI | Nil, version : Int32 | Nil, metadata : LSPObject | Nil = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cells

The cells of a notebook.

Source
metadata

Additional metadata stored with the notebook document.

Note: should always be an object literal (e.g. LSPObject)

Source
notebook_type

The type of the notebook.

Source
uri

The notebook document's uri.

Source
version

The version number of this document (it will increase after each change, including undo/redo).

Source