Skip to content

Commit

Permalink
Add notebook support.
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbz00 committed Nov 18, 2023
1 parent 2b20769 commit 2113a9e
Show file tree
Hide file tree
Showing 3 changed files with 489 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ pub use document_link::*;
mod document_symbols;
pub use document_symbols::*;

mod notebook;
pub use notebook::*;

mod file_operations;
pub use file_operations::*;

Expand Down Expand Up @@ -1594,6 +1597,12 @@ pub struct ClientCapabilities {
#[serde(skip_serializing_if = "Option::is_none")]
pub text_document: Option<TextDocumentClientCapabilities>,

/// Capabilities specific to the notebook document support.
///
/// @since 3.17.0
#[serde(skip_serializing_if = "Option::is_none")]
pub notebook_document: Option<NotebookDocumentClientCapabilities>,

/// Window specific client capabilities.
#[serde(skip_serializing_if = "Option::is_none")]
pub window: Option<WindowClientCapabilities>,
Expand Down Expand Up @@ -1910,6 +1919,13 @@ pub struct ServerCapabilities {
#[serde(skip_serializing_if = "Option::is_none")]
pub text_document_sync: Option<TextDocumentSyncCapability>,

/// Defines how notebook documents are synced.
///
/// @since 3.17.0
#[serde(skip_serializing_if = "Option::is_none")]
pub notebook_document_sync:
Option<OneOf<NotebookDocumentSyncOptions, NotebookDocumentSyncRegistrationOptions>>,

/// Capabilities specific to `textDocument/selectionRange` requests.
#[serde(skip_serializing_if = "Option::is_none")]
pub selection_range_provider: Option<SelectionRangeProviderCapability>,
Expand Down
Loading

0 comments on commit 2113a9e

Please sign in to comment.