This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
SharpDevelop doesn't notice file attribute changes #191
Open
Description
SD-1783, originally created on 12/2/2010 12:22:55 by Eusebiu Marcu
see http://community.sharpdevelop.net/forums/t/12336.aspx
Comment from Daniel Grunwald on 8/16/2011 14:29:23:
Eusebiu attempted a fix, but I had to revert it again (in commit
793e357).
The difficulty here is that there is one FileSystemWatcher per
OpenedFile, but the read-only icon is controlled by the individual view
contents. Eusebiu tried to do the notification using event handlers, but
this is prone to memory leaks as the OpenedFile may have a longer
lifetime than the view contents.
Also, file deletions can be troublesome, as many programs temporarily
delete the file, and then recreate it immediately. SharpDevelop must
ignore deletions without crashing.