Skip to content

Commit f001597

Browse files
authored
Bug: Fix python.execInREPL stealing shift+enter (#23526)
Stop stealing shift+enter if editor is not focused and language is not python. Resolves: #23525
1 parent 975010e commit f001597

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
@@ -1118,12 +1118,12 @@
11181118
{
11191119
"command": "python.execInREPL",
11201120
"key": "shift+enter",
1121-
"when": "config.python.REPL.sendToNativeREPL && activeEditor != 'workbench.editor.interactive'"
1121+
"when": "config.python.REPL.sendToNativeREPL && activeEditor != 'workbench.editor.interactive'&& editorLangId == python && editorTextFocus && !jupyter.ownsSelection"
11221122
},
11231123
{
11241124
"command": "python.execREPLShiftEnter",
11251125
"key": "shift+enter",
1126-
"when": "activeEditor == 'workbench.editor.interactive' && config.interactiveWindow.executeWithShiftEnter"
1126+
"when": "activeEditor == 'workbench.editor.interactive' && config.interactiveWindow.executeWithShiftEnter && editorLangId == python"
11271127
},
11281128
{
11291129
"command": "python.execInREPLEnter",

0 commit comments

Comments
 (0)