This commit is contained in:
Johannes 2022-04-20 12:50:54 +02:00
parent 701ca68369
commit a9c39c582c
No known key found for this signature in database
GPG key ID: 6DEF802A22264FCA
2 changed files with 9 additions and 6 deletions

View file

@ -218,11 +218,11 @@ export class ExtHostNotebookDocument {
const result = {
notebook: this.apiNotebook,
metadata: newMetadata,
cellChanges: <vscode.NotebookDocumentContentCellChange[]>[],
cellChanges: <vscode.NotebookDocumentCellChange[]>[],
contentChanges: <vscode.NotebookDocumentContentChange[]>[],
};
type RelaxedCellChange = Partial<vscode.NotebookDocumentContentCellChange> & { cell: vscode.NotebookCell };
type RelaxedCellChange = Partial<vscode.NotebookDocumentCellChange> & { cell: vscode.NotebookCell };
const relaxedCellChanges: RelaxedCellChange[] = [];
// -- apply change and populate content changes

View file

@ -12,7 +12,7 @@ declare module 'vscode' {
*
* @see {@link NotebookDocumentChangeEvent}
*/
export interface NotebookDocumentContentCellChange {
export interface NotebookDocumentCellChange {
/**
* The affected notebook.
@ -44,7 +44,7 @@ declare module 'vscode' {
}
/**
* Describes a structural change to a notebook document.
* Describes a structural change to a notebook document, e.g new added and removed cells.
*
* @see {@link NotebookDocumentChangeEvent}
*/
@ -52,6 +52,9 @@ declare module 'vscode' {
/**
* The range at which cells have been either added or removed.
*
* Note that no cells have been {@link NotebookDocumentContentChange.removedCells removed}
* when this range is {@link NotebookRange.isEmpty empty}.
*/
readonly range: NotebookRange;
@ -87,9 +90,9 @@ declare module 'vscode' {
readonly contentChanges: readonly NotebookDocumentContentChange[];
/**
* An array of {@link NotebookDocumentContentCellChange cell changes}.
* An array of {@link NotebookDocumentCellChange cell changes}.
*/
readonly cellChanges: readonly NotebookDocumentContentCellChange[];
readonly cellChanges: readonly NotebookDocumentCellChange[];
}
export namespace workspace {