Skip to content

Commit f59e31f

Browse files
authored
dont execute from outside the REPL (#24465)
fix #24464
1 parent 5f0279a commit f59e31f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,12 +1174,12 @@
11741174
{
11751175
"command": "python.execInREPLEnter",
11761176
"key": "enter",
1177-
"when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.repl' && !inlineChatFocused && !notebookCellListFocused"
1177+
"when": "!config.interactiveWindow.executeWithShiftEnter && isCompositeNotebook && activeEditor == 'workbench.editor.repl' && !inlineChatFocused && !notebookCellListFocused"
11781178
},
11791179
{
11801180
"command": "python.execInInteractiveWindowEnter",
11811181
"key": "enter",
1182-
"when": "!config.interactiveWindow.executeWithShiftEnter && activeEditor == 'workbench.editor.interactive' && !inlineChatFocused && !notebookCellListFocused"
1182+
"when": "!config.interactiveWindow.executeWithShiftEnter && isCompositeNotebook && activeEditor == 'workbench.editor.interactive' && !inlineChatFocused && !notebookCellListFocused"
11831183
},
11841184
{
11851185
"command": "python.refreshTensorBoard",

0 commit comments

Comments
 (0)