Disallow navigating away from custom editors when retainContextWhenHidden is false and the backup has yet to run orfailed #113705
Labels
custom-editors
Custom editor API (webview based editors)
feature-request
Request for new features or functionality
Milestone
Repro 1 (backup not yet run):
CustomDocumentEditEvent
Repro 2 (backup failed):
CustomEditorProvider.backupCustomDocument
The custom editor provider will have no option but to load the last known backup or from disk, which differs from the previous state. Resulting in data loss☹️
For repro 1 #113507 would be ideal, but tab switching should be blocked and a
backupCustomDocument
request issued immediately (allow maybe ~1 second for it to compete?). For repro 2, navigating away from the tab should be blocked with a dialog to save, don't save or cancel.The text was updated successfully, but these errors were encountered: