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

Terminal shouldn't be focused if file cannot be run #24382

Open
injust opened this issue Nov 4, 2024 · 1 comment
Open

Terminal shouldn't be focused if file cannot be run #24382

injust opened this issue Nov 4, 2024 · 1 comment
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@injust
Copy link

injust commented Nov 4, 2024

Behaviour

The "Python: Run Python File" commands focus the terminal unnecessarily if the file cannot be run.

Steps to reproduce:

  1. Enable "Python › Terminal: Focus After Launch" (python.terminal.focusAfterLaunch)
  2. Create an unsaved Python file or a saved non-Python file
  3. Run the "Python: Run Python File" command
  4. 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
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Nov 4, 2024
@injust
Copy link
Author

injust commented Nov 5, 2024

#24396 is the root cause of this. See that issue for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants