Make build scripts and proc macros work with the suggested rust-analyzer config (#1365)

This commit is contained in:
Jonas Schievink 2022-06-08 01:06:32 +02:00 committed by GitHub
parent 6445e007fe
commit d292267144
1 changed files with 9 additions and 2 deletions

View File

@ -37,9 +37,16 @@ you can write: <!-- date: 2022-04 --><!-- the date comment is for the edition be
"--edition=2021" "--edition=2021"
], ],
"editor.formatOnSave": true, "editor.formatOnSave": true,
"rust-analyzer.cargo.buildScripts.enable": false, "rust-analyzer.cargo.buildScripts.enable": true,
"rust-analyzer.cargo.buildScripts.overrideCommand": [
"cargo",
"check",
"-p",
"rustc_driver",
"--message-format=json"
],
"rust-analyzer.rustc.source": "./Cargo.toml", "rust-analyzer.rustc.source": "./Cargo.toml",
"rust-analyzer.procMacro.enable": false "rust-analyzer.procMacro.enable": true,
} }
``` ```