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
Failure to backup custom editors close veto message should list problem tabs #113627
If backup fails for a custom editor, it may be hard to know which editor is the issue.
This message could be made more friendly by listing the problem files much like a regular dirty save dialog:
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.
In the PawDraw.backup method, throw an exception throw new Error('hairball')
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)
Activity
bpasero commentedon Jan 5, 2021
I really like the suggestion to list the editors that are still dirty after an attempted backup.
Code pointer:
vscode/src/vs/workbench/contrib/backup/electron-sandbox/backupTracker.ts
Line 127 in 3b5cdf3
List still dirty files if backup fails
mjbvz commentedon Jan 9, 2021
To verify:
PawDraw.backupmethod, throw an exceptionthrow new Error('hairball')List still dirty files when backup fails (#114064)
Tyriar commentedon Jan 16, 2021
Works 👍