I use Code a lot, and I know that restoring apps' state is a core elementary OS design principle. But I find myself bugged by the fact that every time I open Code I am presented with a huge list of tabs containing all the files I've previously opened. Any other new file I open just gets added to the list of tabs, and I often find myself having to close a huge number of tabs. Take a look at the tabs bar in the below image:
Is there a way to configure Code to not restore the previously opened files? I used dconf-editor to explore Code's gsettings, but any change there is overwritten. I've also added Code to the Do not collect data for the following: apps list under the Security and Privacy Settings plug, all without any effect on Code's behavior.