-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
VSCode never remembers my previous session and doesn't reopen the tabs and project after restart. #36964
Comments
Was checking whether it reproduces without extensions, here's the result: When I opened code with |
@Tyriar this sounds a lot like the issue on Ubuntu 17.10 with the task bar shortcut. |
@mar-ses are you using Ubuntu Gnome? |
I'm using Ubuntu Unity. |
@bpasero Is there any fix for that issue you mentioned? I think I have it too. I'm using VS Code 1.19.3, running on Arch Linux + GNOME, and it will never remember my previous session if I open it through the shortcut, but it does if I invoke it through the console. I also have Edit: the session is restored via the shortcut only if I leave a file with unsaved changes. Via the console, it is always restored regardless of whether the changes were saved or not. So I'm leaving a dummy file with unsaved changes as a workaround for the time being. :/ |
One thing that happens for me is that I often modify files on two different machines, with the files kept synced automatically (i.e with something like MEGA/Dropbox etc...). If modify a file on one machine that was previously opened on the second machine, then when I try to reopen my session on the second machine, it won't reopen that file. That's actually one thing that I preferred in Sublime Text, it never had any issues reopening files, even if they had been modified and synced from another machine, and even if they were currently open it seemed to be able to update them or something if I'm not misremembering. Is this something that can be configured in VSCode? If not, I feel like it would be a useful addition. Perhaps not necessarily being able to modify and sync the files while they are simultaneously open on two machines, but at least so that if I modify them on one machine, the other machine will be able to reopen it (if it had been open on there previously of course). Also, I can't tell if this issue ended up being fixed for me, or if I just got around it by starting to use the in-built Workspaces. |
I am on Windows and have same problem. Workspace is not restored after I restart Windows. The project loads but all the tabs that were open before is now closed. Only happens if I restart windows. The project resides on a linux server, not local on Windows. Wonder if that's related. |
It also never re-opens my tabs after an update restarts vscode. It always opens one tab that shows release notes. This is soooo annoying as updates are very often. |
Same issue, it sometimes does it sometimes not, I can't find any specific trigger for it. Randomly, once in ~10 launches, VSC forgets every file open and disabled extensions. User settings are in place though. |
Steps to Reproduce:
|
I've a similar problem. VSCode opens the last folder on start, but not the opened files. It only shows the Welcome page. This doesn't happen always, sometimes it works like expected (opens last folder and restore files/tabs and even unsaved files). Are there any logs i can check, to see why VSCode fails to restore the session? |
Had the issue with a Blue Screen on Windows 10. VSCode opened the unsaved files however the saved files were not re-opened. |
On Windows 7, no network drives or anything.
Just get the screen saying "Show All Command Ctrl+Shift+P, Open File Ctrl+O, etc..." |
Issue also exists on/with: OS: Win10
Enabled Extensions: VS Code Settings :
|
I think I know what's going on in my case - it only works if I use Exit from the File menu. Closing all windows doesn't work. What doesn't help is that there is no default windows keybinding for Exit - I'm used to being able to Ctrl+Q from any app. I've now set one up, and it restores the windows properly. |
Closing as duplicate of #12058 |
Steps to Reproduce:
Can't reproduce it myself (on another computer with same extensions, settings and version (1.17)
Summary: Every time I open VSCode after computer shutdown, it fails to reopen my previous window. This includes the previous tabs, and the previously open project. Instead it always opens the same project that I opened with (in Explorer) a long time ago, and with only the Welcome tab and the User Settings tab.
"window.restoreWindows": "all", "window.openFoldersInNewWindow": "off"
Relevant extensions: Project Manager
I open vscode, and the current tabs are the Welcome and User Settings. The project that is loaded is an old project I opened once with Explorer. I open a new project in a new window (either with Project Manager, or by opening a new window and selecting a new project with the Explorer).
I open a bunch of tabs from that project (and tabs that aren't in that project). If I close VSCode now and reopen it, the tabs, project and everything comes back as expected.
If I restart my computer and open VSCode, my previous session is forgotten, and I have the Welcome tab and User Settings tab open, as well as the old project that I'm not interested in.
What I would expect is that with my settings, it reopens the previous session, with all its tabs and the project that was open at the time in Explorer. I have two laptops, this issue only affects one of them. The VSCode versions are 1.17.1 and 1.17.2 but this has happened in previous versions (1.16) as well. The only difference between the computers is that one has Ubuntu 16.10, the other (the one where the issue strikes) has Ubuntu 14.04 LTS.
Reproduces without extensions: Yes and No (see comment below). Opening without extensions fixed the problem of VSCode opening with the old project, as it now restores the correct project. However it doesn't restore the old tabs.
The text was updated successfully, but these errors were encountered: