class LSProtocol::NotebookDocumentSyncOptions
- LSProtocol::NotebookDocumentSyncOptions
- Reference
- Object
Overview
Options specific to a notebook plus its cells to be synced to the server.
If a selector provides a notebook document filter but no cell selector all cells of a matching notebook document will be synced.
If a selector provides no notebook document filter but only a cell selector all notebook document that contain at least one matching cell will be synced.
@since 3.17.0
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(notebook_selector : Array(NotebookDocumentFilterWithCells | NotebookDocumentFilterWithNotebook) | Nil, save : Bool | Nil = nil)
Instance Method Summary
-
#notebook_selector : Array(NotebookDocumentFilterWithCells | NotebookDocumentFilterWithNotebook)
The notebooks to be synced
-
#save : Bool | Nil
Whether save notification should be forwarded to the server.
Constructor Detail
def self.new(notebook_selector : Array(NotebookDocumentFilterWithCells | NotebookDocumentFilterWithNotebook) | Nil, save : Bool | Nil = nil)
#
Instance Method Detail
def notebook_selector : Array(NotebookDocumentFilterWithCells | NotebookDocumentFilterWithNotebook)
#
The notebooks to be synced
def save : Bool | Nil
#
Whether save notification should be forwarded to
the server. Will only be honored if mode === notebook
.