mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +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
|
@ -1909,6 +1909,36 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "inlayHints",
|
||||
"properties": {
|
||||
"rust-analyzer.inlayHints.genericParameterHints.const.enable": {
|
||||
"markdownDescription": "Whether to show const generic parameter name inlay hints.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "inlayHints",
|
||||
"properties": {
|
||||
"rust-analyzer.inlayHints.genericParameterHints.lifetime.enable": {
|
||||
"markdownDescription": "Whether to show generic lifetime parameter name inlay hints.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "inlayHints",
|
||||
"properties": {
|
||||
"rust-analyzer.inlayHints.genericParameterHints.type.enable": {
|
||||
"markdownDescription": "Whether to show generic type parameter name inlay hints.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "inlayHints",
|
||||
"properties": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue