diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2022-10-11 10:37:35 +0300 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2022-10-11 10:37:35 +0300 |
| commit | c867288d1b05bb7b4e069e3fd6c2d16bdc2bfd4b (patch) | |
| tree | b5e5b4572532856e412d15ec05337cc1e337a35e /src/tools/rust-analyzer/docs/dev/README.md | |
| parent | 518263d889818d16a09a8260f212f8ff4bf345f1 (diff) | |
| parent | 61504c8d951c566eb03037dcb300c96f4bd9a8b6 (diff) | |
| download | rust-c867288d1b05bb7b4e069e3fd6c2d16bdc2bfd4b.tar.gz rust-c867288d1b05bb7b4e069e3fd6c2d16bdc2bfd4b.zip | |
:arrow_up: rust-analyzer
Diffstat (limited to 'src/tools/rust-analyzer/docs/dev/README.md')
| -rw-r--r-- | src/tools/rust-analyzer/docs/dev/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/docs/dev/README.md b/src/tools/rust-analyzer/docs/dev/README.md index c7f152acc26..4ac75b4bbfd 100644 --- a/src/tools/rust-analyzer/docs/dev/README.md +++ b/src/tools/rust-analyzer/docs/dev/README.md @@ -98,7 +98,7 @@ After I am done with the fix, I use `cargo xtask install --client` to try the ne If I need to fix something in the `rust-analyzer` crate, I feel sad because it's on the boundary between the two processes, and working there is slow. I usually just `cargo xtask install --server` and poke changes from my live environment. Note that this uses `--release`, which is usually faster overall, because loading stdlib into debug version of rust-analyzer takes a lot of time. -To speed things up, sometimes I open a temporary hello-world project which has `"rust-analyzer.cargo.noSysroot": true` in `.code/settings.json`. +To speed things up, sometimes I open a temporary hello-world project which has `"rust-analyzer.cargo.sysroot": null` in `.code/settings.json`. This flag causes rust-analyzer to skip loading the sysroot, which greatly reduces the amount of things rust-analyzer needs to do, and makes printf's more useful. Note that you should only use the `eprint!` family of macros for debugging: stdout is used for LSP communication, and `print!` would break it. |
