Skip to content

Commit f2755a9

Browse files
committed
Revert "fix(amazonq): skip edit suggestion if applyDiff fail (aws#7693)"
This reverts commit a3c1c03.
1 parent 15b4bc7 commit f2755a9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/amazonq/src/app/inline/EditRendering/imageRenderer.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ export async function showEdits(
2929
const { svgImage, startLine, newCode, origionalCodeHighlightRange } =
3030
await svgGenerationService.generateDiffSvg(currentFile, item.insertText as string)
3131

32-
// TODO: To investigate why it fails and patch [generateDiffSvg]
33-
if (newCode.length === 0) {
34-
getLogger('nextEditPrediction').warn('not able to apply provided edit suggestion, skip rendering')
35-
return
36-
}
37-
3832
if (svgImage) {
3933
// display the SVG image
4034
await displaySvgDecoration(

0 commit comments

Comments
 (0)