-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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 scrollbar moves to the top after running command #243723
Comments
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.98.2. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding! |
Will monitor and reopen if this happens in 1.98.2 |
Still appears to be a problem in 1.98.2 |
a gif would help |
I'll grab one next time it happens, and I'll try find some ways to reliably trigger it. Running cargo or bacon in the terminal are things which sometimes make this happen. |
sounds good |
I've stumbled upon this and recorded a replication. I suspect it's something to do with ANSI escape code use / tty nesting breaking scroll position restoration under some circumstances. Replicates reliably for me using docker+alpine+htop. Commands:
issue.mp4 |
Yeah, I'm a maintainer of Ratatui (a rust TUI framework), and regularly run tuis in the terminal that set raw mode and enter the alternate screen, as well as move the cursor regularly. They generally reset the terminal back to cooked state and leave the alternate screen on exit. These are likely to be confounding factors, but I haven't yet seen a reproduceable problem at a time where I can make a note of it yet. Still watching though. |
/duplicate #224750 |
Type: Bug
Unsure of the exact steps, this happens intermittently (but frequently) after running various commands - e.g. cargo.
After a command runs, the scollbar is set to the top most location, but the location of the view isn't aligned to the scrollbar location. This makes it impossible to scroll up to see the previous information of the command without first scrolling all the way to the bottom or by hitting enter to make the terminal jump to the next line.
VS Code version: Code 1.98.1 (2fc07b8, 2025-03-10T15:38:08.854Z)
OS version: Darwin arm64 24.3.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (117)
(3 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: