Author |
Topic |
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Apr 23 2020 : 09:00:11 AM
|
The tooltip "Smart suggestion" is of absolutely no value and it doesnt show the (helpful) comment for the selected item.
Compared to the completion list with helpful comments shown:
PS: Any idea whats the empty line in the first image? |
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Apr 23 2020 : 11:52:55 AM
|
What is "ToleranceType" here? An enum, a class? Something else?
Putting the comments into the tooltip is really sensible, and obvious now you have suggested it, but my first test isn't producing the comments at all on a listbox, so I am wondering why. I have set up a test with an enum type, and commented each of the enum items. |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Apr 23 2020 : 11:56:34 AM
|
Yes, enum type (Hey, VA even colored it correctly). You have to add XML comments to each value too, otherwise only the value will show in the tooltip.
/// <summary>
/// The type of a bobbin event
/// </summary>
public enum BobbinEventType
{
/// <summary>
/// The length of the bobbin has changed
/// </summary>
LengthChanged,
/// <summary>
/// AnotherOne here too, keep adding
/// </summary>
AnotherOne
}
|
Edited by - Uniwares on Apr 23 2020 11:57:15 AM |
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Apr 23 2020 : 12:27:10 PM
|
I wasn't using XML comments, obvious in hind sight. I have put in a feature request for this very good idea:
case=142171
As for the "blank" item in your listbox, are you able to reproduce this? If so, is there a tooltip for this item? What, if anything, is inserted when you select it?
My first guess is there is a symbol in the listbox, it's just being drawn in black, on a black background, making it appear to be an empty listbox entry. No idea why it should be black, but if that is happening we can look into that next. |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Apr 23 2020 : 12:56:38 PM
|
As you can see it happens in other Enums too, when selecting it, it just inserts a space. Its not depening on comments in the type definition (as I expected initially).
|
|
|
feline
Whole Tomato Software
United Kingdom
19014 Posts |
Posted - Apr 24 2020 : 07:21:28 AM
|
A random thought, can you please open VA's Snippet Editor:
VA Options -> Suggestions -> Edit VA Snippets (button)
and set the filter to
Language = C# Type = Smart Suggestions
Here I have the following entries in the list:
bool, Boolean, class, loop, switch
how does your list compare? I am wondering if, somehow, a smart suggestion snippet is being added into the list of enum smart suggestions, but I don't see how or why that should happen. The icon clearly shows that VA thinks it generated this listbox item, so the IDE should not be a factor. |
zen is the art of being at one with the two'ness |
|
|
Uniwares
Tomato Guru
Portugal
2322 Posts |
Posted - Apr 24 2020 : 08:54:46 AM
|
Same list here |
|
|
|
Topic |
|