-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Last active window is not always restored when reopening #20770
Comments
Try: |
@bpasero I see the problem! There's a bug in the default behavior.
The "last folder you worked on" is not always accurate as VS Code sometimes closes the folders out of order from when they were last worked on. I assume closing "front to back" is intended, but sometimes background tasks/terminals/editors/etc. cause the front-most, last-worked-on window to close later than another window. To reproduce:
These repro steps are intermittent, but they can provide the behavior, e.g. I can open up another issue if that is more appropriate. |
@mherodev trying to distill your issue here, is it that the "last active window" is not properly restored when you have this setting on and you restart after a quit? |
Correct. The "last active window" will often be erroneously set to another window that manages to close before the true "last active window", so the wrong window is restored. |
There are two bugs actually:
|
Awesome, thanks @bpasero! |
Instead, the last VS Code window to be closed (typically the most-background window) is opened.
This behavior does not mimic the "Reload" behavior that newly installed extensions offer, which works as expected.
Apologies if this is a duplicate.
The text was updated successfully, but these errors were encountered: