lsp-max 26.6.24

Law-state LSP runtime: max LSP 3.18 coverage, process-mining conformance, receipt-chain admission
Documentation
//! Handlers for notebookDocument/* LSP 3.17 request methods.

use lsp_types_max::*;

/// Handler for the `notebookDocument/didOpen` notification.
///
/// This notification is sent from the client to the server when a notebook document is opened.
pub async fn did_open_notebook(params: DidOpenNotebookDocumentParams) {
    let _ = params.notebook_document;
    let _ = params.cell_text_documents;
}

/// Handler for the `notebookDocument/didChange` notification.
///
/// This notification is sent from the client to the server when a notebook document changes.
/// The change describes single state change to the notebook document.
pub async fn did_change_notebook(params: DidChangeNotebookDocumentParams) {
    let _ = params.notebook_document;
    let _ = params.change;
}

/// Handler for the `notebookDocument/didSave` notification.
///
/// This notification is sent from the client to the server when a notebook document is saved.
pub async fn did_save_notebook(params: DidSaveNotebookDocumentParams) {
    let _ = params.notebook_document;
}

/// Handler for the `notebookDocument/didClose` notification.
///
/// This notification is sent from the client to the server when a notebook document is closed.
pub async fn did_close_notebook(params: DidCloseNotebookDocumentParams) {
    let _ = params.notebook_document;
    let _ = params.cell_text_documents;
}