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
"Save Duplicate" button does not work after unmounting source device #1818
While operating Code with "Save files when changed" preference off, a document was loaded from an unmountable source (USB stick). Some changes were made and then the source device unmounted before saving. Code showed a dialog with "Ignore" and "Save Duplicate" buttons. Pressing the latter just resulted in the dialog being shown again.
The only way to save the changes was to duplicate the tab into a new document and save that.
Steps to Reproduce
Turn off "Save files when changed"
Open a document on an unmountable device
Make some changes
Unmount the device
Observe dialog and effect of pressing "Save Duplicate"
Expected Behavior
Pressing "Save Duplicate" allows the changed document to be saved elsewhere.
changed the title [-]Save Duplicate button does not work after unmounting source device[/-][+]"Save Duplicate" button does not work after unmounting source device[/+]on Sep 8, 2026
The next release of Files should warn before unmounting a device in use by other processes but Code does not use the source device except when actually saving as it works with its own internal copy of the document so Files will still not warn in this case.
Activity
[-]Save Duplicate button does not work after unmounting source device[/-][+]"Save Duplicate" button does not work after unmounting source device[/+]jeremypw commentedon Sep 8, 2026
The next release of Files should warn before unmounting a device in use by other processes but Code does not use the source device except when actually saving as it works with its own internal copy of the document so Files will still not warn in this case.