Skip to content

Commit 34e3357

Browse files
NaccOlldaniel-lxs
authored andcommitted
feat: remove full diff view button
1 parent aef251f commit 34e3357

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

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

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { findMatchingResourceOrTemplate } from "@src/utils/mcp"
1616
import { vscode } from "@src/utils/vscode"
1717
import { removeLeadingNonAlphanumeric } from "@src/utils/removeLeadingNonAlphanumeric"
1818
import { getLanguageFromPath } from "@src/utils/getLanguageFromPath"
19-
import { Button, StandardTooltip } from "@src/components/ui"
19+
import { Button } from "@src/components/ui"
2020

2121
import { ToolUseBlock, ToolUseBlockHeader } from "../common/ToolUseBlock"
2222
import UpdateTodoListToolBlock from "./UpdateTodoListToolBlock"
@@ -129,7 +129,6 @@ export const ChatRowContent = ({
129129
onBatchFileResponse,
130130
isFollowUpAnswered,
131131
editable,
132-
hasCheckpoint,
133132
}: ChatRowContentProps) => {
134133
const { t } = useTranslation()
135134

@@ -971,25 +970,6 @@ export const ChatRowContent = ({
971970
}
972971
}
973972

974-
const viewFullDiffBtn =
975-
hasCheckpoint && isLast && !isStreaming ? (
976-
<div style={{ marginTop: 16, display: "flex", justifyContent: "flex-start" }}>
977-
<StandardTooltip content={t("chat:checkpoint.menu.viewDiffFromInit")}>
978-
<VSCodeButton
979-
appearance="primary"
980-
className="flex-1 mr-[6px]"
981-
onClick={() =>
982-
vscode.postMessage({
983-
type: "checkpointDiff",
984-
payload: { mode: "full", commitHash: "" },
985-
})
986-
}>
987-
{t("chat:checkpoint.menu.viewDiffFromInit")}
988-
</VSCodeButton>
989-
</StandardTooltip>
990-
</div>
991-
) : null
992-
993973
switch (message.type) {
994974
case "say":
995975
switch (message.say) {
@@ -1223,7 +1203,6 @@ export const ChatRowContent = ({
12231203
</div>
12241204
<div className="border-l border-green-600/30 ml-2 pl-4 pb-1">
12251205
<Markdown markdown={message.text} />
1226-
{viewFullDiffBtn}
12271206
</div>
12281207
</>
12291208
)
@@ -1464,7 +1443,6 @@ export const ChatRowContent = ({
14641443
</div>
14651444
<div style={{ color: "var(--vscode-charts-green)", paddingTop: 10 }}>
14661445
<Markdown markdown={message.text} partial={message.partial} />
1467-
{viewFullDiffBtn}
14681446
</div>
14691447
</div>
14701448
)

0 commit comments

Comments
 (0)