add NotebookEditorCellEdit#replaceMetadata,

https://github.com/microsoft/vscode/issues/105283
This commit is contained in:
Johannes Rieken
2020-08-24 16:34:44 +02:00
parent 8c5bdcdfb4
commit 2951e1f3d1
4 changed files with 39 additions and 49 deletions

View File

@@ -511,6 +511,15 @@ export class NotebookEditorCellEditBuilder implements vscode.NotebookEditorCellE
}
}
replaceMetadata(index: number, metadata: vscode.NotebookCellMetadata): void {
this._throwIfFinalized();
this._collectedEdits.push({
editType: CellEditType.Metadata,
index,
metadata
});
}
replaceOutputs(index: number, outputs: vscode.CellOutput[]): void {
this._throwIfFinalized();
this._collectedEdits.push({