mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-25 05:23:12 +00:00
7643: Automatically detect the rustc-src directory (fixes #3517) r=matklad a=bnjbvr If the configured rustcSource was not set, then try to automatically detect a source for the sysroot rustc directory. I wasn't sure how to do it in the case of the project.json file, though. 7663: Tolerate spaces in nix binary patching r=matklad a=CertainLach If path to original file contains space (I.e on code insiders, where default data directory is ~/Code - Insiders/), then there is syntax error evaluating src arg. Instead pass path as str, and coerce to path back in nix expression Co-authored-by: Benjamin Bouvier <public@benj.me> Co-authored-by: Yaroslav Bolyukin <iam@lach.pw>
This commit is contained in:
commit
d50a37d3aa
8 changed files with 70 additions and 23 deletions
|
|
@ -105,7 +105,7 @@
|
|||
[[rust-analyzer.runnables.cargoExtraArgs]]rust-analyzer.runnables.cargoExtraArgs (default: `[]`)::
|
||||
Additional arguments to be passed to cargo for runnables such as tests or binaries.\nFor example, it may be `--release`.
|
||||
[[rust-analyzer.rustcSource]]rust-analyzer.rustcSource (default: `null`)::
|
||||
Path to the rust compiler sources, for usage in rustc_private projects.
|
||||
Path to the rust compiler sources, for usage in rustc_private projects, or "discover" to try to automatically find it.
|
||||
[[rust-analyzer.rustfmt.extraArgs]]rust-analyzer.rustfmt.extraArgs (default: `[]`)::
|
||||
Additional arguments to `rustfmt`.
|
||||
[[rust-analyzer.rustfmt.overrideCommand]]rust-analyzer.rustfmt.overrideCommand (default: `null`)::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue