Type Alias VNotebookDocumentChangeEvent

VNotebookDocumentChangeEvent: {
    cells?: {
        data?: vscode.NotebookCell[];
        structure?: {
            array: {
                cells?: vscode.NotebookCell[];
                deleteCount: number;
                start: number;
            };
            didClose?: vscode.NotebookCell[];
            didOpen?: vscode.NotebookCell[];
        };
        textContent?: vscode.TextDocumentChangeEvent[];
    };
    metadata?: { [key: string]: any };
    notebook: vscode.NotebookDocument;
}

Type declaration

  • Optionalcells?: {
        data?: vscode.NotebookCell[];
        structure?: {
            array: {
                cells?: vscode.NotebookCell[];
                deleteCount: number;
                start: number;
            };
            didClose?: vscode.NotebookCell[];
            didOpen?: vscode.NotebookCell[];
        };
        textContent?: vscode.TextDocumentChangeEvent[];
    }

    Changes to cells.

    • Optionaldata?: vscode.NotebookCell[]

      Changes to notebook cells properties like its kind or metadata.

    • Optionalstructure?: {
          array: {
              cells?: vscode.NotebookCell[];
              deleteCount: number;
              start: number;
          };
          didClose?: vscode.NotebookCell[];
          didOpen?: vscode.NotebookCell[];
      }

      Changes to the cell structure to add or remove cells.

      • array: { cells?: vscode.NotebookCell[]; deleteCount: number; start: number }

        The change to the cell array.

      • OptionaldidClose?: vscode.NotebookCell[]

        Additional closed cell text documents.

      • OptionaldidOpen?: vscode.NotebookCell[]

        Additional opened cell text documents.

    • OptionaltextContent?: vscode.TextDocumentChangeEvent[]

      Changes to the text content of notebook cells.

  • Optionalmetadata?: { [key: string]: any }

    The changed meta data if any.

  • notebook: vscode.NotebookDocument

    The notebook document