Merge pull request #20718 from ChayimFriedman2/inlay-max-len-docs

minor: Clarify `rust-analyzer.inlayHints.maxLength` is not a hard guarantee
This commit is contained in:
Chayim Refael Friedman 2025-09-22 01:27:15 +00:00 committed by GitHub
commit f41f762a80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View File

@ -267,6 +267,8 @@ config_data! {
inlayHints_lifetimeElisionHints_useParameterNames: bool = false,
/// Maximum length for inlay hints. Set to null to have an unlimited length.
///
/// **Note:** This is mostly a hint, and we don't guarantee to strictly follow the limit.
inlayHints_maxLength: Option<usize> = Some(25),
/// Show function parameter name inlay hints at the call site.

View File

@ -1046,6 +1046,8 @@ Default: `25`
Maximum length for inlay hints. Set to null to have an unlimited length.
**Note:** This is mostly a hint, and we don't guarantee to strictly follow the limit.
## rust-analyzer.inlayHints.parameterHints.enable {#inlayHints.parameterHints.enable}

View File

@ -2355,7 +2355,7 @@
"title": "Inlay Hints",
"properties": {
"rust-analyzer.inlayHints.maxLength": {
"markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
"markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.\n\n**Note:** This is mostly a hint, and we don't guarantee to strictly follow the limit.",
"default": 25,
"type": [
"null",