Reputation: 20404
New version of VS Code started restoring Terminal sessions from the last time it was used. How to override that behavior?
Upvotes: 19
Views: 9936
Reputation: 234
So your settings are visible in JSON or UI format. For JSON @Nenad Milosavljevic solution should do the job. I'll explain the UI one.
Open command palette (CTRL + SHIFT + P)
Select Features > Terminal > scroll down a little where you'll find the option and then uncheck the option "Integrated: Enable Persistent Sessions"
Upvotes: 16
Reputation: 20404
This config in settings.json
solved it:
"terminal.integrated.persistentSessionReviveProcess": "never"
Upvotes: 32
Reputation: 182941
Disable this setting:
Terminal > Integrated: Enable Persistent Sessions
It is enabled by default.
Upvotes: 10