Skip to content

Closing a dirty split editor (existing OR untitled) should not affect the initial editor #8983

Closed

Description

@HookyQR
  • VSCode Version: 1.3.0
  • OS Version: OSX 10.11.5

Steps to Reproduce:

  1. Open (or create) a file.
  2. Split the editor.
  3. Add some text in either editor.
  4. Close either editor.
  5. Select "Don't save" when prompted.

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.

Activity

  1. bpasero commented on Jul 9, 2016

    @bpasero
    Contributor

    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.

  2. 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
  3. added
    feature-request
    ux
    workbench-tabs
    on Jul 9, 2016
  4. bpasero commented on Jul 9, 2016

    @bpasero
    Contributor

    Steven Clarke (@stevencl) and interestingly, VS also does not ask to save when closing the second dirty editor! maybe we should revisit this :)?

  5. bgashler1 commented on Jul 12, 2016

    @bgashler1
    Contributor

    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.

  6. bpasero commented on Jul 13, 2016

    @bpasero
    Contributor

    Yes, 👍

  7. 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
  8. mysticatea commented on Jul 20, 2016

    @mysticatea

    For what it's worth, I'm surprised that I have lost my editing...

    lost

  9. stevencl commented on Jul 20, 2016

    @stevencl
    Member

    Thanks for the feedback. I agree, the current behaviour for closing split editors needs a little finessing.

    We have a couple of options:

    1. Don't prompt when the user closes a dirty split editor. Only prompt when the user closes the initial editor (when dirty).
    2. 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.

  10. zbjornson commented on Jul 20, 2016

    @zbjornson

    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?

  11. bgashler1 commented on Jul 20, 2016

    @bgashler1
    Contributor

    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.

  12. bpasero commented on Aug 9, 2016

    @bpasero
    Contributor

    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.)

  13. added
    verification-needed
    and removed
    feature-request
    on Aug 16, 2016
  14. added
    verified
    and removed
    verification-needed
    on Aug 31, 2016
  15. locked and limited conversation to collaborators on Nov 18, 2017
  16. added a commit that references this issue on Sep 6, 2026
    4d107f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

uxverifiedworkbench-tabs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions