Skip to content

Commit 735516a

Browse files
IanMatthewHuffIan Huff
andauthored
Disallow sending selection to terminal when in a notebook editor context to not mess with shift-enter execution (#14803)
Co-authored-by: Ian Huff <[email protected]>
1 parent 4b3fcb6 commit 735516a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
{
9999
"command": "python.execSelectionInTerminal",
100100
"key": "shift+enter",
101-
"when": "editorTextFocus && editorLangId == python && !findInputFocussed && !replaceInputFocussed && !jupyter.ownsSelection"
101+
"when": "editorTextFocus && editorLangId == python && !findInputFocussed && !replaceInputFocussed && !jupyter.ownsSelection && !notebookEditorFocused"
102102
}
103103
],
104104
"commands": [

0 commit comments

Comments
 (0)