admin管理员组文章数量:1352147
On my macbook, I leave VSCode open pretty much 100% of the time and allow it to sleep when I'm not using it (fairly typical use?). Recently, when I wake my mac back up and go to VSCode, all of the open files are marked as modified even though they weren't. See: the little circle over what is usually the X to close the tab.
None of these files were modified before the macbook fell asleep. If I try to close them I'm met with a dialog asking if I want to save. If I try to save, I'm told it failed to save because the content of the file is newer.
It's as if I had a bunch of files open and then checked out an entirely different branch in git in which all of these files were modified. Except they weren't / aren't modified.
Does anyone know why VSCode / Mac thinks all of my open files were modified after sleeping? It's incredibly annoying to have to answer all of the confirmation dialogs each time.
This doesn't just happen in one project / directory. It's all of them which makes me think it's a system / OS-level foible.
本文标签: macosWhy does VSCode mark open files as modified after macbook falls asleepStack Overflow
版权声明:本文标题:macos - Why does VSCode mark open files as modified after macbook falls asleep? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743909014a2560043.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论