8

Yesterday a few files in one of my folders(git repository) have turned green and have a number next to them like so: enter image description here Can anybody tell me what this means? The repository is synced and up to date and that was the only possible thing I could assume it meant. Thanks!

Alex
  • 48,398
  • 16
  • 118
  • 112
khumps
  • 101
  • 1
  • 3
  • 7

3 Answers3

8

Those are the file explorer's problem decorations. They use colors and indicators to show which files have problems associated with them. The green here indicates there is a warning in the file, and the 1 indicates that there is one warning.

You can disable these by setting: "problems.decorations.enabled": false

Matt Bierner
  • 48,612
  • 13
  • 148
  • 182
  • 3
    Warnings would normally be yellow. Green means tracked and with changes since the last Git commit. It seems green overrides yellow. – underscore_d Jun 11 '20 at 15:22
6

This works well if you are using git. Doing a simple commit to your repo will take the warnings away.

I am using SVN external to VS code for a project and it became quite frustrating seeing files with issues and 'untracked'.

If anyone else in in this boat, set "git.enabled": false in your vs code workspace settings.

astro8891
  • 454
  • 2
  • 7
  • 17
1

I've been searching for this. I've finally figured out the answer.

Go to File>Preferences>Settings (also ctrl + ,)

Go tot he "Workspace" tab > Git. Set Decorations Enabled: Off Settings>Workspace>Git>Decorations Enabled: Off