Skip to content

Commit 0c661e0

Browse files
committed
fix fallback to native commands in non-deepnote notebooks
1 parent 483dd85 commit 0c661e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/notebooks/deepnote/deepnoteCellCopyHandler.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class DeepnoteCellCopyHandler implements IExtensionSyncActivationService
6767
if (editor && editor.notebook && editor.notebook.notebookType === 'deepnote') {
6868
await this.copyCellDown();
6969
} else {
70-
logger.warn('notebook.cell.copyDown intercepted for non-Deepnote notebook - using fallback');
70+
await commands.executeCommand('default:notebook.cell.copyDown');
7171
}
7272
}
7373

@@ -80,7 +80,7 @@ export class DeepnoteCellCopyHandler implements IExtensionSyncActivationService
8080
if (editor && editor.notebook && editor.notebook.notebookType === 'deepnote') {
8181
await this.copyCellUp();
8282
} else {
83-
logger.warn('notebook.cell.copyUp intercepted for non-Deepnote notebook - using fallback');
83+
await commands.executeCommand('default:notebook.cell.copyUp');
8484
}
8585
}
8686

@@ -93,7 +93,7 @@ export class DeepnoteCellCopyHandler implements IExtensionSyncActivationService
9393
if (editor && editor.notebook && editor.notebook.notebookType === 'deepnote') {
9494
await this.copyCellToClipboard({ isCut: false });
9595
} else {
96-
logger.warn('notebook.cell.copy intercepted for non-Deepnote notebook - using fallback');
96+
await commands.executeCommand('default:notebook.cell.copy');
9797
}
9898
}
9999

@@ -106,7 +106,7 @@ export class DeepnoteCellCopyHandler implements IExtensionSyncActivationService
106106
if (editor && editor.notebook && editor.notebook.notebookType === 'deepnote') {
107107
await this.copyCellToClipboard({ isCut: true });
108108
} else {
109-
logger.warn('notebook.cell.cut intercepted for non-Deepnote notebook - using fallback');
109+
await commands.executeCommand('default:notebook.cell.cut');
110110
}
111111
}
112112

@@ -119,7 +119,7 @@ export class DeepnoteCellCopyHandler implements IExtensionSyncActivationService
119119
if (editor && editor.notebook && editor.notebook.notebookType === 'deepnote') {
120120
await this.pasteCellFromClipboard();
121121
} else {
122-
logger.warn('notebook.cell.paste intercepted for non-Deepnote notebook - using fallback');
122+
await commands.executeCommand('default:notebook.cell.paste');
123123
}
124124
}
125125

0 commit comments

Comments
 (0)