Skip to content

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

@travistrue2008

Description

@travistrue2008

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)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insidersterminal-layoutIssue relating to resizing, scroll bar position, terminal dimensions, etc.verifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions