mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
feat: add jump-to-file navigation for file edit operations
When auto-approve is enabled, users could not easily navigate to edited files since the diff view was skipped. This change adds the onJumpToFile prop to CodeAccordian for editedExistingFile, appliedDiff, insertContent, and searchAndReplace operations, allowing users to click the external link icon to open the edited file. Fixes #10144
This commit is contained in:
parent
2863b1c3f1
commit
65f04e173e
1 changed files with 3 additions and 0 deletions
|
|
@ -438,6 +438,7 @@ export const ChatRowContent = ({
|
|||
isLoading={message.partial}
|
||||
isExpanded={isExpanded}
|
||||
onToggleExpand={handleToggleExpand}
|
||||
onJumpToFile={() => vscode.postMessage({ type: "openFile", text: "./" + tool.path })}
|
||||
diffStats={tool.diffStats}
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -476,6 +477,7 @@ export const ChatRowContent = ({
|
|||
isLoading={message.partial}
|
||||
isExpanded={isExpanded}
|
||||
onToggleExpand={handleToggleExpand}
|
||||
onJumpToFile={() => vscode.postMessage({ type: "openFile", text: "./" + tool.path })}
|
||||
diffStats={tool.diffStats}
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -510,6 +512,7 @@ export const ChatRowContent = ({
|
|||
isLoading={message.partial}
|
||||
isExpanded={isExpanded}
|
||||
onToggleExpand={handleToggleExpand}
|
||||
onJumpToFile={() => vscode.postMessage({ type: "openFile", text: "./" + tool.path })}
|
||||
diffStats={tool.diffStats}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue