What is the meaning of the exclamation mark next to a file in VS Code?

Hi, I am trying to set up an automation from a blueprint, but see an exclamation mark next to the config file. I cannot find an explaination of what it indicates specifically, I assume something is wrong with the config file? But there is no indication of an error in the file itself. Nothin happens on mouseover or click on it.

What does the “!” tell me?

Thank you!

are you using source control?

I don’t know tbh. Where can I find out?

is this linked to your github account and the changes get pushed to your github repo?

no, it isn’t.

Then it’s meaningless to you. Those are notifications & icons that are for source control.

Thank you!

The above answers aren’t quite right. Notice that some of your files end with .yaml and others end with .yml. The only two that show an exclamation point are the only two that end with .yml. The exclamation point is just the icon VSCode uses for .yml files. You can confirm this by creating two empty files, one with each extension:

Screen Shot 2022-07-28 at 10.58.50 AM

The reason it shows the exclamation point for .yaml files but not for .yml files (instead showing the icon for unknown or plain text files) appears to be that the default configuration associates .yaml files (but not .yml files) with the custom “home-assistant” type, and the theme doesn’t have an icon for that type of file.

2 Likes

Good to know, usually those refer to source control. I’m guessing the addon must override those in some way then.

I’m not using source control in Home Assistant so I’m not sure, but in the default theme on the desktop version of VSCode the icons to the left are associated with the file type and source control information is shown to the right.

I am using source control, but not for home assistant. So I know what they mean when you have it connected to source control. ! typically means the file only exists locally. So it must be overridden in the addon.