Community
Participate
Working Groups
Sometimes when I try to undo edited text, it is undoing file resources. Perhaps it is fine feature to undo resources sometimes. But why doesn't it ask permission to undo file resources? It always asks confirmation if I want to delete file but it asks nothing when I undo resources by mistake.
Hmmm, isn't this related to the undo context switching between the editor one and the workbench one? PW
If your focus is in the editor and an undo is going to cause other side effects (for example, undoing a refactoring that affected other files), you will be prompted. If your focus is in the project explorer/package explorer/resource navigator, then undo applies to the operations there. You generally won't be prompted, although we have some cases where we prompt when it will cause a delete. What is the specific operation that you would expect to be prompted for? Is data being lost or was it just a surprise that something happened?
I have had this same problem. What happens is that the Project Explorer has focus, but you don't realize it because the difference between focused/unfocused panels is only a very subtle change to the tab bar style. You think the editor has focus and you do a ctrl-z to undo, but since the Project Explorer has focus, a copy/delete/create file is undone without any prompting, and you've unintentionally lost data. I think any undo that triggers a resource deletion should have a confirm dialog, regardless of which panel currently has focus. Changing the view to make the focus/unfocus panel more obvious would also help, but I imagine that should be a different ticket.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.