Interface NotebookDocumentCellChange

Describes a change to a notebook cell.

interface NotebookDocumentCellChange {
    cell: NotebookCell;
    document: undefined | TextDocument;
    executionSummary: undefined | NotebookCellExecutionSummary;
    metadata: undefined | {
        [key: string]: any;
    };
    outputs: undefined | readonly NotebookCellOutput[];
}

Properties

The affected cell.

document: undefined | TextDocument

The document of the cell or undefined when it did not change.

Note that you should use the workspace.onDidChangeTextDocument onDidChangeTextDocument-event for detailed change information, like what edits have been performed.

executionSummary: undefined | NotebookCellExecutionSummary

The new execution summary of the cell or undefined when it did not change.

metadata: undefined | {
    [key: string]: any;
}

The new metadata of the cell or undefined when it did not change.

Type declaration

  • [key: string]: any
outputs: undefined | readonly NotebookCellOutput[]

The new outputs of the cell or undefined when they did not change.