You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Closing a dirty split editor (existing OR untitled) should not affect the initial editor #8983
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.
changed the title [-]Closing a dirty editor - without saving - resets other editors with the same file[/-][+]Closing a dirty split editor should not affect the initial editor[/+]on Jul 9, 2016
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.
Benjamin Pasero (@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 Steven Clarke (@stevencl) is back. I know he will want to have a say in this.
changed the title [-]Closing a dirty split editor should not affect the initial editor[/-][+]Closing a dirty split editor (existing OR untitled) should not affect the initial editor[/+]on Jul 13, 2016
Thanks for the feedback. I agree, the current behaviour for closing split editors needs a little finessing.
We have a couple of options:
Don't prompt when the user closes a dirty split editor. Only prompt when the user closes the initial editor (when dirty).
Prompt, but preserve the state in the initial editor if the user chooses 'don't save'. We would need to change the text on the dialog so that it doesn't say that the changes will be lost.
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:
We agree that we should no longer prompt users to save when they close a dirty editor if there is another duplicate editor still open. However, we will wait until the August milestone to get one last team member’s feedback before making the change.
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.)
Activity
bpasero commentedon Jul 9, 2016
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.
Steven Clarke (@stevencl) Brad Gashler (@bgashler1) fyi, I do like our current behaviour and would not change it though.
[-]Closing a dirty editor - without saving - resets other editors with the same file[/-][+]Closing a dirty split editor should not affect the initial editor[/+]bpasero commentedon Jul 9, 2016
Steven Clarke (@stevencl) and interestingly, VS also does not ask to save when closing the second dirty editor! maybe we should revisit this :)?
zbjornson commentedon Jul 11, 2016
Came across this after posting to uservoice:
https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/15156702-don-t-prompt-to-save-when-closing-a-file-tab-that
bgashler1 commentedon Jul 12, 2016
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.
Benjamin Pasero (@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 Steven Clarke (@stevencl) is back. I know he will want to have a say in this.
bpasero commentedon Jul 13, 2016
Yes, 👍
[-]Closing a dirty split editor should not affect the initial editor[/-][+]Closing a dirty split editor (existing OR untitled) should not affect the initial editor[/+]mysticatea commentedon Jul 20, 2016
For what it's worth, I'm surprised that I have lost my editing...
stevencl commentedon Jul 20, 2016
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.
zbjornson commentedon Jul 20, 2016
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?
bgashler1 commentedon Jul 20, 2016
UX meeting notes:
We agree that we should no longer prompt users to save when they close a dirty editor if there is another duplicate editor still open. However, we will wait until the August milestone to get one last team member’s feedback before making the change.
bpasero commentedon Aug 9, 2016
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.)
Closing a dirty split editor (existing OR untitled) should not affect…