Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances the chat “thinking/working” UI by surfacing aggregated edit diff stats (+/-) from edit code-block pills directly in the thinking header, improving visibility of edit impact while the list is collapsed.
Changes:
- Plumbs an aggregated diff-change event from
ChatMarkdownContentPartup intoChatThinkingContentPart. - Renders the aggregated
+added/-removedcounts in the thinking header and styles them via CSS. - Adds diff-change emission from edit code-block pills and aggregates those stats per markdown part.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts | Passes markdown-part diff-change event into thinking-part item appends. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatThinkingContent.css | Adds styling for the new diff stats segment in the thinking header. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.ts | Aggregates diff stats per appended markdown part and renders totals in the finalized title. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.ts | Emits aggregated diff stats from edit pills and wires pill diff updates into the aggregation. |
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatMarkdownContentPart.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.ts
Show resolved
Hide resolved
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatThinkingContentPart.ts
Outdated
Show resolved
Hide resolved
roblourens
approved these changes
Mar 26, 2026
mjbvz
pushed a commit
to mjbvz/vscode
that referenced
this pull request
Mar 26, 2026
* add diffs to thinking headers * address comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds diffs from code blocks into the header for better edit visibility