Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable session restore message in vscode terminal

enter image description here

I don't want this message appearing session contents restored every time I open terminal. Why can't it restore and just doesn't show any msg or at least provide a option to do it.

like image 484
Vishal Sagar Avatar asked Sep 09 '25 17:09

Vishal Sagar


2 Answers

This feature can be disabled using the following two lines. Open "settings" -> Enter these commands to revert the VSCode behavior. Set them to never and false.

"terminal.integrated.persistentSessionReviveProcess": "never",
"terminal.integrated.enablePersistentSessions": false

enter image description here

like image 161
kibromhft Avatar answered Sep 12 '25 06:09

kibromhft


since there's currently no way to disable the message but keeping the functionality, executing clear command on the terminal startup is my current workaround.

for powershell, just add clear command to the profile.

like image 39
duydang Avatar answered Sep 12 '25 06:09

duydang