Auto merge of #17616 - Veykril:config-param-hints, r=Veykril

Fix incorrect generic parameter hint defaults

Missed this in the review but we should show const param hints, not lifetime param hints by default
This commit is contained in:
bors 2024-07-17 06:54:06 +00:00
commit 3fa78e113b
3 changed files with 6 additions and 6 deletions

View file

@ -511,9 +511,9 @@ config_data! {
/// Whether to show inlay hints as postfix ops (`.*` instead of `*`, etc). /// Whether to show inlay hints as postfix ops (`.*` instead of `*`, etc).
inlayHints_expressionAdjustmentHints_mode: AdjustmentHintsModeDef = AdjustmentHintsModeDef::Prefix, inlayHints_expressionAdjustmentHints_mode: AdjustmentHintsModeDef = AdjustmentHintsModeDef::Prefix,
/// Whether to show const generic parameter name inlay hints. /// Whether to show const generic parameter name inlay hints.
inlayHints_genericParameterHints_const_enable: bool= false, inlayHints_genericParameterHints_const_enable: bool= true,
/// Whether to show generic lifetime parameter name inlay hints. /// Whether to show generic lifetime parameter name inlay hints.
inlayHints_genericParameterHints_lifetime_enable: bool = true, inlayHints_genericParameterHints_lifetime_enable: bool = false,
/// Whether to show generic type parameter name inlay hints. /// Whether to show generic type parameter name inlay hints.
inlayHints_genericParameterHints_type_enable: bool = false, inlayHints_genericParameterHints_type_enable: bool = false,
/// Whether to show implicit drop hints. /// Whether to show implicit drop hints.

View file

@ -655,12 +655,12 @@ Whether to hide inlay hints for type adjustments outside of `unsafe` blocks.
-- --
Whether to show inlay hints as postfix ops (`.*` instead of `*`, etc). Whether to show inlay hints as postfix ops (`.*` instead of `*`, etc).
-- --
[[rust-analyzer.inlayHints.genericParameterHints.const.enable]]rust-analyzer.inlayHints.genericParameterHints.const.enable (default: `false`):: [[rust-analyzer.inlayHints.genericParameterHints.const.enable]]rust-analyzer.inlayHints.genericParameterHints.const.enable (default: `true`)::
+ +
-- --
Whether to show const generic parameter name inlay hints. Whether to show const generic parameter name inlay hints.
-- --
[[rust-analyzer.inlayHints.genericParameterHints.lifetime.enable]]rust-analyzer.inlayHints.genericParameterHints.lifetime.enable (default: `true`):: [[rust-analyzer.inlayHints.genericParameterHints.lifetime.enable]]rust-analyzer.inlayHints.genericParameterHints.lifetime.enable (default: `false`)::
+ +
-- --
Whether to show generic lifetime parameter name inlay hints. Whether to show generic lifetime parameter name inlay hints.

View file

@ -1914,7 +1914,7 @@
"properties": { "properties": {
"rust-analyzer.inlayHints.genericParameterHints.const.enable": { "rust-analyzer.inlayHints.genericParameterHints.const.enable": {
"markdownDescription": "Whether to show const generic parameter name inlay hints.", "markdownDescription": "Whether to show const generic parameter name inlay hints.",
"default": false, "default": true,
"type": "boolean" "type": "boolean"
} }
} }
@ -1924,7 +1924,7 @@
"properties": { "properties": {
"rust-analyzer.inlayHints.genericParameterHints.lifetime.enable": { "rust-analyzer.inlayHints.genericParameterHints.lifetime.enable": {
"markdownDescription": "Whether to show generic lifetime parameter name inlay hints.", "markdownDescription": "Whether to show generic lifetime parameter name inlay hints.",
"default": true, "default": false,
"type": "boolean" "type": "boolean"
} }
} }