You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dev/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ After I am done with the fix, I use `cargo xtask install --client` to try the ne
98
98
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.
99
99
I usually just `cargo xtask install --server` and poke changes from my live environment.
100
100
Note that this uses `--release`, which is usually faster overall, because loading stdlib into debug version of rust-analyzer takes a lot of time.
101
-
To speed things up, sometimes I open a temporary hello-world project which has `"rust-analyzer.cargo.noSysroot": true` in `.code/settings.json`.
101
+
To speed things up, sometimes I open a temporary hello-world project which has `"rust-analyzer.cargo.sysroot": null` in `.code/settings.json`.
102
102
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.
103
103
Note that you should only use the `eprint!` family of macros for debugging: stdout is used for LSP communication, and `print!` would break it.
Copy file name to clipboardExpand all lines: editors/code/package.json
+7-4
Original file line number
Diff line number
Diff line change
@@ -468,10 +468,13 @@
468
468
"default": false,
469
469
"type": "boolean"
470
470
},
471
-
"rust-analyzer.cargo.noSysroot": {
472
-
"markdownDescription": "Internal config for debugging, disables loading of sysroot crates.",
473
-
"default": false,
474
-
"type": "boolean"
471
+
"rust-analyzer.cargo.sysroot": {
472
+
"markdownDescription": "Relative path to the sysroot, or \"discover\" to try to automatically find it via\n\"rustc --print sysroot\".\n\nUnsetting this disables sysroot loading.\n\nThis option does not take effect until rust-analyzer is restarted.",
0 commit comments