rename NotebookCellOutput#outputs to #items

This commit is contained in:
Johannes Rieken
2021-05-28 17:57:50 +02:00
parent d9f1e27aeb
commit 4202ab071a
6 changed files with 37 additions and 34 deletions

View File

@@ -44,7 +44,7 @@ export class ExtHostCell {
};
}
private _outputs: extHostTypes.NotebookCellOutput[];
private _outputs: vscode.NotebookCellOutput[];
private _metadata: extHostTypes.NotebookCellMetadata;
private _previousResult: vscode.NotebookCellExecutionSummary | undefined;
@@ -102,9 +102,9 @@ export class ExtHostCell {
const output = this._outputs.find(op => op.id === outputId);
if (output) {
if (!append) {
output.outputs.length = 0;
output.items.length = 0;
}
output.outputs.push(...newItems);
output.items.push(...newItems);
}
}