-
Notifications
You must be signed in to change notification settings - Fork 512
Jump to Bottom of Integrated Terminal When Running PowerShell #1257
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
Comments
Sounds like a reasonable request. Thanks for opening this! Question for you, does this work in the default Powershell/cmd/bash terminal in vscode or does it not scroll down only in the PowerShell Integrated Console? |
How can I test this? Whenever I run anything that's PowerShell it jumps to the PowerShell Integrated Console. |
Ah. Reading the issue again I see what you mean - ignore my question :) I missed this part:
|
This is not limited to PowerShell, the topic of this issue should be changed. And the issue should be moved to VSCode itself and not the powershell plugin. I am currently using VSCode with the Rust plugin on Linux and when I start a build it outputs the build log on the integrated terminal and once I have scrolled up to read the errors it will no longer autoscroll when I start a new build. This is extremely annoying. |
Workaround for PowerShell: |
If it makes sense for an extension to scroll to the bottom then it can call |
We probably want to invoke this when sending certain requests then. I think the big one is F8 (Run Selection). Which would probably be as simple as adding: let success = await commands.executeCommand('workbench.action.terminal.scrollToBottom'); |
This works well:
Want me to PR that? Also, should we put this behavior behind a setting? I would default it to scroll to bottom. Even though that is a change in behavior, it is the behavior most folks expect IMO. |
Looks good 🙂 |
System Details
$PSVersionTable
:Issue Description
Run a command in PowerShell that sends a bunch of output to the terminal window. Scroll up through the terminal window so that you can't see the bottom. Run a command in the editor window, and the terminal window doesn't move. Would love to have a setting (if not the default) that jumps to the bottom of the terminal window when it's not visible. I outlined how to do this (and referenced a StackOverflow question) about how to do this in Code with the Macros extension. https://jacobbenson.io/index.php/2018/03/27/jump-to-terminal-in-visual-studio-code-when-running-powershell/
Attached Logs
Follow the instructions in the README
about capturing and sending logs.
The text was updated successfully, but these errors were encountered: