Skip to content

Commit 644db56

Browse files
author
Roo Code
committed
feat: add jump icon for newly created files
- Add jump icon to newFileCreated tool case in ChatRow.tsx - Matches existing pattern from readFile case for consistent UX - Allows users to quickly open newly created files - Fixes issue #5736
1 parent 5d1270a commit 644db56

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,20 @@ export const ChatRowContent = ({
496496
: t("chat:fileOperations.wantsToCreate")}
497497
</span>
498498
</div>
499+
<ToolUseBlock>
500+
<ToolUseBlockHeader
501+
onClick={() => vscode.postMessage({ type: "openFile", text: tool.path })}>
502+
{tool.path?.startsWith(".") && <span>.</span>}
503+
<span className="whitespace-nowrap overflow-hidden text-ellipsis text-left mr-2 rtl">
504+
{removeLeadingNonAlphanumeric(tool.path ?? "") + "\u200E"}
505+
</span>
506+
<div style={{ flexGrow: 1 }}></div>
507+
<span
508+
className={`codicon codicon-link-external`}
509+
style={{ fontSize: 13.5, margin: "1px 0" }}
510+
/>
511+
</ToolUseBlockHeader>
512+
</ToolUseBlock>
499513
<CodeAccordian
500514
path={tool.path}
501515
code={tool.content}

0 commit comments

Comments
 (0)