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 find that sometimes types generated from macros and similar get too long for the type annotations. For example:
Rather than help they make the code less readable and since they are so long they are not immediately useful as a short type that is very easily readable would be.
Perhaps there should be a limit of characters to show. Since you can always see the type by hovering the mouse over the declaration I think it would help uncluttering the view in certain types of code.
If a certain type is longer than a number of characters it would be completely hidden or perhaps abbreviated to that number of characters plus ...
The text was updated successfully, but these errors were encountered:
There already is such a feature, the config is rust-analyzer.inlayHints.maxLength. The default value for this is unlimited(null). This config causes type hints to get truncated after reaching the number of characters by replacing any other nested hints with ...
I find that sometimes types generated from macros and similar get too long for the type annotations. For example:
Rather than help they make the code less readable and since they are so long they are not immediately useful as a short type that is very easily readable would be.
Perhaps there should be a limit of characters to show. Since you can always see the type by hovering the mouse over the declaration I think it would help uncluttering the view in certain types of code.
If a certain type is longer than a number of characters it would be completely hidden or perhaps abbreviated to that number of characters plus ...
The text was updated successfully, but these errors were encountered: