Skip to content

Commit 5f9ba2d

Browse files
Merge #8177
8177: Limit the hints size by default r=Veykril a=SomeoneToIgnore Fixes #8175 Fixes #3138 Co-authored-by: Kirill Bulatov <mail4score@gmail.com>
2 parents 3e8f13d + 5e83a56 commit 5f9ba2d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

crates/rust-analyzer/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ config_data! {
131131

132132
/// Whether to show inlay type hints for method chains.
133133
inlayHints_chainingHints: bool = "true",
134-
/// Maximum length for inlay hints. Default is unlimited.
135-
inlayHints_maxLength: Option<usize> = "null",
134+
/// Maximum length for inlay hints. Set to null to have an unlimited length.
135+
inlayHints_maxLength: Option<usize> = "25",
136136
/// Whether to show function parameter name inlay hints at the call
137137
/// site.
138138
inlayHints_parameterHints: bool = "true",

docs/user/generated_config.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ Use markdown syntax for links in hover.
206206
--
207207
Whether to show inlay type hints for method chains.
208208
--
209-
[[rust-analyzer.inlayHints.maxLength]]rust-analyzer.inlayHints.maxLength (default: `null`)::
209+
[[rust-analyzer.inlayHints.maxLength]]rust-analyzer.inlayHints.maxLength (default: `25`)::
210210
+
211211
--
212-
Maximum length for inlay hints. Default is unlimited.
212+
Maximum length for inlay hints. Set to null to have an unlimited length.
213213
--
214214
[[rust-analyzer.inlayHints.parameterHints]]rust-analyzer.inlayHints.parameterHints (default: `true`)::
215215
+

editors/code/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,8 @@
625625
"type": "boolean"
626626
},
627627
"rust-analyzer.inlayHints.maxLength": {
628-
"markdownDescription": "Maximum length for inlay hints. Default is unlimited.",
629-
"default": null,
628+
"markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.",
629+
"default": 25,
630630
"type": [
631631
"null",
632632
"integer"

0 commit comments

Comments
 (0)