about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-08-21 10:41:49 +0200
committerRalf Jung <post@ralfj.de>2023-08-21 10:41:49 +0200
commit940d87b2d05dcf074bfe5461999f244ca82f6403 (patch)
treeca205823480ba793c40efb05115f157a6240fee5
parent9b3d03408c66749d56466bb09baf2a7177deb6ce (diff)
downloadrust-940d87b2d05dcf074bfe5461999f244ca82f6403.tar.gz
rust-940d87b2d05dcf074bfe5461999f244ca82f6403.zip
extend check.overrideCommand and buildScripts.overrideCommand docs regarding invocation strategy and location
-rw-r--r--crates/rust-analyzer/src/config.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs
index 40c50f6d176..dc678dae6eb 100644
--- a/crates/rust-analyzer/src/config.rs
+++ b/crates/rust-analyzer/src/config.rs
@@ -90,6 +90,12 @@ config_data! {
         /// and should therefore include `--message-format=json` or a similar
         /// option.
         ///
+        /// If there are multiple linked projects, this command is invoked for
+        /// each of them, with the working directory being the project root
+        /// (i.e., the folder containing the `Cargo.toml`). This can be overwritten
+        /// by changing `#rust-analyzer.cargo.buildScripts.invocationStrategy#` and
+        /// `#rust-analyzer.cargo.buildScripts.invocationLocation#`.
+        ///
         /// By default, a cargo invocation will be constructed for the configured
         /// targets and features, with the following base command line:
         ///
@@ -183,7 +189,9 @@ config_data! {
         ///
         /// If there are multiple linked projects, this command is invoked for
         /// each of them, with the working directory being the project root
-        /// (i.e., the folder containing the `Cargo.toml`).
+        /// (i.e., the folder containing the `Cargo.toml`). This can be overwritten
+        /// by changing `#rust-analyzer.cargo.check.invocationStrategy#` and
+        /// `#rust-analyzer.cargo.check.invocationLocation#`.
         ///
         /// An example command would be:
         ///