If you open a file in VSCode, like so:
Previous VSCode versions, if the file is unmodified, you can open a new file and the tab will be replaced with the new