]> git.eshelyaron.com Git - emacs.git/commit
Change rust language server to rust-analyzer
authorStefan Kangas <stefankangas@gmail.com>
Fri, 14 Jan 2022 12:03:44 +0000 (13:03 +0100)
committerStefan Kangas <stefankangas@gmail.com>
Mon, 17 Jan 2022 21:16:49 +0000 (22:16 +0100)
commit3aeebe8186dfcc7e4a6df638bd44b4740895427f
tree3ecc8a6a351dbbab61551505f7b4c0819e30c417
parentbc058058872a13e6ee3d9a04c6d37f2bba5a4852
Change rust language server to rust-analyzer

rust-analyzer is the officially blessed Language Server for Rust:
https://github.com/rust-lang/rfcs/pull/2912

Also drop the special support code for RLS.

* eglot.el (eglot-server-programs): Add rust-mode language server
"rust-analyzer" and prefer it to the older "rls".
(eglot-rls, jsonrpc-connection-ready-p)
(eglot-handle-notification): Delete special support for "rls".

* eglot-tests.el (rls-analyzer-watches-files)
(rls-analyzer-hover-after-edit): Rename to ...
(rust-analyzer-watches-files)
(rust-analyzer-hover-after-edit): ... this.  Update tests to work
with rust-analyzer.
* README.md: Update references for RLS to point to rust-analyzer.
* NEWS.md: Announce above change.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/803
lisp/progmodes/eglot.el