VSCode always seems to remember my session and reopen the files and/or project that were open the last time I used it. It obviously behaves correctly when running it from th
If "window.restoreWindows": "none" not solve the problem, then try to run code as root -> sudo code --user-data-dir code files and restart code normally without root.