Skip to content

Comments

Revert extra line in chat input#297052

Merged
daviddossett merged 1 commit intomainfrom
daviddossett/revert-chat-input-extra-line
Feb 23, 2026
Merged

Revert extra line in chat input#297052
daviddossett merged 1 commit intomainfrom
daviddossett/revert-chat-input-extra-line

Conversation

@daviddossett
Copy link
Collaborator

@daviddossett daviddossett commented Feb 23, 2026

Reverts the 2-line minimum height on the chat input editor, replacing it with 8px of margin between the editor and toolbar for breathing room without adding a full extra line.

Changes:

- Remove INPUT_EDITOR_MIN_VISIBLE_LINES constant that forced 2-line minimum
- Revert input editor height to content-based sizing
- Add 8px margin-top on chat-input-toolbars for spacing between editor and toolbar
Copilot AI review requested due to automatic review settings February 23, 2026 18:03
@daviddossett daviddossett marked this pull request as ready for review February 23, 2026 18:04
@daviddossett daviddossett changed the title Revert extra line in chat input, add 8px toolbar spacing Revert extra line in chat input Feb 23, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 23, 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 reverts the 2-line minimum height introduced in PR #296390 and replaces it with CSS-based spacing between the chat input editor and its toolbar. The change allows the input editor to size naturally to its content without a forced minimum height, while still maintaining visual breathing room through toolbar margin.

Changes:

  • Remove the INPUT_EDITOR_MIN_VISIBLE_LINES constant and associated min-height calculation logic
  • Simplify input editor height calculation to use only content height (capped at max)
  • Add top margin to .chat-input-toolbars for spacing between editor and toolbar

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Removed INPUT_EDITOR_MIN_VISIBLE_LINES constant, unused EditorOption import, and min-height calculation logic from layout function
src/vs/workbench/contrib/chat/browser/widget/media/chat.css Added margin-top: 4px to .chat-input-toolbars to create spacing between editor and toolbar

@daviddossett daviddossett enabled auto-merge (squash) February 23, 2026 18:15
@daviddossett daviddossett merged commit 52dbada into main Feb 23, 2026
24 checks passed
@daviddossett daviddossett deleted the daviddossett/revert-chat-input-extra-line branch February 23, 2026 18:28
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.

2 participants