Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Smart suggestion hides comment
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2320 Posts

Posted - Apr 23 2020 :  09:00:11 AM  Show Profile  Reply with Quote
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
18751 Posts

Posted - Apr 23 2020 :  11:52:55 AM  Show Profile  Reply with Quote
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
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2320 Posts

Posted - Apr 23 2020 :  11:56:34 AM  Show Profile  Reply with Quote
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
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Apr 23 2020 :  12:27:10 PM  Show Profile  Reply with Quote
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
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2320 Posts

Posted - Apr 23 2020 :  12:56:38 PM  Show Profile  Reply with Quote
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).



Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Apr 24 2020 :  07:21:28 AM  Show Profile  Reply with Quote
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
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2320 Posts

Posted - Apr 24 2020 :  08:54:46 AM  Show Profile  Reply with Quote
Same list here
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000