Skip to content

Commit 55973b5

Browse files
committed
fix(webview): accept 'searchAndReplace' in ChatRow switch via string discriminant
1 parent 6be5714 commit 55973b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ export const ChatRowContent = ({
439439
style={{ color: "var(--vscode-foreground)", marginBottom: "-1.5px" }}></span>
440440
)
441441

442-
switch (tool.tool) {
442+
switch (tool.tool as string) {
443443
case "editedExistingFile":
444444
case "appliedDiff":
445445
// Check if this is a batch diff request

0 commit comments

Comments
 (0)