mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-22 08:12:04 +00:00
Clarify rust-analyzer.inlayHints.maxLength
is not a hard guarantee
This commit is contained in:
parent
e7d7cb415a
commit
129d9f7af6
3 changed files with 5 additions and 1 deletions
|
@ -267,6 +267,8 @@ config_data! {
|
||||||
inlayHints_lifetimeElisionHints_useParameterNames: bool = false,
|
inlayHints_lifetimeElisionHints_useParameterNames: bool = false,
|
||||||
|
|
||||||
/// Maximum length for inlay hints. Set to null to have an unlimited length.
|
/// 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),
|
inlayHints_maxLength: Option<usize> = Some(25),
|
||||||
|
|
||||||
/// Show function parameter name inlay hints at the call site.
|
/// Show function parameter name inlay hints at the call site.
|
||||||
|
|
|
@ -1046,6 +1046,8 @@ Default: `25`
|
||||||
|
|
||||||
Maximum length for inlay hints. Set to null to have an unlimited length.
|
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}
|
## rust-analyzer.inlayHints.parameterHints.enable {#inlayHints.parameterHints.enable}
|
||||||
|
|
||||||
|
|
|
@ -2355,7 +2355,7 @@
|
||||||
"title": "Inlay Hints",
|
"title": "Inlay Hints",
|
||||||
"properties": {
|
"properties": {
|
||||||
"rust-analyzer.inlayHints.maxLength": {
|
"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,
|
"default": 25,
|
||||||
"type": [
|
"type": [
|
||||||
"null",
|
"null",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue