Skip to content

Commit 614c7dd

Browse files
author
Michael Lively
committed
fix conflict demo
1 parent 02cb45c commit 614c7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ipynb/src/notebookImagePaste.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function encodeBase64(buffer: Uint8Array, padded = true, urlSafe = false) {
124124
}
125125

126126
function buildMetadata(b64: string, cell: vscode.NotebookCell, filename: string, filetype: string, startingAttachments: any): { [key: string]: any } {
127-
const outputMetadata = {};
127+
const outputMetadata = { ...cell.metadata };
128128

129129
if (!outputMetadata.custom) {
130130
outputMetadata['custom'] = { 'attachments': { [filename]: { 'image/png': b64 } } };

0 commit comments

Comments
 (0)