@@ -24,6 +24,25 @@ Automatically refresh project info via `cargo metadata` on
24
24
--
25
25
Run build scripts (`build.rs` ) for more precise code analysis.
26
26
--
27
+ [[rust-analyzer.cargo.buildScripts.invocationLocation]]rust-analyzer.cargo.buildScripts.invocationLocation (default: `"workspace"` )::
28
+ +
29
+ --
30
+ Specifies the working directory for running build scripts.
31
+ - "workspace": run build scripts for a workspace in the workspace's root directory.
32
+ This is incompatible with `#rust-analyzer.cargo.buildScripts.invocationStrategy#` set to `once` .
33
+ - "root": run build scripts in the project's root directory.
34
+ This config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`
35
+ is set.
36
+ --
37
+ [[rust-analyzer.cargo.buildScripts.invocationStrategy]]rust-analyzer.cargo.buildScripts.invocationStrategy (default: `"per_workspace"` )::
38
+ +
39
+ --
40
+ Specifies the invocation strategy to use when running the build scripts command.
41
+ If `per_workspace` is set, the command will be executed for each workspace.
42
+ If `once` is set, the command will be executed once.
43
+ This config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`
44
+ is set.
45
+ --
27
46
[[rust-analyzer.cargo.buildScripts.overrideCommand]]rust-analyzer.cargo.buildScripts.overrideCommand (default: `null` )::
28
47
+
29
48
--
@@ -118,6 +137,25 @@ List of features to activate. Defaults to
118
137
119
138
Set to `"all"` to pass `--all-features` to Cargo.
120
139
--
140
+ [[rust-analyzer.checkOnSave.invocationLocation]]rust-analyzer.checkOnSave.invocationLocation (default: `"workspace"` )::
141
+ +
142
+ --
143
+ Specifies the working directory for running checks.
144
+ - "workspace": run checks for workspaces in the corresponding workspaces' root directories.
145
+ This falls back to "root" if `#rust-analyzer.cargo.checkOnSave.invocationStrategy#` is set to `once` .
146
+ - "root": run checks in the project's root directory.
147
+ This config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`
148
+ is set.
149
+ --
150
+ [[rust-analyzer.checkOnSave.invocationStrategy]]rust-analyzer.checkOnSave.invocationStrategy (default: `"per_workspace"` )::
151
+ +
152
+ --
153
+ Specifies the invocation strategy to use when running the checkOnSave command.
154
+ If `per_workspace` is set, the command will be executed for each workspace.
155
+ If `once` is set, the command will be executed once.
156
+ This config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`
157
+ is set.
158
+ --
121
159
[[rust-analyzer.checkOnSave.noDefaultFeatures]]rust-analyzer.checkOnSave.noDefaultFeatures (default: `null` )::
122
160
+
123
161
--
0 commit comments