My ui-lovelace file is empty. Is there some way to get the content back from HA?

I found a proble today. When I opened my ui-lovelace.yaml, it was empty. I do not know how this happened. I use Visual Studio code. I also checked with a text editor and also empty. Other .yaml files are not empty.

My lovelace frontend still runs. Probably because I did not refresh Lovelace.

Is there some way to get the working lovelace config back from HA? I can get my backup back, but that would be a big step back after some changes I made recently.

Hope someone can help

are you using yaml mode for lovelace or manage it thru the gui?

I’m in yaml mode.

sorry then i’m not sure unless there is some way that vscode keeps some kind of versioning. i don’t use it so i really have no idea.