title: Why can I sometimes not edit the local file when comparing two files in visual studio?
body: <p>In visual studio, when in pending changes for source control and I right click and &quot;Compare with Latest Version&quot;, sometimes I get a small padlock on the tab at the top and I am unable to edit the file.  It is the local file that I am trying to edit and this only happens intermittently.
  <a href="https://i.stack.imgur.com/8tQy1.png" rel="nofollow noreferrer">Image of padlock.</a></p>