Skip to content

Commit

Permalink
Bug: Fix python.execInREPL stealing shift+enter (#23526)
Browse files Browse the repository at this point in the history
Stop stealing shift+enter if editor is not focused and language is not
python.
Resolves: microsoft#23525
  • Loading branch information
anthonykim1 authored and DonJayamanne committed Jun 24, 2024
1 parent a4a9a3b commit 025d1a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1118,12 +1118,12 @@
{
"command": "python.execInREPL",
"key": "shift+enter",
"when": "config.python.REPL.sendToNativeREPL && activeEditor != 'workbench.editor.interactive'"
"when": "config.python.REPL.sendToNativeREPL && activeEditor != 'workbench.editor.interactive'&& editorLangId == python && editorTextFocus && !jupyter.ownsSelection"
},
{
"command": "python.execREPLShiftEnter",
"key": "shift+enter",
"when": "activeEditor == 'workbench.editor.interactive' && config.interactiveWindow.executeWithShiftEnter"
"when": "activeEditor == 'workbench.editor.interactive' && config.interactiveWindow.executeWithShiftEnter && editorLangId == python"
},
{
"command": "python.execInREPLEnter",
Expand Down

0 comments on commit 025d1a6

Please sign in to comment.