Skip to content

Commit a80cd50

Browse files
committed
Update the file review process to incorporate newly prepared files immediately after displaying a diff, and clean up icon button hover styles
1 parent 3e98dff commit a80cd50

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎packages/ui/src/components/editor/panel/IconButton/IconButton.module.scss‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
}
1616

1717
&:hover {
18-
color: inherit;
1918
background-color: var(--vscode-toolbar-hoverBackground);
2019
text-decoration: none;
2120
}

‎packages/vscode/src/commands/apply-chat-response-command/utils/preview/preview.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ export const preview = async (params: {
146146

147147
const result = await show_diff_with_actions(review_item.file)
148148

149+
if (prepared_files.length > review_items.length) {
150+
const new_prepared_files = prepared_files.slice(review_items.length)
151+
for (const pf of new_prepared_files) {
152+
review_items.push({
153+
file: pf,
154+
status: 'pending'
155+
})
156+
}
157+
}
158+
149159
review_item.file.reviewable_file.content = result.new_content
150160
const { decision } = result
151161

0 commit comments

Comments
 (0)