Skip to content

Commit 0674744

Browse files
committed
Reset the intelligent update status and update response history when discarding user changes in the preview
1 parent ee1d948 commit 0674744

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎apps/editor/src/commands/apply-chat-response-command/utils/preview/workspace-listener.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,15 @@ export const setup_workspace_listeners = (
657657
return
658658
}
659659

660+
if (file_to_discard.previewable_file.fixed_with_intelligent_update) {
661+
file_to_discard.previewable_file.fixed_with_intelligent_update = false
662+
update_response_history(
663+
panel_provider,
664+
created_at,
665+
file_to_discard.previewable_file
666+
)
667+
}
668+
660669
const proposed = file_to_discard.previewable_file.proposed_content
661670

662671
await vscode.workspace.fs.writeFile(

0 commit comments

Comments
 (0)