-
Notifications
You must be signed in to change notification settings - Fork 30.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
Closing a dirty split editor (existing OR untitled) should not affect the initial editor #8983
Comments
This is interesting. In ST you can close the dirty one and the other one remains dirty. In Atom, they actually allow you to close a dirty one without being prompted. @stevencl @bgashler1 fyi, I do like our current behaviour and would not change it though. |
@stevencl and interestingly, VS also does not ask to save when closing the second dirty editor! maybe we should revisit this :)? |
Came across this after posting to uservoice: |
I remember initially suggesting not prompting if there is another dirty editor still open, but we hypothesized that users would be afraid they lost changes if there wasn't a prompt every time, no matter how many instances are open. @bpasero I think it would be good to revisit this in light of user feedback that's coming in. Let's put this on the UX agenda for when @stevencl is back. I know he will want to have a say in this. |
Yes, 👍 |
Thanks for the feedback. I agree, the current behaviour for closing split editors needs a little finessing. We have a couple of options:
Whichever option we choose, the behaviour should be the same regardless of whether or not the file exists on disk or if the user is editing an untitled file. |
Option 1 is closer to what it was before tabs I think: no matter what, if you closed an editor there would be no prompt, the file would remain open in the sidebar, right? |
UX meeting notes: |
Pushed a change to not ask for saving when the editor to close is opened in another group. This should work for all our actions that close editors (close all, close group, close editor, etc.) |
Steps to Reproduce:
There are two end states produced by these steps:
When an existing file is used
The other editor remains, but the text is reverted to the state on disc.
When a file is created
The other editor is also closed.
The text was updated successfully, but these errors were encountered: