From 7c61a060becf46d52ee737ebbf95c4ce865fedf6 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Thu, 20 Oct 2022 00:00:12 +0200 Subject: [PATCH 1/2] Update rust-analyzer suggestions This setting will cause r-a to invoke the build script command only once in the root of the project instead of once per workspace which causes problems when the `linkedProjects` settings is used to target other workspaces in the repo. In theory the same setting could be applied to `checkOnSave`, but for that to work `x.py` needs to fix up the paths of diagnostics to be relative to the project root instead of the workspace roots the diagnostics are emitted from. --- src/building/suggested.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/building/suggested.md b/src/building/suggested.md index 588d4cae6..1f0168dbe 100644 --- a/src/building/suggested.md +++ b/src/building/suggested.md @@ -39,6 +39,7 @@ you can write: