fix(tui): summarize deleted patch files (#37134)
Co-authored-by: Kit Langton <kit.langton@gmail.com>
This commit is contained in:
co-authored by
Kit Langton
parent
35f14900ae
commit
36f8a1e6e5
@@ -2726,6 +2726,14 @@ function ApplyPatch(props: ToolProps) {
|
|||||||
value: pathFormatter.format(file.relativePath),
|
value: pathFormatter.format(file.relativePath),
|
||||||
}}
|
}}
|
||||||
part={props.part}
|
part={props.part}
|
||||||
|
>
|
||||||
|
<Show
|
||||||
|
when={file.type !== "delete"}
|
||||||
|
fallback={
|
||||||
|
<text fg={theme.diffRemoved}>
|
||||||
|
-{file.deletions} line{file.deletions !== 1 ? "s" : ""}
|
||||||
|
</text>
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<box paddingLeft={1}>
|
<box paddingLeft={1}>
|
||||||
<diff
|
<diff
|
||||||
@@ -2748,6 +2756,7 @@ function ApplyPatch(props: ToolProps) {
|
|||||||
removedLineNumberBg={theme.diffRemovedLineNumberBg}
|
removedLineNumberBg={theme.diffRemovedLineNumberBg}
|
||||||
/>
|
/>
|
||||||
</box>
|
</box>
|
||||||
|
</Show>
|
||||||
</BlockTool>
|
</BlockTool>
|
||||||
)}
|
)}
|
||||||
</For>
|
</For>
|
||||||
|
|||||||
Reference in New Issue
Block a user