If I open a file in Visual Studio Code, it seems to open it in a kind of temporary state. I can see it's in this state due to the tab title being italic:
In this case, if I open another file, for example by clicking on a different file in the sidebar, it opens it in the current tab instead of a new one. It's only by double-clicking on a file that the tab gets out of this temporary state.
So is there an option I can use to make sure all files are always open in a new tab? I think it used to work like this but I must have accidentally pressed some keyboard shortcuts and it went into this mode.