Skip to content

Commit 74e1251

Browse files
committed
fix(webview): show diff stats in [ChatRow.tsx](webview-ui/src/components/chat/ChatRow.tsx) for edited/searchAndReplace/newFile; align tests
1 parent be85b08 commit 74e1251

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ export const ChatRowContent = ({
353353
switch (tool.tool) {
354354
case "editedExistingFile":
355355
case "appliedDiff":
356+
case "searchAndReplace":
356357
// Check if this is a batch diff request
357358
if (message.type === "ask" && tool.batchDiffs && Array.isArray(tool.batchDiffs)) {
358359
return (
@@ -397,6 +398,7 @@ export const ChatRowContent = ({
397398
isLoading={message.partial}
398399
isExpanded={isExpanded}
399400
onToggleExpand={handleToggleExpand}
401+
diffStats={tool.diffStats ?? undefined}
400402
/>
401403
</div>
402404
</>
@@ -501,6 +503,7 @@ export const ChatRowContent = ({
501503
isLoading={message.partial}
502504
isExpanded={isExpanded}
503505
onToggleExpand={handleToggleExpand}
506+
diffStats={tool.diffStats ?? undefined}
504507
onJumpToFile={() => vscode.postMessage({ type: "openFile", text: "./" + tool.path })}
505508
/>
506509
</div>

0 commit comments

Comments
 (0)