Open JoshCheek opened 9 years ago
Notes I had locally about this:
Preempt file watching to avoid the issue of it seeing the SiB rewrite and freaking out
this would be done with file events
possibly removing the file from the list of things being watched altogether, and then readding it.
test:
edit file
in dev console, disable
independently change the file
nothing should happen
enable
edit
should see the update
When SiB evaluates a saved file, Atom sees this and tries to update it. Then SiB puts the file back into place, and Atom sometimes freaks out. Either way it's jarring for a user, I'm sure.
There are now events you can hook into. Perhaps it is possible to preempt other events when that particular file changes, or perhaps it's possible to remove it from the set of watched events, and then later add it back in.