Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

monodevelop-7.7.0.805

With unsaved changes in the text editor, and the IDE crashes, on
re-starting the IDE, and opening the solution containing the file
that was unsaved, the editor was not showing the 'An autosave file
has been found for this file' message in the text editor. Instead the
text editor was showing a message saying that the file had been
changed outside the IDE. The Keep Changes button if clicked would
result in an empty file in the text editor and the file changes
would be lost.

The problem was that on loading the file with an associated autosave
file the last write time was being updated which caused the file
watcher to raise a file changed event. This then caused the
autosave message to be replaced with the file has been changed
outside the IDE message. The SdiWorkspaceWindow's SetTitleEvent
method would change the last write time of the file if the
text editor view indicated it was dirty. To avoid this when an
SdiWorkspaceWindow is created, either on opening a file, or by
docking the text editor view side by side in the IDE, the
SetTitleEvent now does not change the file's last write time.

Fixes VSTS #656105 - Autosave does not load autosaved file
Assets 2