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

Scrollbar Doesn't Properly Reset After workbench.action.terminal.clear is Invoked #241401

Open
travistrue2008 opened this issue Feb 20, 2025 · 2 comments
Assignees

Comments

@travistrue2008
Copy link

travistrue2008 commented Feb 20, 2025

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.97.2
  • OS Version: Ubuntu 24.04

Summary

The workbench.action.terminal.clear command doesn't reset the scrollbar. It will correctly clear any previous output text, but it won't reset the scrollbar. The scrollbar still reacts to the scroll wheel on my mouse, but it doesn't scroll the text. However, the scrollbar will reset and scroll text properly once the current output is higher than the height of the terminal.

Before invoking the clear command:
Image

After invoking the clear command:
Image

Steps to Reproduce:

  1. Set a key binding for workbench.action.terminal.clear (I set mine to Ctrl+K)
  2. Fill terminal with output past the terminal's height so that there's a scrollbar
  3. Invoke the keybinding for workbench.action.terminal.clear (Ctrl+K)
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.97.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@travistrue2008
Copy link
Author

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.97.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

I updated VScode, and this issue still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants