vscode: Git Explorer Color Highlight on git diffs does not "refresh" on changes, only highlights on start / restart
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version:
Version: 1.63.2
Commit: 899d46d82c4c95423fb7e10e68eba52050e30ba3
Date: 2021-12-15T09:37:28.172Z (1 wk ago)
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 20.6.0
- OS Version: MacOS Big Sur 11.6
Steps to Reproduce:
- Make a change in on any files that is inside a Git Repository
- I don’t see the yellow M, or highlight on the Explorer
- If I reload VSCode, I now do see the yellow M
- Similarly, if I delete the change I just made, the yellow M remains, indicating a diff in git (but there isn’t)
- If I reload VSCode, it goes away.
Seems like refresh on Explorer is broken, not the Git Diff part, since this feature (the blue bar indicating change in line in file) works perfectly
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (3 by maintainers)
I can happily confirm that I had this in my settings.json for some god awful reason.
Really not sure where it came from, maybe an extension in the past messed it up(?) Does running VSCode without extensions not reset settings.json(?). But after removing it, the feature works as expected (as it always have for years).
I am closing the issue.
Hey, I’m running into the same issue. Here is a video. I’m using VS Code 1.64.2 on a MacBook Pro (2021, M1 Pro) and macOS Monterey 12.2.
I think you can close the issue (I cannot do that as I’m not an author of this issue), as my issues are solved. Thank you very much for your help.
For anybody who has same issues:
files.watcherExclude
setting to the default.@lszomoru As I noticed that the
files.watcherExclude
includes whole git directory, I tried with default one by clickingReset Setting
in Settings window:And I validated that the git highlights are updated correctly (as shown in below, on
Also, 
1.65.2
):Stage Selected Ranges
works well:Here is the git logs after stage, and last two lines are added: