It is looks like VS Code removed UTF-8 BOM
symbols.
About BOM: What's the difference between UTF-8 and UTF-8 with BOM?
You can open both files in any HEX editor (for example HxD
offline, also exists online hex editors) and look at difference in first bytes.
The same issue discussed here: https://gitlab.com/gitlab-org/gitlab/-/issues/29631