# VS Code keeps older Julia sessions, but produces errors

**URL:** <https://discourse.julialang.org/t/vs-code-keeps-older-julia-sessions-but-produces-errors/71111>\
**Category:** VS Code\
**Created:** [November 7, 2021, 7:35pm UTC](https://discourse.julialang.org/t/vs-code-keeps-older-julia-sessions-but-produces-errors/71111 "2021-11-07T19:35:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)\
**Post date:** [November 7, 2021, 7:35pm UTC](https://discourse.julialang.org/t/vs-code-keeps-older-julia-sessions-but-produces-errors/71111/1 "2021-11-07T19:35:12Z")

</div>

Hello.

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:

```julia
ERROR: LoadError: IOError: connect: no such file or directory (ENOENT)
Stacktrace:
[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.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 7, 2021, 7:36pm UTC](https://discourse.julialang.org/t/vs-code-keeps-older-julia-sessions-but-produces-errors/71111/2 "2021-11-07T19:36:23Z")

</div>

Try disabling the `terminal.integrated.enablePersistentSessions` setting.

---

<div class="post-metadata">

**Author:** ![Juan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juan/32/7657_2.png) [@Juan](https://discourse.julialang.org/u/Juan)\
**Post date:** [November 7, 2021, 7:39pm UTC](https://discourse.julialang.org/t/vs-code-keeps-older-julia-sessions-but-produces-errors/71111/3 "2021-11-07T19:39:27Z")

</div>

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.
