Skip to content

Commit e53968c

Browse files
authored
Re microsoft#209158. Output replacement might use legacy output id. (microsoft#218237)
1 parent 45db560 commit e53968c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function getOutputViewModelFromId(outputId: string, notebookEditor: INotebookEdi
9696
if (notebookViewModel) {
9797
const codeCells = notebookViewModel.viewCells.filter(cell => cell.cellKind === CellKind.Code) as CodeCellViewModel[];
9898
for (const cell of codeCells) {
99-
const output = cell.outputsViewModels.find(output => output.model.outputId === outputId);
99+
const output = cell.outputsViewModels.find(output => output.model.outputId === outputId || output.model.alternativeOutputId === outputId);
100100
if (output) {
101101
return output;
102102
}

0 commit comments

Comments
 (0)