Skip to content
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

Where is workspace "memory" stored and how to clear it? #42948

Closed
ffxsam opened this issue Feb 5, 2018 · 5 comments
Closed

Where is workspace "memory" stored and how to clear it? #42948

ffxsam opened this issue Feb 5, 2018 · 5 comments
Assignees

Comments

@ffxsam
Copy link

ffxsam commented Feb 5, 2018

I noticed VS Code memorizes which tabs are open when I re-open a workspace. Where is this information stored? (asking for Mac & Linux)

@bpasero
Copy link
Member

bpasero commented Feb 5, 2018

Windows: C:\Users\<userid>\AppData\Roaming\Code\Local Storage
Linux: /home/<userid>/.config/Code/Local Storage
macOS: /Users/<userid>/Library/Application Support/Code/Local Storage

@bpasero bpasero closed this as completed Feb 5, 2018
@ffxsam
Copy link
Author

ffxsam commented Feb 5, 2018

@bpasero is there a recommended way to clear out workspace cache other than just removing the files? (will that remove anything else unintentionally?)

@bpasero
Copy link
Member

bpasero commented Feb 6, 2018

@ffxsam open an empty window and type window.localStorage.clear() into dev console

@ffxsam
Copy link
Author

ffxsam commented Feb 6, 2018

Perfect, thanks!

@ffxsam
Copy link
Author

ffxsam commented Feb 7, 2018

Oddly enough, I was still left with a 3MB file (same size as before running localStorage.clear()). So I don't think that did the trick.

It would be nice if there were a command-line command, a la Atom's atom --clear-window-state.

@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants