Skip to content

Commit 940d87b

Browse files
committed
extend check.overrideCommand and buildScripts.overrideCommand docs regarding invocation strategy and location
1 parent 9b3d034 commit 940d87b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ config_data! {
9090
/// and should therefore include `--message-format=json` or a similar
9191
/// option.
9292
///
93+
/// If there are multiple linked projects, this command is invoked for
94+
/// each of them, with the working directory being the project root
95+
/// (i.e., the folder containing the `Cargo.toml`). This can be overwritten
96+
/// by changing `#rust-analyzer.cargo.buildScripts.invocationStrategy#` and
97+
/// `#rust-analyzer.cargo.buildScripts.invocationLocation#`.
98+
///
9399
/// By default, a cargo invocation will be constructed for the configured
94100
/// targets and features, with the following base command line:
95101
///
@@ -183,7 +189,9 @@ config_data! {
183189
///
184190
/// If there are multiple linked projects, this command is invoked for
185191
/// each of them, with the working directory being the project root
186-
/// (i.e., the folder containing the `Cargo.toml`).
192+
/// (i.e., the folder containing the `Cargo.toml`). This can be overwritten
193+
/// by changing `#rust-analyzer.cargo.check.invocationStrategy#` and
194+
/// `#rust-analyzer.cargo.check.invocationLocation#`.
187195
///
188196
/// An example command would be:
189197
///

0 commit comments

Comments
 (0)