Skip to content

Disallow sending selection to terminal when in a notebook editor cont… #14803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

IanMatthewHuff
Copy link
Member

…ext to not mess with shift-enter execution

microsoft/vscode-jupyter#328

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).
  • The wiki is updated with any design decisions/details.

…ext to not mess with shift-enter execution
@IanMatthewHuff IanMatthewHuff added the no-changelog No news entry required label Nov 23, 2020
@IanMatthewHuff
Copy link
Member Author

Hey Python folks. Had a change to your package.json proposed from the Jupyter side of things.

By default, notebooks use shift+enter to execute a notebook cell. In the new notebook UI this keybinding is directly owned by the VS Code team. By default if customers don't have the jupyter.ownsSelection setting on (this is the old setting to juggle shift+enter sending to the interactive window versus the terminal) then the Python send to terminal keybinding wins out and instead of the cell executing it sends just that line to the terminal, which we've been having native notebook users complain about already.

This isn't what customers expect, so I added to the when clause here to make execSelectionInTerminal not apply when the the editor focus is in a notebook editor. This key context is from the VS Code team, not the Jupyter extension so it will disallow this for all notebook editors. I believe this is what customers would expect by default and they could edit the keybinding if customers would like to still send chunks of notebook cells to the terminal. Can loop in PMs on this as well if we are worried about that scenario.

@IanMatthewHuff IanMatthewHuff merged commit 735516a into microsoft:main Nov 23, 2020
@IanMatthewHuff IanMatthewHuff deleted the dev/ianhu/shiftEnterNotebook branch November 23, 2020 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants