8089: Update info about Eclipse Corrosion r=matklad a=mickaelistria



Co-authored-by: Mickael Istria <mistria@redhat.com>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2021-03-18 15:58:05 +00:00 committed by GitHub
commit d5eb17ade5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,11 +384,9 @@ If the LSP binary is not available, GNOME Builder can install it when opening a
=== Eclipse IDE
Prerequisites: You have installed the <<rust-analyzer-language-server-binary,`rust-analyzer` binary>>.
Support for Rust development in the Eclipse IDE is provided by link:https://github.com/eclipse/corrosion[Eclipse Corrosion].
While it currently uses RLS as default, you can successfully configure it so the IDE will use `rust-analyzer` instead.
To do so, with an Eclipse IDE where Corrosion is installed, just go to __Window > Preferences > Rust__ and edit the __Path to Rust Language Server__ entry to reference the path to `rust-analyzer`.
If available in PATH or in some standard location, `rust-analyzer` is detected and powers editing of Rust files without further configuration.
If `rust-analyzer` is not detected, Corrosion will prompt you for configuration of your Rust toolchain and language server with a link to the __Window > Preferences > Rust__ preference page; from here a button allows to download and configure `rust-analyzer`, but you can also reference another installation.
You'll need to close and reopen all .rs and Cargo files, or to restart the IDE, for this change to take effect.
== Configuration