Skip to content

Allow Python "Run ..." commands to run in different terminals. #15324

@chrissyast

Description

@chrissyast

Environment data

  • VS Code version: 1.53.0
  • Extension version (available under the Extensions sidebar): 2021.1.502429796
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): Not sure
  • Value of the python.languageServer setting: "Jedi"

Example - https://github.com/chrissyast/python_test

  1. Open foo.py, click the "Run Python File in Terminal" button.
    Terminal window opens, runs foo.py
  2. Open a new terminal window
  3. Repeat step 1 for bar.py

Current behaviour
UI reverts back to the terminal from step 1, fails to start bar.py

Expected behaviour
bar/main.py is either opened in the active terminal window or a new terminal.

Note - not duplicate of #85 because the solution re-uses existing terminal. Also believe #488 was incorrectly marked as a duplicate of 85

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions