class LSProtocol::NotebookDocumentSyncRegistrationOptions
- LSProtocol::NotebookDocumentSyncRegistrationOptions
- Reference
- Object
Overview
Registration options specific to a notebook.
@since 3.17.0
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(notebook_selector : Array(NotebookDocumentFilterWithCells | NotebookDocumentFilterWithNotebook) | Nil, id : String | Nil = nil, save : Bool | Nil = nil)
Instance Method Summary
-
#id : String | Nil
The id used to register the request.
-
#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, id : String | Nil = nil, save : Bool | Nil = nil)
#
Instance Method Detail
def id : String | Nil
#
The id used to register the request. The id can be used to deregister the request again. See also Registration#id.
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
.