-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Allow to reopen closed webviews #97285
Comments
This is intentional because there is no way currently a non-file based editor can signal that it can simply be restored. Check is here:
However this could possibly be improved by simply asking the editor input factory to serialize the editor and then bring it back, I can play around with that approach. @mjbvz not sure that makes sense to you, is it safe to serialize any webview via its factory and bring it back from that state? |
Upon second thought, I think my proposed idea is also not good because when an editor closes, assuming that you can serialize it may be risky. I think we would need some new infrastructure to support this scenario. |
@mjbvz with the change in 1eac96d, we are now asking the editor input factory to serialise an editor when it closes to support for opening it again. However it looks like webviews are not being serialized when they got closed, which maybe is for a good reason. If we cannot support this easily, then I suggest to close this feature, otherwise please try it out and see what is missing. |
Just want to throw my two cents in/use case in. I came here because I updated to 1.47.0-insider from 1.46.0-insider, the initial launch opened the Release Notes: 1.47.0-insider tab, I closed it by accident, then tried to open it again with Ctrl+Shift+T. Easy enough to get it back via Help -> Release Notes, but the expected actions did not work. Edit: #86864 Seems release notes are a different problem, my bad! |
Not enabled for the release notes at the moment but should now work for markdown previews |
Webviews appear to not restore via
Cmd+Shift+T
or running theReopen Closed Editor
command:This is also affected by pinned tabs but I assume it's related to the reopen command.
The text was updated successfully, but these errors were encountered: