mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
fix output on pastedcells
This commit is contained in:
parent
ed08a14111
commit
e54948aa8f
|
@ -532,7 +532,10 @@ export class NotebookService extends Disposable implements INotebookService, ICu
|
|||
source: cell.getValue(),
|
||||
language: cell.language,
|
||||
cellKind: cell.cellKind,
|
||||
outputs: cell.outputs.map(output => ({ ...output, /* paste should generate new outputId */ outputId: UUID.generateUuid() })),
|
||||
outputs: cell.outputs.map(output => ({
|
||||
outputs: output.outputs,
|
||||
/* paste should generate new outputId */ outputId: UUID.generateUuid()
|
||||
})),
|
||||
metadata: cloneMetadata(cell)
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue