From f59e31fa0ebf41b08149ac61479dd87a7fb54783 Mon Sep 17 00:00:00 2001 From: Aaron Munger Date: Mon, 18 Nov 2024 16:14:26 -0800 Subject: [PATCH] dont execute from outside the REPL (#24465) fix https://github.com/microsoft/vscode-python/issues/24464 --- 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",