File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ export class DeepnoteCellCopyHandler implements IExtensionSyncActivationService
171171 ( o ) =>
172172 new NotebookCellOutput (
173173 o . items . map ( ( i ) => new NotebookCellOutputItem ( i . data , i . mime ) ) ,
174- o . metadata
174+ o . metadata ? { ... o . metadata } : undefined
175175 )
176176 ) ;
177177 }
@@ -360,7 +360,7 @@ export class DeepnoteCellCopyHandler implements IExtensionSyncActivationService
360360
361361 // Check if clipboard contains our metadata marker
362362 if ( ! clipboardText . startsWith ( CLIPBOARD_MARKER ) ) {
363- logger . debug ( 'DeepnoteCellCopyHandler: Clipboard does not contain Deepnote cell metadata, skipping ') ;
363+ await commands . executeCommand ( 'default:notebook. cell.paste ') ;
364364 return ;
365365 }
366366
@@ -395,6 +395,7 @@ export class DeepnoteCellCopyHandler implements IExtensionSyncActivationService
395395 }
396396 } catch ( error ) {
397397 logger . error ( 'DeepnoteCellCopyHandler: Error parsing clipboard data' , error ) ;
398+ await commands . executeCommand ( 'default:notebook.cell.paste' ) ;
398399 }
399400 }
400401}
You can’t perform that action at this time.
0 commit comments