diff options
author | Kirill Bulatov <[email protected]> | 2021-03-23 17:43:55 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2021-03-23 17:43:55 +0000 |
commit | 5e83a56dfb69320b4fe3a980a1d1b79bab301894 (patch) | |
tree | 73630a398f1ae6d579e57444406534e7012d3b9c | |
parent | f1e1a2c0a79cc5cdab5ee6c6af21661d8e0731d8 (diff) |
Bump the default hint length
-rw-r--r-- | crates/rust-analyzer/src/config.rs | 2 | ||||
-rw-r--r-- | docs/user/generated_config.adoc | 2 | ||||
-rw-r--r-- | editors/code/package.json | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs index f49c4c33a..cda272fd4 100644 --- a/crates/rust-analyzer/src/config.rs +++ b/crates/rust-analyzer/src/config.rs | |||
@@ -132,7 +132,7 @@ config_data! { | |||
132 | /// Whether to show inlay type hints for method chains. | 132 | /// Whether to show inlay type hints for method chains. |
133 | inlayHints_chainingHints: bool = "true", | 133 | inlayHints_chainingHints: bool = "true", |
134 | /// Maximum length for inlay hints. Set to null to have an unlimited length. | 134 | /// Maximum length for inlay hints. Set to null to have an unlimited length. |
135 | inlayHints_maxLength: Option<usize> = "20", | 135 | inlayHints_maxLength: Option<usize> = "25", |
136 | /// Whether to show function parameter name inlay hints at the call | 136 | /// Whether to show function parameter name inlay hints at the call |
137 | /// site. | 137 | /// site. |
138 | inlayHints_parameterHints: bool = "true", | 138 | inlayHints_parameterHints: bool = "true", |
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc index 6ea90f7af..871c65add 100644 --- a/docs/user/generated_config.adoc +++ b/docs/user/generated_config.adoc | |||
@@ -206,7 +206,7 @@ Use markdown syntax for links in hover. | |||
206 | -- | 206 | -- |
207 | Whether to show inlay type hints for method chains. | 207 | Whether to show inlay type hints for method chains. |
208 | -- | 208 | -- |
209 | [[rust-analyzer.inlayHints.maxLength]]rust-analyzer.inlayHints.maxLength (default: `20`):: | 209 | [[rust-analyzer.inlayHints.maxLength]]rust-analyzer.inlayHints.maxLength (default: `25`):: |
210 | + | 210 | + |
211 | -- | 211 | -- |
212 | Maximum length for inlay hints. Set to null to have an unlimited length. | 212 | Maximum length for inlay hints. Set to null to have an unlimited length. |
diff --git a/editors/code/package.json b/editors/code/package.json index 2b031aaa0..d263610f5 100644 --- a/editors/code/package.json +++ b/editors/code/package.json | |||
@@ -626,7 +626,7 @@ | |||
626 | }, | 626 | }, |
627 | "rust-analyzer.inlayHints.maxLength": { | 627 | "rust-analyzer.inlayHints.maxLength": { |
628 | "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.", | 628 | "markdownDescription": "Maximum length for inlay hints. Set to null to have an unlimited length.", |
629 | "default": 20, | 629 | "default": 25, |
630 | "type": [ | 630 | "type": [ |
631 | "null", | 631 | "null", |
632 | "integer" | 632 | "integer" |