Search code examples
gitvisual-studio-codesource-control-explorer

Source Control in VSCode is not refreshed automatically


I have updated Mac OS from Sierra to Monterey recently. Since then I have been facing some issues. One of them is in VSCode, when I do changes to the files the changes are not reflected in Source Control or Explorer until the refresh button is clicked manually in Source Control Tab. Can anyone help me out to solve this issue?

I have git 2.16 installed in my machine.
I have updated the version of VSCode and git.autorefresh is set to true.

Update 1:
I have reinstalled git. Now I have git 2.35.1. But still, the Source Control tab is not auto refreshed.


Solution

  • I had my project in /System/Volumes/Data/<my-folder-name>. After moving to /Users/<user-id>/, it started working. I even created a simple project in both the folders and tested them. Project in the former path faces the issue whereas the latter one doesn't face any issue. So I moved my work to the Users folder but I don't know the root cause.