title: Git hangs with "hint: Waiting for your editor to close the file..." when closing a commit message file in VSCode
body: <p>I'm running <code>git commit --amend</code> in the VSCode terminal and it pops up the commit message as a file in the VSCode editor window, and git says (in the terminal) <code>hint: Waiting for your editor to close the file...</code> but doesn't give input back yet.</p>
  
  <p>I amend my changes, then save and close the file. Then git just sits there in the terminal like it didn't know the editor window closed. Does VSCode cling onto the file handle longer than it needs to?</p>
  
  <p>It looks like it's not a <a href="https://stackoverflow.com/q/52195877/1075247">path issue</a> because I can start and finish the commit amend (note I'm using keyboard shortcuts to do my initial commits, so that doesn't open an editor - I only noticed this on an amend).</p>