title: Source Control - Discard all changes deleted my xcworkspace and I can't fix it
body: <p>I was trying to undo changes on my project to the last committed Source Control state, however when I pressed 'Discard all changes' weird behaviour happened.</p>
  
  <p>The first time some of the files reverted whilst others didn't. So I pressed the button again and a blurb popped up saying something about needed to re-save the 'xcworkspace'. I pressed okay and half my files disappeared from the xcode file list on the left, really random files that hadn't been edited at all. So I decided to press revert again to see if I could get back to my original state, and now all my files have disappeared from the xcworkspace. So my screen now looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/wDOfV.png" alt="enter image description here"></p>
  
  <p>I have tried restoring the files from my trash (as this is where random ones have appeared) but the workspace is never restored. I use MapBox so I have 2 projects building in to 1 workspace, but the podfile will now not install. </p>
  
  <p>Can anyone give me advice on how to get this back to it's original state as I have been trying for a few hours but can't find any information.</p>