add NotebookEditorCellEdit#replaceOutputs, https://github.com/microsoft/vscode/issues/105283

This commit is contained in:
Johannes Rieken
2020-08-24 15:19:12 +02:00
parent bc9f2577cd
commit ac4de7bbb3
6 changed files with 40 additions and 6 deletions

View File

@@ -511,6 +511,15 @@ export class NotebookEditorCellEditBuilder implements vscode.NotebookEditorCellE
}
}
replaceOutputs(index: number, outputs: vscode.CellOutput[]): void {
this._throwIfFinalized();
this._collectedEdits.push({
editType: CellEditType.Output,
index,
outputs: outputs.map(output => addIdToOutput(output))
});
}
replaceCells(from: number, to: number, cells: vscode.NotebookCellData[]): void {
this._throwIfFinalized();