@@ -109,41 +109,41 @@ Compilation target override (target triple).
109109--
110110Unsets `#[cfg(test)]` for the specified crates.
111111--
112- [[rust-analyzer.checkOnSave.allTargets ]]rust-analyzer.checkOnSave.allTargets (default: `true` )::
112+ [[rust-analyzer.checkOnSave]]rust-analyzer.checkOnSave (default: `true` )::
113113+
114114--
115- Check all targets and tests ( `--all-targets` ) .
115+ Run the check command for diagnostics on save .
116116--
117- [[rust-analyzer.checkOnSave.command ]]rust-analyzer.checkOnSave.command (default: `"check" ` )::
117+ [[rust-analyzer.check.allTargets ]]rust-analyzer.check.allTargets (default: `true ` )::
118118+
119119--
120- Cargo command to use for `cargo check` .
120+ Check all targets and tests ( `--all-targets` ) .
121121--
122- [[rust-analyzer.checkOnSave.enable ]]rust-analyzer.checkOnSave.enable (default: `true ` )::
122+ [[rust-analyzer.check.command ]]rust-analyzer.check.command (default: `"check" ` )::
123123+
124124--
125- Run specified `cargo check` command for diagnostics on save .
125+ Cargo command to use for `cargo check` .
126126--
127- [[rust-analyzer.checkOnSave .extraArgs]]rust-analyzer.checkOnSave .extraArgs (default: `[]` )::
127+ [[rust-analyzer.check .extraArgs]]rust-analyzer.check .extraArgs (default: `[]` )::
128128+
129129--
130130Extra arguments for `cargo check` .
131131--
132- [[rust-analyzer.checkOnSave .extraEnv]]rust-analyzer.checkOnSave .extraEnv (default: `{}` )::
132+ [[rust-analyzer.check .extraEnv]]rust-analyzer.check .extraEnv (default: `{}` )::
133133+
134134--
135135Extra environment variables that will be set when running `cargo check` .
136136Extends `#rust-analyzer.cargo.extraEnv#` .
137137--
138- [[rust-analyzer.checkOnSave .features]]rust-analyzer.checkOnSave .features (default: `null` )::
138+ [[rust-analyzer.check .features]]rust-analyzer.check .features (default: `null` )::
139139+
140140--
141141List of features to activate. Defaults to
142142`#rust-analyzer.cargo.features#` .
143143
144144Set to `"all"` to pass `--all-features` to Cargo.
145145--
146- [[rust-analyzer.checkOnSave .invocationLocation]]rust-analyzer.checkOnSave .invocationLocation (default: `"workspace"` )::
146+ [[rust-analyzer.check .invocationLocation]]rust-analyzer.check .invocationLocation (default: `"workspace"` )::
147147+
148148--
149149Specifies the working directory for running checks.
@@ -153,7 +153,7 @@ Specifies the working directory for running checks.
153153This config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`
154154is set.
155155--
156- [[rust-analyzer.checkOnSave .invocationStrategy]]rust-analyzer.checkOnSave .invocationStrategy (default: `"per_workspace"` )::
156+ [[rust-analyzer.check .invocationStrategy]]rust-analyzer.check .invocationStrategy (default: `"per_workspace"` )::
157157+
158158--
159159Specifies the invocation strategy to use when running the checkOnSave command.
@@ -162,18 +162,20 @@ If `once` is set, the command will be executed once.
162162This config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`
163163is set.
164164--
165- [[rust-analyzer.checkOnSave .noDefaultFeatures]]rust-analyzer.checkOnSave .noDefaultFeatures (default: `null` )::
165+ [[rust-analyzer.check .noDefaultFeatures]]rust-analyzer.check .noDefaultFeatures (default: `null` )::
166166+
167167--
168168Whether to pass `--no-default-features` to Cargo. Defaults to
169169`#rust-analyzer.cargo.noDefaultFeatures#` .
170170--
171- [[rust-analyzer.checkOnSave .overrideCommand]]rust-analyzer.checkOnSave .overrideCommand (default: `null` )::
171+ [[rust-analyzer.check .overrideCommand]]rust-analyzer.check .overrideCommand (default: `null` )::
172172+
173173--
174174Override the command rust-analyzer uses instead of `cargo check` for
175175diagnostics on save. The command is required to output json and
176- should therefore include `--message-format=json` or a similar option.
176+ should therefore include `--message-format=json` or a similar option
177+ (if your client supports the `colorDiagnosticOutput` experimental
178+ capability, you can use `--message-format=json-diagnostic-rendered-ansi` ).
177179
178180If you're changing this because you're using some tool wrapping
179181Cargo, you might also want to change
@@ -190,7 +192,7 @@ cargo check --workspace --message-format=json --all-targets
190192```
191193.
192194--
193- [[rust-analyzer.checkOnSave.target ]]rust-analyzer.checkOnSave.target (default: `null` )::
195+ [[rust-analyzer.check.targets ]]rust-analyzer.check.targets (default: `null` )::
194196+
195197--
196198Check for specific targets. Defaults to `#rust-analyzer.cargo.target#` if empty.
@@ -469,6 +471,11 @@ Whether to show inlay hints for type adjustments.
469471--
470472Whether to hide inlay hints for type adjustments outside of `unsafe` blocks.
471473--
474+ [[rust-analyzer.inlayHints.expressionAdjustmentHints.mode]]rust-analyzer.inlayHints.expressionAdjustmentHints.mode (default: `"prefix"` )::
475+ +
476+ --
477+ Whether to show inlay hints as postfix ops (`.*` instead of `*` , etc).
478+ --
472479[[rust-analyzer.inlayHints.lifetimeElisionHints.enable]]rust-analyzer.inlayHints.lifetimeElisionHints.enable (default: `"never"` )::
473480+
474481--
@@ -619,6 +626,11 @@ Number of syntax trees rust-analyzer keeps in memory. Defaults to 128.
619626--
620627Whether to show `can't find Cargo.toml` error message.
621628--
629+ [[rust-analyzer.numThreads]]rust-analyzer.numThreads (default: `null` )::
630+ +
631+ --
632+ How many worker threads in the main loop. The default `null` means to pick automatically.
633+ --
622634[[rust-analyzer.procMacro.attributes.enable]]rust-analyzer.procMacro.attributes.enable (default: `true` )::
623635+
624636--
0 commit comments