Skip to content

Commit b7f40c2

Browse files
NaccOlldaniel-lxs
authored andcommitted
feat: add detailed mode descriptions for checkpointDiff options and update tooltip text in ChatRow
1 parent 118a471 commit b7f40c2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/core/checkpoints/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@ export type CheckpointDiffOptions = {
273273
ts?: number
274274
previousCommitHash?: string
275275
commitHash: string
276+
/**
277+
* from-init: Compare from the first checkpoint to the selected checkpoint.
278+
* checkpoint: Compare the selected checkpoint to the next checkpoint.
279+
* to-current: Compare the selected checkpoint to the current workspace.
280+
* full: Compare from the first checkpoint to the current workspace.
281+
*/
276282
mode: "from-init" | "checkpoint" | "to-current" | "full"
277283
}
278284

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ export const ChatRowContent = ({
974974
const viewFullDiffBtn =
975975
hasCheckpoint && isLast && !isStreaming ? (
976976
<div style={{ marginTop: 16, display: "flex", justifyContent: "flex-start" }}>
977-
<StandardTooltip content={t("chat:showChangesFromInit")}>
977+
<StandardTooltip content={t("chat:checkpoint.menu.viewDiffFromInit")}>
978978
<VSCodeButton
979979
appearance="primary"
980980
className="flex-1 mr-[6px]"

0 commit comments

Comments
 (0)