Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Smart suggestion hides comment

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Uniwares 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?
6   L A T E S T    R E P L I E S    (Newest First)
Uniwares Posted - Apr 24 2020 : 08:54:46 AM
Same list here
feline 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.
Uniwares 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 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.
Uniwares 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
	}
feline 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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000