Closed fabiospampinato closed 5 years ago
@fabiospampinato maybe you changed the language mode of the editor in the running session?
@bpasero I'm pretty sure I didn't 🤔
Steps?
It looks like VSC is trying to infer the filetype when I open the file, but it doesn't always work, the only way I can see the icon change reliably is if the file is already open when I reload the window.
@fabiospampinato wanna investigate and look why it is not working?
@bpasero not really, I've quite a lot on my plate right now, and this issue was only a very minor annoyance for me.
Ok, same here. This issue can probably be explained by the fact that the language mode is only determined by the contents of the file (looking at the XML header) so we require the model to be loaded for the icon to be looked up.
Currently no plans to fix this though as we do not want to load models for each icon.
I've no idea how to reproduce this, but I got this:
Then I reloaded the window and it became: