We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1c12c6 commit 05b7caaCopy full SHA for 05b7caa
src/notebooks/deepnote/deepnoteCellCopyHandler.ts
@@ -8,7 +8,9 @@ import {
8
window,
9
NotebookCellData,
10
NotebookRange,
11
- env
+ env,
12
+ NotebookCellOutputItem,
13
+ NotebookCellOutput
14
} from 'vscode';
15
16
import { IExtensionSyncActivationService } from '../../platform/activation/types';
@@ -169,7 +171,9 @@ export class DeepnoteCellCopyHandler implements IExtensionSyncActivationService
169
171
170
172
// Copy outputs if present
173
if (cellToCopy.outputs.length > 0) {
- newCell.outputs = cellToCopy.outputs.map((output) => output);
174
+ newCell.outputs = cellToCopy.outputs.map(
175
+ (o) => new NotebookCellOutput(o.items.map((i) => new NotebookCellOutputItem(i.data, i.mime)))
176
+ );
177
}
178
179
// Insert the new cell
0 commit comments