forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
area-terminalbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugneeds spikeLabel for issues that need investigation before they can be worked on.Label for issues that need investigation before they can be worked on.
Description
Behaviour
The "Python: Run Python File" commands focus the terminal unnecessarily if the file cannot be run.
Steps to reproduce:
- Enable "Python › Terminal: Focus After Launch" (
python.terminal.focusAfterLaunch) - Create an unsaved Python file or a saved non-Python file
- Run the "Python: Run Python File" command
- You get the error message "The active file needs to be saved before it can be run" or "The active file is not a Python source file", but the terminal still becomes focused
Metadata
Metadata
Assignees
Labels
area-terminalbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugneeds spikeLabel for issues that need investigation before they can be worked on.Label for issues that need investigation before they can be worked on.