X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=docs%2Fuser%2Fgenerated_config.adoc;h=db3c5f7bbb12481471c0f8305357e0d63a1c8f78;hb=86b50849179f710dad5b0c48535d064425863247;hp=c2521289c0b1e3726049f7c075edda4a68284a71;hpb=106a5abbef7fb07bf65a173fc5e53e46fb207af7;p=rust.git diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index c2521289c0b..db3c5f7bbb1 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -39,6 +39,12 @@ List of features to activate. -- Run build scripts (`build.rs`) for more precise code analysis. -- +[[rust-analyzer.cargo.useRustcWrapperForBuildScripts]]rust-analyzer.cargo.useRustcWrapperForBuildScripts (default: `true`):: ++ +-- +Use `RUSTC_WRAPPER=rust-analyzer` when running build scripts to +avoid compiling unnecessary things. +-- [[rust-analyzer.cargo.noDefaultFeatures]]rust-analyzer.cargo.noDefaultFeatures (default: `false`):: + -- @@ -141,6 +147,12 @@ have more false positives than usual. -- List of rust-analyzer diagnostics to disable. -- +[[rust-analyzer.diagnostics.remapPrefix]]rust-analyzer.diagnostics.remapPrefix (default: `{}`):: ++ +-- +Map of prefixes to be substituted when parsing diagnostic file paths. +This should be the reverse mapping of what is passed to `rustc` as `--remap-path-prefix`. +-- [[rust-analyzer.diagnostics.warningsAsHint]]rust-analyzer.diagnostics.warningsAsHint (default: `[]`):: + -- @@ -206,10 +218,10 @@ Use markdown syntax for links in hover. -- Whether to show inlay type hints for method chains. -- -[[rust-analyzer.inlayHints.maxLength]]rust-analyzer.inlayHints.maxLength (default: `null`):: +[[rust-analyzer.inlayHints.maxLength]]rust-analyzer.inlayHints.maxLength (default: `25`):: + -- -Maximum length for inlay hints. Default is unlimited. +Maximum length for inlay hints. Set to null to have an unlimited length. -- [[rust-analyzer.inlayHints.parameterHints]]rust-analyzer.inlayHints.parameterHints (default: `true`):: + @@ -222,6 +234,11 @@ site. -- Whether to show inlay type hints for variables. -- +[[rust-analyzer.inlayHints.smallerHints]]rust-analyzer.inlayHints.smallerHints (default: `true`):: ++ +-- +Whether inlay hints font size should be smaller than editor's font size. +-- [[rust-analyzer.lens.debug]]rust-analyzer.lens.debug (default: `true`):: + --