mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Use a separate dir for r-a builds consistently in helix config
This commit is contained in:
parent
59cec72a57
commit
22069682ed
@ -1,3 +1,12 @@
|
|||||||
|
# This config uses a separate build directory for rust-analyzer,
|
||||||
|
# so that r-a's checks don't block user `x` commands and vice-verse.
|
||||||
|
# R-a's build directory is located in `build/rust-analyzer`.
|
||||||
|
#
|
||||||
|
# To build rustfmt and proc macro server for r-a run the following command:
|
||||||
|
# ```
|
||||||
|
# x b proc-macro-srv-cli rustfmt --stage 0 --build-dir build/rust-analyzer
|
||||||
|
# ```
|
||||||
|
|
||||||
[language-server.rust-analyzer.config]
|
[language-server.rust-analyzer.config]
|
||||||
linkedProjects = [
|
linkedProjects = [
|
||||||
"Cargo.toml",
|
"Cargo.toml",
|
||||||
@ -17,16 +26,18 @@ overrideCommand = [
|
|||||||
"x.py",
|
"x.py",
|
||||||
"check",
|
"check",
|
||||||
"--json-output",
|
"--json-output",
|
||||||
|
"--build-dir",
|
||||||
|
"build/rust-analyzer",
|
||||||
]
|
]
|
||||||
|
|
||||||
[language-server.rust-analyzer.config.rustfmt]
|
[language-server.rust-analyzer.config.rustfmt]
|
||||||
overrideCommand = [
|
overrideCommand = [
|
||||||
"build-rust-analyzer/host/rustfmt/bin/rustfmt",
|
"build/rust-analyzer/host/rustfmt/bin/rustfmt",
|
||||||
"--edition=2021"
|
"--edition=2021"
|
||||||
]
|
]
|
||||||
|
|
||||||
[language-server.rust-analyzer.config.procMacro]
|
[language-server.rust-analyzer.config.procMacro]
|
||||||
server = "build-rust-analyzer/host/stage0/libexec/rust-analyzer-proc-macro-srv"
|
server = "build/rust-analyzer/host/stage0/libexec/rust-analyzer-proc-macro-srv"
|
||||||
enable = true
|
enable = true
|
||||||
|
|
||||||
[language-server.rust-analyzer.config.rustc]
|
[language-server.rust-analyzer.config.rustc]
|
||||||
@ -47,4 +58,6 @@ overrideCommand = [
|
|||||||
"x.py",
|
"x.py",
|
||||||
"check",
|
"check",
|
||||||
"--json-output",
|
"--json-output",
|
||||||
|
"--build-dir",
|
||||||
|
"build/rust-analyzer",
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user