Commit a3c1c03
authored
fix(amazonq): skip edit suggestion if applyDiff fail (#7693)
## Problem
applyDiff may fail and the consequence is the `newCode` to update become
empty string, thus deleting all users' code.
## Before
https://github.com/user-attachments/assets/6524bae2-1374-452d-bb4e-3ec6f865c258
## After
https://github.com/user-attachments/assets/75d5ed7a-6940-4432-a8d9-73c485afb2c3
## Solution
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.1 parent 3898ca2 commit a3c1c03
File tree
1 file changed
+6
-0
lines changed- packages/amazonq/src/app/inline/EditRendering
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| |||
0 commit comments