Skip to content

Commit a12316c

Browse files
Fix shift-enter command issues (#4607)
Resore terminal menu command when data science owns selection Shift-enter runs the whole line when no cells and no selection
1 parent 4d8ca68 commit a12316c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

news/2 Fixes/4207.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
If selection is being sent to the Interactive Windows still allow for context menu commands to run selection in terminal or run file in terminal

news/2 Fixes/4604.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
When sending selection to the Interactive Window nothing selected should send the entire line

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
{
111111
"command": "python.datascience.execSelectionInteractive",
112112
"key": "shift+enter",
113-
"when": "editorFocus && editorHasSelection && editorLangId == python && !findInputFocussed && !replaceInputFocussed && python.datascience.ownsSelection && python.datascience.featureenabled"
113+
"when": "editorFocus && editorLangId == python && !findInputFocussed && !replaceInputFocussed && python.datascience.ownsSelection && python.datascience.featureenabled"
114114
},
115115
{
116116
"command": "python.datascience.runcurrentcelladvance",
@@ -435,15 +435,15 @@
435435
{
436436
"command": "python.execSelectionInTerminal",
437437
"group": "Python",
438-
"when": "editorFocus && editorLangId == python && !python.datascience.ownsSelection"
438+
"when": "editorFocus && editorLangId == python"
439439
},
440440
{
441441
"command": "python.execSelectionInDjangoShell",
442442
"group": "Python",
443443
"when": "editorHasSelection && editorLangId == python && python.isDjangoProject"
444444
},
445445
{
446-
"when": "resourceLangId == python && !python.datascience.ownsSelection",
446+
"when": "resourceLangId == python",
447447
"command": "python.execInTerminal",
448448
"group": "Python"
449449
},

0 commit comments

Comments
 (0)