From b1cb5c216c17fffbc6eee5c8751fe312bc156903 Mon Sep 17 00:00:00 2001 From: Aaron Munger Date: Tue, 5 Nov 2024 13:25:10 -0800 Subject: [PATCH] dont execute history items (#24394) fix https://github.com/microsoft/vscode-python/issues/24393 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b81d4a083a15..9f1caf862c56 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" + "when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.repl' && !inlineChatFocused && !notebookCellListFocused" }, { "command": "python.execInInteractiveWindowEnter", "key": "enter", - "when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.interactive' && !inlineChatFocused" + "when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.interactive' && !inlineChatFocused && !notebookCellListFocused" }, { "command": "python.refreshTensorBoard",