remove legacy typings.

This commit is contained in:
rebornix
2021-02-08 14:48:26 -08:00
parent 3edc9925e0
commit 0544c1d391
9 changed files with 196 additions and 284 deletions

View File

@@ -60,15 +60,12 @@ class NotebookEditorCellEditBuilder implements vscode.NotebookEditorEdit {
});
}
replaceCellOutput(index: number, outputs: (vscode.NotebookCellOutput | vscode.CellOutput)[]): void {
replaceCellOutput(index: number, outputs: vscode.NotebookCellOutput[]): void {
this._throwIfFinalized();
this._collectedEdits.push({
editType: CellEditType.Output,
index,
outputs: outputs.map(output => {
if (!extHostTypes.NotebookCellOutput.isNotebookCellOutput(output)) {
output = extHostTypes.NotebookCellOutput._fromOld(output);
}
return extHostConverter.NotebookCellOutput.from(output);
})
});