don't mirror appending output items (#278458)

dont mirror appending output items
This commit is contained in:
Aaron Munger
2025-11-21 07:40:52 -08:00
committed by GitHub
parent 51eff8a47c
commit ffc4b9540b

View File

@@ -389,16 +389,7 @@ export class ChatEditingModifiedNotebookEntry extends AbstractChatEditingModifie
break;
}
case NotebookCellsChangeType.OutputItem: {
const index = getCorrespondingOriginalCellIndex(event.index, this._cellsDiffInfo.get());
if (typeof index === 'number') {
const edit: ICellEditOperation = {
editType: CellEditType.OutputItems,
outputId: event.outputId,
append: event.append,
items: event.outputItems
};
this.originalModel.applyEdits([edit], true, undefined, () => undefined, undefined, false);
}
// outputs are shared between original and modified model, so the original model is already updated.
break;
}
case NotebookCellsChangeType.Move: {