Clarify rust-analyzer.inlayHints.maxLength is not a hard guarantee

This commit is contained in:
Chayim Refael Friedman 2025-09-22 02:14:50 +03:00
parent e7d7cb415a
commit 129d9f7af6
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",