Skip to content

remove question truncation since we allow collapsing#311439

Open
meganrogge wants to merge 4 commits intomainfrom
merogge/expand-question
Open

remove question truncation since we allow collapsing#311439
meganrogge wants to merge 4 commits intomainfrom
merogge/expand-question

Conversation

@meganrogge
Copy link
Copy Markdown
Collaborator

@meganrogge meganrogge commented Apr 20, 2026

addresses #310886 in main

Otherwise, users cannot read the full question.

Copilot AI review requested due to automatic review settings April 20, 2026 18:27
@meganrogge meganrogge self-assigned this Apr 20, 2026
@meganrogge meganrogge added this to the 1.118.0 milestone Apr 20, 2026
@meganrogge meganrogge enabled auto-merge (squash) April 20, 2026 18:28
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 20, 2026

Screenshot Changes

Base: 3aeae51b Current: 257b179a

Changed (2)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Light
Before After
before after
editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after

Copy link
Copy Markdown
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

Adds an expand/collapse affordance to the Chat Question Carousel header so long question text isn’t permanently truncated, aligning behavior with other chat confirmation UI.

Changes:

  • Introduces an “expand question text” toggle button in the question header actions.
  • Implements truncation of long question titles with re-rendering when expanded/collapsed.
  • Resets expand state when navigating between questions and updates header action visibility.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.ts Adds expand/collapse UI + truncation logic for long question titles in the carousel header.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 5

…chatQuestionCarouselPart.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
roblourens
roblourens previously approved these changes Apr 20, 2026
Copy link
Copy Markdown
Member

@roblourens roblourens left a comment

Choose a reason for hiding this comment

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

I guess I wonder why we truncate it at all and make me click a button instead of just showing all the content. I definitely need to be able to read it all to answer the question, and 200 characters just isn't very much

@meganrogge
Copy link
Copy Markdown
Collaborator Author

Now that we have expand/collapse maybe we shouldn't truncate it

@meganrogge meganrogge changed the title add expand action for question part remove question truncation since we allow collapsing Apr 20, 2026
@meganrogge meganrogge requested a review from roblourens April 20, 2026 18:46
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