in src/overlay/cell-listener.ts [67:78]
private _registerAddedCells(cellListChange: IObservableList.IChangedArgs<ICellModel>): void {
if (cellListChange.type === "add" || cellListChange.type === "remove") {
const cellModel = cellListChange.newValues[0] as ICellModel;
if (cellListChange.type === "add") {
this._registerCell(cellModel);
} else if (cellListChange.type === "remove") {
if (cellModel instanceof CodeCellModel) {
this._gatherModel.lastDeletedCell = new LabCell(cellModel);
}
}
}
}