class LSProtocol::NotebookDocument

Overview

A notebook document.

@since 3.17.0

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(cells : Array(NotebookCell) | Nil, notebook_type : String | Nil, uri : URI | Nil, version : Int32 | Nil, metadata : LSPObject | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def cells : Array(NotebookCell) #

The cells of a notebook.


[View source]
def metadata : LSPObject | Nil #

Additional metadata stored with the notebook document.

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


[View source]
def notebook_type : String #

The type of the notebook.


[View source]
def uri : URI #

The notebook document's uri.


[View source]
def version : Int32 #

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


[View source]