File deletion when rejecting a change after moving a file into a newly created directory or modifying a suggestion and rejecting change (no confirmation of rejection button)

Had a situation where I requested a change, cursor created a new file in a sub-directory instead of modifying the correct file. But, I liked the change, so I dragged my real file into the newly created directory with the intention of rerunning apply to apply it to the full file context. In order to reapply, I had to reject the suggestion. This deleted the directory with my file in it which had live changes that were not committed to git.

I would have lost a lot of work if it weren’t for an open IDE page with the text still in memory, and I was able to rewrite the file. Overall my specific instance here was weird decision making on my part, but this could occur in many more innocent instances.

There are other instances of people losing a lot of work to this bug, and while I recognize that my report is redundant, I just wanted to highlight how easy it is to encounter.

Related:

Hey, thanks for sharing this.