From 33fe8d420d0a9e94030c321eb4dff2b6fcc4a85c Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Thu, 30 Jun 2022 22:19:53 -0500 Subject: [PATCH] Suggest a separate build directory for rust-analyzer --- src/building/suggested.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/building/suggested.md b/src/building/suggested.md index 6c0b7135e..c3e3bd3c0 100644 --- a/src/building/suggested.md +++ b/src/building/suggested.md @@ -58,6 +58,10 @@ in your `.vscode/settings.json` file. This will ask `rust-analyzer` to use > a triple is `x86_64-unknown-linux-gnu`. An easy way to check your target triple > is to run `rustc -vV` and checking the `host` value of its output. +If you have enough free disk space and you would like to be able to run `x.py` commands while +rust-analyzer runs in the background, you can also add `--build-dir build-rust-analyzer` to the +`overrideCommand` to avoid x.py locking. + If you're running `coc.nvim`, you can use `:CocLocalConfig` to create a `.vim/coc-settings.json` and enter the same settings as above, but replacing `editor.formatOnSave: true,` with