]> git.eshelyaron.com Git - emacs.git/commit
Do rust's rls hack properly with new class-based api
authorJoão Távora <joaotavora@gmail.com>
Tue, 22 May 2018 10:14:08 +0000 (11:14 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 22 May 2018 10:19:16 +0000 (11:19 +0100)
commit40d7fc6f043ee45549c1a7334d853f9a2c5ad231
tree91f838069688c54c3c65116155764fbb5a27ea9a
parent7e1b0cd1331e659b18b40e32af4f57fc089d5354
Do rust's rls hack properly with new class-based api

* eglot.el (eglot-server-ready-p): New API method.
(eglot-handle-request, eglot-handle-notification): New
defgeneric's.
(eglot--ready-predicates, eglot--server-ready-p): Remove.
(eglot--async-request): Call eglot-server-ready-p.
(eglot--request): Tweak comment.
(eglot--rls-probably-ready-for-p): Remove.
(eglot-server-ready-p eglot-rls): Adapts earlier
eglot--rls-probably-ready-for-p.
(eglot-handle-notification eglot-rls): Specialize to eglot-rls.
(eglot-rls): New eglot-lsp-server subclass.

* eglot-tests.el (auto-detect-running-server)
(auto-reconnect, basic-completions)
(hover-after-completions): Use eglot--interactive
lisp/progmodes/eglot.el