Yeah it does auto-update changed files by default, but you can enable the option to highlight unsaved files more prominently (should be on by default really) so such cases for me always show up on my radar immediately. And then a simple Ctrl+Z reverts the file to whatever was in that editor-buffer beforehand.