mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
feat: add inlay hints for generic parameters
fixes #11091 By default, only hints for const generic parameters are shown.
This commit is contained in:
parent
a5b21ea0aa
commit
35b4957b80
10 changed files with 443 additions and 14 deletions
|
@ -131,6 +131,11 @@ impl StaticIndex<'_> {
|
|||
discriminant_hints: crate::DiscriminantHints::Fieldless,
|
||||
type_hints: true,
|
||||
parameter_hints: true,
|
||||
generic_parameter_hints: crate::GenericParameterHints {
|
||||
type_hints: false,
|
||||
lifetime_hints: false,
|
||||
const_hints: true,
|
||||
},
|
||||
chaining_hints: true,
|
||||
closure_return_type_hints: crate::ClosureReturnTypeHints::WithBlock,
|
||||
lifetime_elision_hints: crate::LifetimeElisionHints::Never,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue