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: #23525
  • Loading branch information
anthonykim1 authored May 30, 2024
1 parent 975010e commit f001597
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 f001597

Please sign in to comment.