feat: add inlay hints for generic parameters

fixes #11091

By default, only hints for const generic parameters are shown.
This commit is contained in:
Liao Junxuan 2024-07-01 22:11:30 +08:00
parent a5b21ea0aa
commit 35b4957b80
No known key found for this signature in database
GPG key ID: ACFD0D166CA817F4
10 changed files with 443 additions and 14 deletions

View file

@ -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": {