Disable File preview (Don’t replace file in the same tab)

File > Preferences > Settings > Workbench

Editor: Enable Preview