feat: Render padding information when hovering on structs

This commit is contained in:
Shoyu Vanilla 2025-05-28 11:15:33 +09:00
parent 7230ded9c7
commit e806957098
7 changed files with 272 additions and 23 deletions

View file

@ -1779,6 +1779,33 @@
}
}
},
{
"title": "hover",
"properties": {
"rust-analyzer.hover.memoryLayout.padding": {
"markdownDescription": "How to render the padding information in a memory layout hover.",
"default": null,
"anyOf": [
{
"type": "null"
},
{
"type": "string",
"enum": [
"both",
"decimal",
"hexadecimal"
],
"enumDescriptions": [
"Render as 12 (0xC)",
"Render as 12",
"Render as 0xC"
]
}
]
}
}
},
{
"title": "hover",
"properties": {