@@ -46,6 +46,12 @@ cargo check --quiet --workspace --message-format=json --all-targets
4646Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to
4747avoid checking unnecessary things.
4848--
49+ [[rust-analyzer.cargo.extraEnv]]rust-analyzer.cargo.extraEnv (default: `{}` )::
50+ +
51+ --
52+ Extra environment variables that will be set when running cargo, rustc
53+ or other commands within the workspace. Useful for setting RUSTFLAGS.
54+ --
4955[[rust-analyzer.cargo.features]]rust-analyzer.cargo.features (default: `[]` )::
5056+
5157--
@@ -93,6 +99,11 @@ Run specified `cargo check` command for diagnostics on save.
9399--
94100Extra arguments for `cargo check` .
95101--
102+ [[rust-analyzer.checkOnSave.extraEnv]]rust-analyzer.checkOnSave.extraEnv (default: `{}` )::
103+ +
104+ --
105+ Extra environment variables that will be set when running `cargo check` .
106+ --
96107[[rust-analyzer.checkOnSave.features]]rust-analyzer.checkOnSave.features (default: `null` )::
97108+
98109--
@@ -353,6 +364,11 @@ Group inserted imports by the https://rust-analyzer.github.io/manual.html#auto-i
353364--
354365Whether to allow import insertion to merge new imports into single path glob imports like `use std::fmt::*;` .
355366--
367+ [[rust-analyzer.imports.prefer.no.std]]rust-analyzer.imports.prefer.no.std (default: `false` )::
368+ +
369+ --
370+ Prefer to unconditionally use imports of the core and alloc crate, over the std crate.
371+ --
356372[[rust-analyzer.imports.prefix]]rust-analyzer.imports.prefix (default: `"plain"` )::
357373+
358374--
@@ -474,6 +490,11 @@ client doesn't set the corresponding capability.
474490Whether to show `Implementations` lens. Only applies when
475491`#rust-analyzer.lens.enable#` is set.
476492--
493+ [[rust-analyzer.lens.location]]rust-analyzer.lens.location (default: `"above_name"` )::
494+ +
495+ --
496+ Where to render annotations.
497+ --
477498[[rust-analyzer.lens.references.adt.enable]]rust-analyzer.lens.references.adt.enable (default: `false` )::
478499+
479500--
@@ -546,6 +567,11 @@ This config takes a map of crate names with the exported proc-macro names to ign
546567Internal config, path to proc-macro server executable (typically,
547568this is rust-analyzer itself, but we override this in tests).
548569--
570+ [[rust-analyzer.references.excludeImports]]rust-analyzer.references.excludeImports (default: `false` )::
571+ +
572+ --
573+ Exclude imports from find-all-references.
574+ --
549575[[rust-analyzer.runnables.command]]rust-analyzer.runnables.command (default: `null` )::
550576+
551577--
0 commit comments