mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
fix: Fix lifetime elision hint configuration key
This commit is contained in:
parent
cb1b7e18fe
commit
ecf2c98859
3 changed files with 4 additions and 4 deletions
|
@ -259,7 +259,7 @@ config_data! {
|
||||||
/// Whether to show inlay type hints for compiler inserted reborrows.
|
/// Whether to show inlay type hints for compiler inserted reborrows.
|
||||||
inlayHints_reborrowHints: bool = "false",
|
inlayHints_reborrowHints: bool = "false",
|
||||||
/// Whether to show inlay type hints for elided lifetimes in function signatures.
|
/// Whether to show inlay type hints for elided lifetimes in function signatures.
|
||||||
inlayHints_lifetimeElisionHints: LifetimeElisionDef = "\"never\"",
|
inlayHints_lifetimeElisionHints_enable: LifetimeElisionDef = "\"never\"",
|
||||||
/// Whether to prefer using parameter names as the name for elided lifetime hints if possible.
|
/// Whether to prefer using parameter names as the name for elided lifetime hints if possible.
|
||||||
inlayHints_lifetimeElisionHints_useParameterNames: bool = "false",
|
inlayHints_lifetimeElisionHints_useParameterNames: bool = "false",
|
||||||
/// Whether to hide inlay hints for constructors.
|
/// Whether to hide inlay hints for constructors.
|
||||||
|
@ -862,7 +862,7 @@ impl Config {
|
||||||
parameter_hints: self.data.inlayHints_parameterHints,
|
parameter_hints: self.data.inlayHints_parameterHints,
|
||||||
chaining_hints: self.data.inlayHints_chainingHints,
|
chaining_hints: self.data.inlayHints_chainingHints,
|
||||||
closure_return_type_hints: self.data.inlayHints_closureReturnTypeHints,
|
closure_return_type_hints: self.data.inlayHints_closureReturnTypeHints,
|
||||||
lifetime_elision_hints: match self.data.inlayHints_lifetimeElisionHints {
|
lifetime_elision_hints: match self.data.inlayHints_lifetimeElisionHints_enable {
|
||||||
LifetimeElisionDef::Always => LifetimeElisionHints::Always,
|
LifetimeElisionDef::Always => LifetimeElisionHints::Always,
|
||||||
LifetimeElisionDef::Never => LifetimeElisionHints::Never,
|
LifetimeElisionDef::Never => LifetimeElisionHints::Never,
|
||||||
LifetimeElisionDef::SkipTrivial => LifetimeElisionHints::SkipTrivial,
|
LifetimeElisionDef::SkipTrivial => LifetimeElisionHints::SkipTrivial,
|
||||||
|
|
|
@ -383,7 +383,7 @@ Whether to show inlay type hints for return types of closures with blocks.
|
||||||
--
|
--
|
||||||
Whether to show inlay type hints for compiler inserted reborrows.
|
Whether to show inlay type hints for compiler inserted reborrows.
|
||||||
--
|
--
|
||||||
[[rust-analyzer.inlayHints.lifetimeElisionHints]]rust-analyzer.inlayHints.lifetimeElisionHints (default: `"never"`)::
|
[[rust-analyzer.inlayHints.lifetimeElisionHints.enable]]rust-analyzer.inlayHints.lifetimeElisionHints.enable (default: `"never"`)::
|
||||||
+
|
+
|
||||||
--
|
--
|
||||||
Whether to show inlay type hints for elided lifetimes in function signatures.
|
Whether to show inlay type hints for elided lifetimes in function signatures.
|
||||||
|
|
|
@ -800,7 +800,7 @@
|
||||||
"default": false,
|
"default": false,
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"rust-analyzer.inlayHints.lifetimeElisionHints": {
|
"rust-analyzer.inlayHints.lifetimeElisionHints.enable": {
|
||||||
"markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
|
"markdownDescription": "Whether to show inlay type hints for elided lifetimes in function signatures.",
|
||||||
"default": "never",
|
"default": "never",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue