Skip to content
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

Improve run in terminal experience #15770

Open
luabud opened this issue Mar 24, 2021 · 2 comments
Open

Improve run in terminal experience #15770

luabud opened this issue Mar 24, 2021 · 2 comments
Labels
area-terminal feature-request Request for new features or functionality meta Issue that is tracking an overall project needs PR Ready to be worked on

Comments

@luabud
Copy link
Member

luabud commented Mar 24, 2021

Ideas (WIP):

  • Add option to enable run in a new terminal every time
  • Add option to provide args when running in terminal
  • Add option to configure how we execute everything via launch.json
@DEVNULLDNE
Copy link

I suggest that the "run selection in terminal", RSIT, command favor the currently selected terminal, if it has a name that's in a cofigurable list, something like python.terminal_names. python.terminal_names should support regex and the default should be something like: ['python*', 'ipython*', 'Python*']12.

If the focused terminal's name doesn't match python.terminal_names, then RSIT can configurably open a new terminal or use the terminal that it is linked to if it exists. New terminals might want to make a unique terminal name maybe "Python n", where n is just an incremental number. This might cause confusion though with new users who would think "Python 2" is running python 2 so perhaps some other convention.

Also, because python.terminal_names is regex, users would be free to rename the terminal something more descriptive like "Python super awesome project", don't hover, just click and believe.

Footnotes

  1. 'python' and 'ipython' happen automatically, for me at least, when running python or ipython through powershell, which causes the name of the terminal to be changed. 'Python', of course, is the name that RSIT gives the terminal it creates.

  2. please pretend that this list was just one awesome regex string instead of three pleb jank fests; thank you!

@karrtikr karrtikr added the needs PR Ready to be worked on label Aug 9, 2022
@adamerose
Copy link

Some ideas:

  • When running a Python file in a new terminal, name the terminal after the file not just a generic Python label. If you run one file multiple times or the name already exists for some other reason, just append (1), (2), etc. to the title.
  • +1 to Add option to enable run in a new terminal every time. It's annoying when I want to kick off 5 long running Python scripts in parallel and the run button does nothing because it keeps trying to run in the single terminal that is busy running the first script.
  • It would be good UX to have similar options and behavior on terminals & interactive windows. I think Interactive Window at the bottom of the screen vscode#127998 is a good step towards this. I'd also like to see the same run in a new window and name window after filename ideas implemented on the interactive windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-terminal feature-request Request for new features or functionality meta Issue that is tracking an overall project needs PR Ready to be worked on
Projects
None yet
Development

No branches or pull requests

5 participants