You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've checked the current code, it seems that the functionality is still there but the truncation is moved to the language server part instead of the vscode extension part.
The default maximum length is 20 characters, but obviously in the example above it exceeded 20 characters already. So I think this should be considered a bug?
I use the exact same type in one of my projects, the inlay hint is short. Why does it add the member types in () brackets in your case? I thought it would only add actual type parameters.
It's showing the type of the constructor Peripherals(... lots of parameters...) -> Peripherals, like if it was a tuple struct. If you write Peripherals in a value context, we don't check whether it's actually a tuple struct.
Some embedded device crates use generated codes and the type can get very long, such as the
stm32f1xx_hal::stm32::Peripherals
struct.In VSCode, the type inlay would become something like this when you type:
It would be better to add an option to limit the length of the type inlays, and display the remaining portion as
...
.The text was updated successfully, but these errors were encountered: