Skip to content

Commit b1c1751

Browse files
committed
fix: remove searchAndReplace case from ChatRow.tsx
1 parent 7d42021 commit b1c1751

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

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

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -437,39 +437,6 @@ export const ChatRowContent = ({
437437
</div>
438438
</>
439439
)
440-
case "searchAndReplace":
441-
return (
442-
<>
443-
<div style={headerStyle}>
444-
{tool.isProtected ? (
445-
<span
446-
className="codicon codicon-lock"
447-
style={{ color: "var(--vscode-editorWarning-foreground)", marginBottom: "-1.5px" }}
448-
/>
449-
) : (
450-
toolIcon("replace")
451-
)}
452-
<span style={{ fontWeight: "bold" }}>
453-
{tool.isProtected && message.type === "ask"
454-
? t("chat:fileOperations.wantsToEditProtected")
455-
: message.type === "ask"
456-
? t("chat:fileOperations.wantsToSearchReplace")
457-
: t("chat:fileOperations.didSearchReplace")}
458-
</span>
459-
</div>
460-
<div className="pl-6">
461-
<CodeAccordian
462-
path={tool.path}
463-
code={tool.diff}
464-
language="diff"
465-
progressStatus={message.progressStatus}
466-
isLoading={message.partial}
467-
isExpanded={isExpanded}
468-
onToggleExpand={handleToggleExpand}
469-
/>
470-
</div>
471-
</>
472-
)
473440
case "codebaseSearch": {
474441
return (
475442
<div style={headerStyle}>

0 commit comments

Comments
 (0)