-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Opening a file through the command line drops windows with no unsaved files #53798
Comments
Yes, this is a bug -- unfortunately, I don't think Microsoft feels that way.
See other issues: |
@purplekrayons Thanks for pointing out this has already been reported. I guess the best we could do is suggest approaches that would make it possible for us to be happy without breaking existing behavior, such as adding a new command line option Windows sessions would be a set of windows you can save the state into a file and have restored, very similar to workspaces, but at the windows level. With sessions, running Obviously the best would be to have full control over how sessions get restored. You should be able to configure it so that by default it either restores everything, or nothing. You should also be able to override this when launching the command line, so that opening a path from explorer/finder/cmd/terminal would either only open this single path or open this path and restore all your previous windows. I can tell my idea of windows sessions is definitely not polished, but it might be a starting point for further discussion on how to solve this so that both the existing behavior and our desired behavior can be achieved. |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines. Happy Coding! |
Steps to Reproduce:
code
from the command line"window.restoreWindows": "all"
setting so that on restart, all windows should opencode
code
from the command line againcode
code
but pass a file as argumentcode
only opened a window for this file and that all previous windows are not restored. Also observe that exitingcode
and running it again with no argument results in the previous windows not being restored.Might be related to #36964.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: