fix: show Preview as icon in turn changes summary - #328582
fix: show Preview as icon in turn changes summary#328582Akshat Anand (cipheraxat) wants to merge 7 commits into
Conversation
The per-row Preview control was shipped as a blue text link despite the original labelless/icon intent. Render Codicon.openPreview via ActionBar and style it as a toolbar icon. Fixes microsoft#328520
There was a problem hiding this comment.
Pull request overview
Fixes turn-change previews to display as icon-only actions while retaining accessible labels.
Changes:
- Adds the
openPreviewicon and icon-only rendering. - Applies standard toolbar icon styling.
- Adds unit and component-fixture coverage.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
chatTurnPills.fixture.ts |
Updates fixture documentation. |
chatTurnPills.test.ts |
Tests preview action creation and execution. |
chat.css |
Styles preview actions as toolbar icons. |
chatTurnPills.ts |
Extracts and creates icon-based preview actions. |
chatTurnPillsPart.ts |
Uses the extracted action factory. |
chatChangesSummaryPart.ts |
Renders row actions as icons without labels. |
|
Odoslané z iPhonuDňa 1. 8. 2026 o 22:35 užívateľ Copilot ***@***.***> napísal:
@Copilot commented on this pull request.
Pull request overview
Fixes turn-change previews to display as icon-only actions while retaining accessible labels.
Changes:
Adds the openPreview icon and icon-only rendering.
Applies standard toolbar icon styling.
Adds unit and component-fixture coverage.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
File
Description
chatTurnPills.fixture.ts
Updates fixture documentation.
chatTurnPills.test.ts
Tests preview action creation and execution.
chat.css
Styles preview actions as toolbar icons.
chatTurnPills.ts
Extracts and creates icon-based preview actions.
chatTurnPillsPart.ts
Uses the extracted action factory.
chatChangesSummaryPart.ts
Renders row actions as icons without labels.
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
|
there are merge conflicts, can you resolve them. Also please provide a before and after screenshot |
Resolve conflicts in chatTurnPillsPart imports, chat.css comment, and chatTurnPills fixture naming after main's external-preview refactor. Keep icon-only Preview row actions from this branch.
Requested on the PR review. Can drop these assets after merge.
|
Benjamin Christopher Simmonds (@benibenj) merge conflicts with Before / after for the Preview control in the expanded turn-changes list: BeforeBlue Preview text link (from #328520): AfterSame row, Happy to drop the |
…es-preview-icon # Conflicts: # src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatTurnPillsPart.ts # src/vs/workbench/contrib/chat/test/browser/widget/chatTurnPills.test.ts
Screenshots stay in the PR comment; they should not land in vscode.
|
Benjamin Christopher Simmonds (@benibenj) latest |


Summary
{ icon: false, label: true }with text-link CSS.Codicon.openPreviewas an icon-only row action (label kept for tooltip/aria) and style it like other toolbar icons.createTurnChangesPreviewActionsfor unit coverage. Previewable files (markdown and HTML) get the icon; other rows stay actionless.Fixes #328520
Test plan
chatTurnPills.test.ts— icon class, empty for non-previewable files, run opens via associations, HTML preview classification from main.mdfile → open-preview icon (not blue “Preview” text).ts) have no row actionBefore / after screenshots are in #328582 (comment)