VS Code keeps older Julia sessions, but produces errors


I’m using VS Code 1.62.0 with Julia 1.6.3 and the VS extension 1.4.3 for Julia.

When I open VS Code I see several terminals, in multiple tabs.
It seems it keeps every session and tries to load all of them every time, adding a new one when I start VS Code again.

It says:
Session contents restored from 7/11/2021 at 4:54:42

But it also produces an error:

ERROR: LoadError: IOError: connect: no such file or directory (ENOENT)
[1] wait_connected(x::Base.PipeEndpoint)
   @ Sockets C:\Users\joe\AppData\Local\Programs\Julia-1.6.3\share\julia\stdlib\v1.6\Sockets\src\Sockets.jl:532
 [2] connect
   @ C:\Users\joe\AppData\Local\Programs\Julia-1.6.3\share\julia\stdlib\v1.6\Sockets\src\Sockets.jl:567 [inlined]
 [3] connect
   @ C:\Users\joe\AppData\Local\Programs\Julia-1.6.3\share\julia\stdlib\v1.6\Sockets\src\PipeServer.jl:97 [inlined]
 [4] serve(args::String; is_dev::Bool, crashreporting_pipename::String)
   @ VSCodeServer c:\Users\joe\.vscode\extensions\julialang.language-julia-1.4.3\scripts\packages\VSCodeServer\src\VSCodeServer.jl:99
 [5] top-level scope
   @ c:\Users\joe\.vscode\extensions\julialang.language-julia-1.4.3\scripts\terminalserver\terminalserver.jl:45
in expression starting at c:\Users\joe\.vscode\extensions\julialang.language-julia-1.4.3\scripts\terminalserver\terminalserver.jl:24

If I exit() the session it just keeps waiting forever, though I can interrupt it doing ^C.

How can I tell VS Code to forget all previous sessions and work just with one?
I don’t want to save anything.

Try disabling the terminal.integrated.enablePersistentSessions setting.


OK, thank you.
I will try and see if the problem persists.

What is the name of the temporal files used to save that sessions on the disk?
I would also like to delete them in case there are too many.