Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
update git status of file overwritten via fs.writeFileSync #1314
I wrote a package which replaces the default TextEditor, by a graphical view in angularjs.
The problem is that when the file is updated by these 2 ways, it is not refreshed in the treeview (no git status).
If I use alt-tab or change the current ubuntu workspace and return to my atom window, then the treeview git status of the file is correctly changed.
Steps to Reproduce
I expect the file git status to be updated
The git status of the file isn't updated
Reproduces how often:
Thanks for the answer. I was already told to do that on atom's slack, and had already tried it.
I tried it again right now to ensure it doesn't work.
Each time I :
I tried with:
None of them worked. With any of them, if I use alt-tab to focus another window, and alt-tab to refocus the atom's window, then the file appears as modified in the treeview.
My project is currently compatible only for Linux, I cannot test it right now on Windows nor macOS. I could try to make it work in windows soon.
Just to clarify, from your issue report you mentioned you're on 1.35.1 - were you trying the different file system watcher settings from 1.35.1? If so, that won't include the work in atom/atom#19244, that's only available if you've built from source or use the nightly release for example.