diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index 5c88c3a9b8..f49c4c33a9 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs @@ -131,8 +131,8 @@ config_data! { /// Whether to show inlay type hints for method chains. inlayHints_chainingHints: bool = "true", - /// Maximum length for inlay hints. Default is unlimited. - inlayHints_maxLength: Option = "null", + /// Maximum length for inlay hints. Set to null to have an unlimited length. + inlayHints_maxLength: Option = "20", /// Whether to show function parameter name inlay hints at the call /// site. inlayHints_parameterHints: bool = "true", diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index c2521289c0..6ea90f7af1 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc @@ -206,10 +206,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: `20`):: + -- -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`):: + diff --git a/editors/code/package.json b/editors/code/package.json index faec45276c..2b031aaa02 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -625,8 +625,8 @@ "type": "boolean" }, "rust-analyzer.inlayHints.maxLength": { - "markdownDescription": "Maximum length for inlay hints. Default is unlimited.", - "default": null, + "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.", + "default": 20, "type": [ "null", "integer"