I have a git repository folder opened in VSCode. After hitting cmd+s to save a file I'm currently working on, this action often deletes all of the tracked files in the repository and adds them to be commited state. I always have to do hard reset of the repo to revert the changes which is not the best option especially in situations when I had several files changed.
I have no idea what the problem may be. I'm working on a mac, so I've been looking for similar issues with iCloud but I don't really know whether it is caused by iCloud, VSCode, git, or anything else in my system.
I tried to block the iCloud syncing by putting a .nosync
file to the directory but that didn't help.
Has anyone encountered similar issues? DO you have some ideas where should I look to find our more about it?