Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File overwriting #11

Open
JoshCheek opened this issue Jan 27, 2015 · 1 comment
Open

File overwriting #11

JoshCheek opened this issue Jan 27, 2015 · 1 comment

Comments

@JoshCheek
Copy link
Owner

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.

@JoshCheek
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant