Update r-a config suggestions
The proc-macro server path is required for proc-macros to properly work in r-a when working on rustc. Pointing the sysroot to the stage0 one is more correct than using the system installed one.
This commit is contained in:
parent
6b01ad5a98
commit
21a8552e40
|
|
@ -36,6 +36,7 @@ you can write: <!-- date-check: apr 2022 --><!-- the date comment is for the edi
|
||||||
"./build/$TARGET_TRIPLE/stage0/bin/rustfmt",
|
"./build/$TARGET_TRIPLE/stage0/bin/rustfmt",
|
||||||
"--edition=2021"
|
"--edition=2021"
|
||||||
],
|
],
|
||||||
|
"rust-analyzer.procMacro.server": "./build/$TARGET_TRIPLE/stage0/libexec/rust-analyzer-proc-macro-srv",
|
||||||
"rust-analyzer.procMacro.enable": true,
|
"rust-analyzer.procMacro.enable": true,
|
||||||
"rust-analyzer.cargo.buildScripts.enable": true,
|
"rust-analyzer.cargo.buildScripts.enable": true,
|
||||||
"rust-analyzer.cargo.buildScripts.overrideCommand": [
|
"rust-analyzer.cargo.buildScripts.overrideCommand": [
|
||||||
|
|
@ -44,6 +45,7 @@ you can write: <!-- date-check: apr 2022 --><!-- the date comment is for the edi
|
||||||
"check",
|
"check",
|
||||||
"--json-output"
|
"--json-output"
|
||||||
],
|
],
|
||||||
|
"rust-analyzer.cargo.sysroot": "./build/$TARGET_TRIPLE/stage0-sysroot",
|
||||||
"rust-analyzer.rustc.source": "./Cargo.toml",
|
"rust-analyzer.rustc.source": "./Cargo.toml",
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue