Skip to content

Failure to backup custom editors close veto message should list problem tabs #113627

Closed

Description

@Tyriar

If backup fails for a custom editor, it may be hard to know which editor is the issue.

image

This message could be made more friendly by listing the problem files much like a regular dirty save dialog:

image

I'm aware this ideally shouldn't happen, but it may be inevitable if the source of truth must be kept within the webview and retainContextWhenHidden is false. It wouldn't be a problem if we had #113507, but the dialog improvement would be welcome still for misbehaving extensions.

Activity

  1. added
    custom-editors
    on Dec 31, 2020
  2. added
    workbench-hot-exit
    feature-request
    on Jan 5, 2021
  3. added
    help wanted
    on Jan 5, 2021
  4. bpasero commented on Jan 5, 2021

    @bpasero
    Contributor

    I really like the suggestion to list the editors that are still dirty after an attempted backup.

    Code pointer:

    this.showErrorDialog(localize('backupTrackerBackupFailed', "One or more dirty editors could not be saved to the back up location."), backupError);

  5. removed
    help wanted
    on Jan 9, 2021
  6. added a commit that references this issue on Jan 9, 2021
    b020d58
  7. mjbvz commented on Jan 9, 2021

    @mjbvz
    Contributor

    To verify:

    1. In the custom editor sample
    2. In the PawDraw.backup method, throw an exception throw new Error('hairball')
    3. Run the extension, open and edit a paw draw file, then try exiting the window (note that hotexit is disabled by default in extension development mode. You can package and install the extension instead to test this)
  8. added
    verification-needed
    on Jan 9, 2021
  9. added a commit that references this issue on Jan 13, 2021
    68ba207
  10. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jan 13, 2021
  11. Tyriar commented on Jan 16, 2021

    @Tyriar
    ContributorAuthor

    Works 👍

    image

  12. added
    verified
    on Jan 16, 2021
  13. locked and limited conversation to collaborators on Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

custom-editorsfeature-requestinsiders-releasedverification-neededverifiedworkbench-hot-exit

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions