Type Alias NotebookDocumentMiddleware

NotebookDocumentMiddleware: {
    notebooks?: {
        didChange?: (
            this: void,
            event: VNotebookDocumentChangeEvent,
            next: (this: void, event: VNotebookDocumentChangeEvent) => Promise<void>,
        ) => Promise<void>;
        didClose?: (
            this: void,
            notebookDocument: vscode.NotebookDocument,
            cells: vscode.NotebookCell[],
            next: (
                this: void,
                notebookDocument: vscode.NotebookDocument,
                cells: vscode.NotebookCell[],
            ) => Promise<void>,
        ) => Promise<void>;
        didOpen?: (
            this: void,
            notebookDocument: vscode.NotebookDocument,
            cells: vscode.NotebookCell[],
            next: (
                this: void,
                notebookDocument: vscode.NotebookDocument,
                cells: vscode.NotebookCell[],
            ) => Promise<void>,
        ) => Promise<void>;
        didSave?: (
            this: void,
            notebookDocument: vscode.NotebookDocument,
            next: (
                this: void,
                notebookDocument: vscode.NotebookDocument,
            ) => Promise<void>,
        ) => Promise<void>;
    };
}

Type declaration

  • Optionalnotebooks?: {
        didChange?: (
            this: void,
            event: VNotebookDocumentChangeEvent,
            next: (this: void, event: VNotebookDocumentChangeEvent) => Promise<void>,
        ) => Promise<void>;
        didClose?: (
            this: void,
            notebookDocument: vscode.NotebookDocument,
            cells: vscode.NotebookCell[],
            next: (
                this: void,
                notebookDocument: vscode.NotebookDocument,
                cells: vscode.NotebookCell[],
            ) => Promise<void>,
        ) => Promise<void>;
        didOpen?: (
            this: void,
            notebookDocument: vscode.NotebookDocument,
            cells: vscode.NotebookCell[],
            next: (
                this: void,
                notebookDocument: vscode.NotebookDocument,
                cells: vscode.NotebookCell[],
            ) => Promise<void>,
        ) => Promise<void>;
        didSave?: (
            this: void,
            notebookDocument: vscode.NotebookDocument,
            next: (
                this: void,
                notebookDocument: vscode.NotebookDocument,
            ) => Promise<void>,
        ) => Promise<void>;
    }