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
Drive GetModificationTime using watched file events #1487
Conversation
Doesn't it already send those notifications? |
Ok, it does actually. The Haddocks are a lie... |
Ok, so the notification I had in mind is |
BTW, I'm pretty sure vscode doesn't send file-changed notifications if the file is changed outside the editor. To support that case (other tools, git etc. can change files), I think it would be good to directly listen for file system events. This would also let us handle iface files and similar.
(There is also a slightly selfish reason for this, in that my editor doesn't send these events at all) |
It seems to be working for me. This is the message sent by VSCode on a git branch checkout:
|
BTW your client will continue to work with HLS, as long as it advertises its capabilities correctly. If it doesn't, we can add a flag |
Finally, I completely agree with the LSP spec on the topic of setting up our own file watches:
|
d94f566
to
fdad0bd
Compare
fdad0bd
to
2b6338e
Compare
Can I get a stamp please? |
This removes the need to poll the file system for source files (we still do it for interface files).
The implementation is remarkably simple, as it uses the watch notifications only to dirty the Shake node, but we still reuse the existing code to compute the result of the rule.
Closes #803