-
Notifications
You must be signed in to change notification settings - Fork 28.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
Save electron-main state periodically to prevent loss on shutdown or reboot #87171
Comments
@bpasero At your convenience, please take a look as this one is (possibly) linked to a previous issue of yours, Thanks. |
@umdstu are you logging out of windows while VSCode is running? this will terminate the process and leave us no normal shutdown sequence. In order to restore window state, we currently require a clean shutdown. |
Ah yes, I absolutely am logging out while VSCode is running. How does that work though if I have to close each of the windows manually, then there would be no 'state' to return to once logged back in, right? I will have to test but I think it would just open the last window you closed. The problem with manually closing windows is that it forces you to save untitled/unsaved tabs/files (Scratch pads for me); maybe i'm missing a setting though. This works well when you don't manually close the windows. Would #12058 make this any better? |
Ok thanks for the info on Exiting all at once, and thanks for updating the issue to reflect the actual situation here! |
I pushed a change to save the window state also when any window looses focus (e.g. when reaching to the Windows signout button it should persist). I hope this strategy resolves the issue properly, maybe you could verify in tomorrows insider build. |
Existing Issue (Locked): #207
Steps to Reproduce:
~~ You now have two Windows / Folders open ~~
~~ Only one of the two Windows from before will open.~~
My understanding was that #207 was suppose to add/fix this. It's also a bit confusing as there have been multiple configuration settings discussed, to include:
However, only the latter is identified as an known configuration setting. Does "window.restoreWindows" not apply to Windows > Signout ? Is there a different setting that does?
Does this issue occur when all extensions are disabled?: Yes/No
The text was updated successfully, but these errors were encountered: