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
Behaviour
The "Python: Run Python File" commands focus the terminal unnecessarily if the file cannot be run.
Steps to reproduce:
python.terminal.focusAfterLaunch
)