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

Setting restoreWindows to none causes Code to always open a blank window in addition to any old windows #237212

Open
matejdro opened this issue Jan 3, 2025 · 4 comments
Assignees

Comments

@matejdro
Copy link

matejdro commented Jan 3, 2025

Does this issue occur when all extensions are disabled?: Yes, it occurs on a completely fresh profile with everything disabled

  • VS Code Version: Code - OSS 1.96.0
  • OS Version: Linux 6.12.7-arch1-1.1

Steps to Reproduce:

  1. Set "window.restoreWindows": "none" config property
  2. Open VS Code
  3. Create a blank file tab
  4. Type something into that blank (but do NOT save)
  5. Close VS code
  6. Open VS code again

BUG: Two windows will open, one with the old file and a blank one

Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@matejdro
Copy link
Author

matejdro commented Jan 3, 2025

Same happens with code 1.96.2.

@bpasero
Copy link
Member

bpasero commented Jan 3, 2025

How do you open Code?

@matejdro
Copy link
Author

matejdro commented Jan 3, 2025

It does not seem to matter. Either using .desktop file, code from terminal or opening one of the associated files nets the above result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants