From 5737b08a58f92cb9b2d23f85b2554feffaf60b09 Mon Sep 17 00:00:00 2001 From: Urhengulas Date: Tue, 13 Apr 2021 11:44:19 +0200 Subject: [PATCH] `README.md`: Document `rust-analyzer.linkedProjects` --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 1942983..f3b3f57 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,22 @@ $ echo $? 0 ``` +### (8. Set `rust-analyzer.linkedProjects`) + +If you are using [rust-analyzer] with VS Code for IDE-like features you can add following configuration to your `.vscode/settings.json` to make it work transparently across workspaces. Find the details of this option in the [RA docs]. + +```json +{ + "rust-analyzer.linkedProjects": [ + "Cargo.toml", + "firmware/Cargo.toml", + ] +} +``` + +[RA docs]: https://rust-analyzer.github.io/manual.html#configuration +[rust-analyzer]: https://rust-analyzer.github.io/ + ## Trying out the git version of defmt This template is configured to use the latest crates.io release (the "stable" release) of the `defmt` framework.