I find it really short sighted to say the IDE should never destroy code. Yes in an ideal world. However we have VCS to ensure our code is never lost. Before and after any refactoring you should be checking in.
If the IDE got it wrong I'd revert and submit a bug report, no biggie.
I want my IDE to be stable, fast and do as much for me as possible.