suggest build/rust-analyzer instead of build-rust-analyzer

This is better because
- `./x clean` also removes it, without needing extra text to explain it
- Does not need an extra .gitignore entry
This commit is contained in:
Tshepang Mbambo 2025-05-31 22:21:04 +02:00 committed by GitHub
parent e26fce98bb
commit eabc382733
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 5 deletions

View File

@ -91,7 +91,7 @@ for two reasons:
additional rebuilds in some cases.
To avoid these problems:
- Add `--build-dir=build-rust-analyzer` to all of the custom `x` commands in
- Add `--build-dir=build/rust-analyzer` to all of the custom `x` commands in
your editor's rust-analyzer configuration.
(Feel free to choose a different directory name if desired.)
- Modify the `rust-analyzer.rustfmt.overrideCommand` setting so that it points
@ -100,10 +100,7 @@ To avoid these problems:
copy of `rust-analyzer-proc-macro-srv` in that other build directory.
Using separate build directories for command-line builds and rust-analyzer
requires extra disk space, and also means that running `./x clean` on the
command-line will not clean out the separate build directory. To clean the
separate build directory, run `./x clean --build-dir=build-rust-analyzer`
instead.
requires extra disk space.
### Visual Studio Code