mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
don't mirror appending output items (#278458)
dont mirror appending output items
This commit is contained in:
@@ -389,16 +389,7 @@ export class ChatEditingModifiedNotebookEntry extends AbstractChatEditingModifie
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case NotebookCellsChangeType.OutputItem: {
|
case NotebookCellsChangeType.OutputItem: {
|
||||||
const index = getCorrespondingOriginalCellIndex(event.index, this._cellsDiffInfo.get());
|
// outputs are shared between original and modified model, so the original model is already updated.
|
||||||
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);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case NotebookCellsChangeType.Move: {
|
case NotebookCellsChangeType.Move: {
|
||||||
|
|||||||
Reference in New Issue
Block a user