class LSProtocol::NotebookDocument
- LSProtocol::NotebookDocument
- Reference
- Object
Overview
A notebook document.
@since 3.17.0
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(cells : Array(NotebookCell) | Nil, notebook_type : String | Nil, uri : URI | Nil, version : Int32 | Nil, metadata : LSPObject | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#cells : Array(NotebookCell)
The cells of a notebook.
-
#metadata : LSPObject | Nil
Additional metadata stored with the notebook document.
-
#notebook_type : String
The type of the notebook.
-
#uri : URI
The notebook document's uri.
-
#version : Int32
The version number of this document (it will increase after each change, including undo/redo).
Constructor Detail
def self.new(cells : Array(NotebookCell) | Nil, notebook_type : String | Nil, uri : URI | Nil, version : Int32 | Nil, metadata : LSPObject | Nil = nil)
#
Instance Method Detail
Additional metadata stored with the notebook document.
Note: should always be an object literal (e.g. LSPObject)
def version : Int32
#
The version number of this document (it will increase after each change, including undo/redo).