From f0623aa1a97cd7d6f529980ff184a0c14084bd13 Mon Sep 17 00:00:00 2001 From: amunger Date: Mon, 18 Nov 2024 15:56:45 -0800 Subject: [PATCH] dont execute from outside the REPL --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 565148a1c5df..bdd49ae7c377 100644 --- a/package.json +++ b/package.json @@ -1174,12 +1174,12 @@ { "command": "python.execInREPLEnter", "key": "enter", - "when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.repl' && !inlineChatFocused && !notebookCellListFocused" + "when": "!config.interactiveWindow.executeWithShiftEnter && isCompositeNotebook && activeEditor == 'workbench.editor.repl' && !inlineChatFocused && !notebookCellListFocused" }, { "command": "python.execInInteractiveWindowEnter", "key": "enter", - "when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.interactive' && !inlineChatFocused && !notebookCellListFocused" + "when": "!config.interactiveWindow.executeWithShiftEnter && isCompositeNotebook && activeEditor == 'workbench.editor.interactive' && !inlineChatFocused && !notebookCellListFocused" }, { "command": "python.refreshTensorBoard",