2020-04-20
Rust Analyzer Options
type: boolean
default: True
Whether to show native
rust-analyzer diagnostics.
type: ['null', 'integer']
minimum: 0
Number of syntax trees
rust-analyzer keeps in memory.
key | value |
---|---|
exclusiveMinimum | True |
type: string
default: client
Controls file
watching implementation.
key | value |
---|---|
enum | [‘client’, ‘notify’] |
type: array
default: []
Paths to exclude from
analysis.
key | value |
---|---|
items | {‘type’: ‘string’} |
type: boolean
default: True
Whether to show
workspace loaded
message.
type: boolean
default: True
Whether to show
can't find Cargo.toml
error message
type: boolean
default: False
Do not activate the
default
feature
type: boolean
default: True
Activate all available
features
type: array
default: []
List of features to
activate
key | value |
---|---|
items | {‘type’: ‘string’} |
type: boolean
default: False
Run
cargo check
on startup to get the correct value for package
OUT_DIRs
type: array
default: []
Additional arguments to
rustfmt
key | value |
---|---|
items | {‘type’: ‘string’} |
type: ['null', 'array']
Advanced
option, fully override the command rust-analyzer uses for
formatting.
key | value |
---|---|
items | {‘type’: ‘string’, ‘minItems’: 1} |
type: boolean
default: True
Run specified
cargo check
command for diagnostics on save
type: array
default: []
Extra arguments for
cargo check
key | value |
---|---|
items | {‘type’: ‘string’} |
type: string
default: check
Cargo command to use
for cargo check
type: ['null', 'array']
Advanced
option, fully override the command rust-analyzer uses for checking. The
command should include --message=format=json
or similar
option.
key | value |
---|---|
items | {‘type’: ‘string’, ‘minItems’: 1} |
type: boolean
default: True
Check all targets and
tests (will be passed as --all-targets
)
type: boolean
default: True
Whether to show inlay
type hints
type: boolean
default: True
Whether to show inlay
type hints for method chains
type: boolean
default: True
Whether to show
function parameter name inlay hints at the call site
type: ['null', 'integer']
default: 20
minimum:
0
Maximum length for inlay hints
key | value |
---|---|
exclusiveMinimum | True |
type: boolean
default: True
Whether to add
parenthesis when completing functions
type: boolean
default: True
Whether to add argument
snippets when completing functions
type: boolean
default: True
Whether to show postfix
snippets like dbg
, if
, not
,
etc.
type: boolean
default: True
Show function name and
docs in parameter hints
type: string
default: stable
Choose
"nightly"
updates to get the latest features and bug fixes
every day. While "stable"
releases occur weekly and don’t
contain cutting-edge features from VSCode proposed APIs
value | description |
---|---|
stable | "stable" updates are shipped
weekly, they don’t contain cutting-edge features from VSCode proposed
APIs but have less bugs in general |
nightly | "nightly" updates are shipped
daily (extension updates automatically by downloading artifacts directly
from GitHub), they contain cutting-edge features and latest bug fixes.
These releases help us get your feedback very quickly and speed up
rust-analyzer development drastically |
type: boolean
default: True
Whether to ask for
permission before downloading any files from the Internet
type: ['null', 'string']
Path to
rust-analyzer executable (points to bundled binary by default). If this
is set, then “rust-analyzer.updates.channel” setting is not used
type: string
default: off
Trace requests to the
rust-analyzer
value | description |
---|---|
off | No traces |
messages | Error only |
verbose | Full log |
key | value |
---|---|
scope | window |
type: boolean
default: False
Enable logging of VS
Code extensions itself
type: boolean
default: False
Enable Proc macro
support, cargo.loadOutDirsFromCheck must be enabled.