Skip to content

Open files are forgotten upon reload #801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Hartimer opened this issue Jun 22, 2019 · 7 comments · Fixed by #857
Closed

Open files are forgotten upon reload #801

Hartimer opened this issue Jun 22, 2019 · 7 comments · Fixed by #857
Labels
bug Something isn't working

Comments

@Hartimer
Copy link

  • code-server version: 1.1119-vsc1.33.1
  • OS Version: Debian Stretch

Description

The open files are not kept when you reload code server, instead it always loads the same set (memorized from long ago).

This worked at some point in time. I did not track the version where this started happening, but it was around the time service workers were introduced.

Steps to Reproduce

  1. Open some files
  2. Reload code server
  3. The files you had originally open will no longer be
@Hartimer Hartimer added the bug Something isn't working label Jun 22, 2019
@xeron56
Copy link

xeron56 commented Jul 3, 2019

Same for the cmd session, it's also forgotten upon reload

@deansheather
Copy link
Member

Try clearing your localStorage to prevent the really old files from opening. We used to store open files in localStorage, but since service workers can't access localStorage it never gets updated with the new files.

@hgw77
Copy link

hgw77 commented Jul 12, 2019

where can I find the localStorage?

@deansheather
Copy link
Member

Open up your browser console while connected to the IDE and do localStorage.clear(). Then kill code-server and close your browser tab, restart code-server and reopen your browser tab.

@hgw77
Copy link

hgw77 commented Jul 15, 2019

thank you, I was searching on the wrong place ;-)

@shahidul56 about persistent terminal session take a look here in combination with tmux it is working very well

@dejunzhou
Copy link

@deansheather, do we have any code change to fix this? where can we download the new binary without having to use the workaround suggested above?

@deansheather
Copy link
Member

web will be merged soon. There's no released binaries for the web branch yet, so you'll have to use the workaround. Sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants