Skip to content

Add scrollbar to chat input#298875

Merged
roblourens merged 1 commit intomainfrom
roblou/unable-locust
Mar 3, 2026
Merged

Add scrollbar to chat input#298875
roblourens merged 1 commit intomainfrom
roblou/unable-locust

Conversation

@roblourens
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings March 3, 2026 04:58
@roblourens roblourens enabled auto-merge March 3, 2026 04:58
@roblourens roblourens self-assigned this Mar 3, 2026
@vs-code-engineering vs-code-engineering bot added this to the March 2026 milestone Mar 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the chat input widget to show a vertical scrollbar when the input content exceeds the max height (non-compact chat input), and adjusts padding/layout calculations so the new scrollbar doesn’t cause awkward spacing.

Changes:

  • Enable Monaco editor vertical scrollbar (vertical: 'auto') for non-compact chat input, while keeping it hidden for compact inputs.
  • Adjust chat input container/editor padding in CSS to remove extra right padding when the scrollbar is present.
  • Update getLayoutData() padding constants to reflect the new effective horizontal padding inside the input.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/chat/browser/widget/media/chat.css Removes right padding in the default chat input container/editor to accommodate a visible scrollbar; keeps compact padding behavior.
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Switches scrollbar behavior based on render style and adjusts layout padding constants to keep editor sizing consistent.

@roblourens roblourens merged commit 73b0506 into main Mar 3, 2026
24 checks passed
@roblourens roblourens deleted the roblou/unable-locust branch March 3, 2026 05:19
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

Successfully merging this pull request may close these issues.

3 participants