Skip to content

Commit 1795a85

Browse files
authored
Merge pull request #19220 from Shourya742/2025-02-24-nit-setup-doc
doc: remove nit from setup.md
2 parents 9528619 + 9526d8b commit 1795a85

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/book/src/contributing/setup.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@ Since rust-analyzer is a Rust project, you will need to install Rust. You can do
1717
**Step 04**: Install the language server locally by running the following command:
1818

1919
```sh
20-
cargo xtask install --server --code-bin code-insiders --dev-rel
20+
# Install only the language server
21+
cargo xtask install --server \
22+
--code-bin code-insiders \ # Target a specific editor (code, code-exploration, code-insiders, codium, or code-oss)
23+
--dev-rel # Build in release mode with debug info level 2
2124
```
2225

23-
In the output of this command, there should be a file path provided to the installed binary on your local machine.
26+
In the output of this command, there should be a file path provided to the installed binary on your local machine.
2427
It should look something like the following output below:
2528

2629
```
@@ -48,9 +51,12 @@ An example debugging statement could go into the `main_loop.rs` file which can b
4851
```rs
4952
eprintln!("Hello, world!");
5053
```
54+
Now, run the following commands to check the project and reinstall the server:
5155

52-
Now we run `cargo build` and `sh
53-
cargo xtask install --server --code-bin code-insiders --dev-rel` to reinstall the server.
56+
```sh
57+
cargo check
58+
cargo xtask install --server --code-bin code-insiders --dev-rel
59+
```
5460

5561
Now on Visual Studio Code Insiders, we should be able to open the Output tab on our terminal and switch to Rust Analyzer Language Server to see the `eprintln!` statement we just wrote.
5662

0 commit comments

Comments
 (0)