]> git.eshelyaron.com Git - emacs.git/commit
Support didchangewatchedfiles with dynamic registration
authorJoão Távora <joaotavora@gmail.com>
Mon, 14 May 2018 13:18:18 +0000 (14:18 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 14 May 2018 13:18:18 +0000 (14:18 +0100)
commitc511228cdaedbde8136847dbfe576ad1473d9aed
tree60d96216a83e95741ab521a0e17b5b30c159adae
parentd0e32ae98cd3680cf0b91e3f37a53a8e4fdea843
Support didchangewatchedfiles with dynamic registration

RLS uses this, presumaly for knowing about Cargo.toml changes and stuff.

* README.md: Update protocol compliance.

* eglot.el (filenotify): Require it.
(eglot--file-watches): New process-local var.
(eglot--process-sentinel): Kill all watches
(eglot--register-unregister): New helper.
(eglot--server-client/registerCapability): Simplify.
(eglot--server-client/unregisterCapability): New method.
(eglot--register-workspace/didChangeWatchedFiles)
(eglot--unregister-workspace/didChangeWatchedFiles): New
capability.
(eglot--client-capabilities): Update.
lisp/progmodes/eglot.el