"Python › Terminal: Focus After Launch" is confusing #24396
Labels
feature-request
Request for new features or functionality
triage-needed
Needs assignment to the proper sub-team
Behaviour
With the default settings, running a Python file (using the "Python: Run File in Terminal" command) does not focus the terminal. This is fine.
I want to focus the terminal as soon as the Python file starts running (a reasonable use case for scripts that accept user input), so I enable "Python › Terminal: Focus After Launch" (
python.terminal.focusAfterLaunch
). The description makes sense to me:But the title is "Focus After Launch", and that is what it literally does: It launches the Python process, waits for it to exit (?!), and then focuses the terminal. Unless there's a valid use case that I'm missing, this setting should instead focus the terminal upon launch, not after.
Turns out there is a setting to do what I want (focus the terminal upon launch): "Terminal › Integrated: Focus After Run" (
terminal.integrated.focusAfterRun
).The naming and description are both confusing:
Terminal: Run Selected Text In Active Terminal
at all.Steps to reproduce:
python.terminal.focusAfterLaunch
) and/or "Terminal › Integrated: Focus After Run" (terminal.integrated.focusAfterRun
)The text was updated successfully, but these errors were encountered: