Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Suggestions in comments and xml tags

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 03 2020 : 06:25:46 AM
VA is bugging me with wrong completions for XML tags in comments.

example:
/// <summary>
/// A name for this section.<br
/// </summary>


at the "<br" VA suggests to insert "before" and typing "/" completes inserting the suggestion. VA should either not suggest anything in comments or understand that I am typing a XML tag.
15   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 09 2020 : 09:42:13 AM
Finally happening usefully, and on demand. The only difference is that so far I am only ever getting VA suggestions in the listbox, not the mixture of VA and IDE items that you sometimes see.

The effect is somewhat file specific, but it also depends on the letter you type after "<", it looks like only letters that will prompt a suggestion from surrounding code are coming up, but that's just a guess. Note that surrounding includes code below the current line as well as above.
feline Posted - Apr 09 2020 : 07:32:42 AM
I have the files, thank you for these:

case=142100

and I am finally getting some sign of the problem here! Adding your settings helped.
Uniwares Posted - Apr 08 2020 : 11:37:07 AM
Ok, but suggesting "region" is not appropriate at all, and "reader" is a funcion parameter name somewhere down below. Makes no sense at all.
feline Posted - Apr 08 2020 : 10:50:22 AM
I will keep an eye out for the files, hopefully I can reproduce the effect here with them.

The last part makes some sense, since CTRL-SPACE is supposed to trigger a VA listbox inside a comment, ideal for typing in class / symbol names and having the listbox fill in for you. The mix of IDE and VA entries is a little odd, but if we assume VA suggestions merging with an IDE listbox, then it makes some sense.
Uniwares Posted - Apr 08 2020 : 06:53:38 AM
I�ll send you two files where I see that happening, they are nothing really different from a standard C# class. My config you still have, all suggestions/completions enabled.

What I noticed though is that when I type "<" the completions list from VS comes up with the tags valid in comments, after the first letter VA kicks in with its suggestions, when I cancel VA's list and type Ctrl+Space, the forced completion list comes up with results mixed from VS+VA. Makes any sense?




feline Posted - Apr 08 2020 : 05:18:55 AM
This makes some sense, the listbox items make sense if they are coming from the surrounding code. But I still cannot reproduce this here, and still don't expect VA listboxes to appear unprompted inside a comment block.
Uniwares Posted - Apr 07 2020 : 1:18:51 PM
When I disable https://docs.wholetomato.com/default.asp?W166#bits then the comment suggestions disappear. But no idea yet what triggers them.
feline Posted - Apr 07 2020 : 11:21:31 AM
The offer stands if you are able to share the code and want someone else to sort through the files for you. Hopefully you can pin down a pattern fairly quickly and easily.
Uniwares Posted - Apr 07 2020 : 10:26:42 AM
As i mentioned, it happens in some files, in other not. Will try to figure it out here.
feline Posted - Apr 07 2020 : 09:23:50 AM
If you create a new, default C# solution, and copy across and add one of the files that produces this effect, do you still see the problem? I am trying to see if the problem is inside the file its self, or the file is interacting with something in the wider solution.

If it is just in the single file its self, would it be possible to get a copy of the file, purely for testing purposes? I can then try trimming down the file to figure out what is triggering this effect. At least knowing it is file specific explains why I have not been able to reproduce it here yet.
Uniwares Posted - Apr 07 2020 : 05:55:54 AM
And its file specific. No idea why yet. Makes no sense. Some files show it, some dont. Even in other solutions.
Uniwares Posted - Apr 07 2020 : 05:36:20 AM
Yes, stops when suggestion lists is turned off.
feline Posted - Apr 04 2020 : 08:22:31 AM
Can you please see if this is file or even solution specific?

I have imported settings you sent in a little while ago, and so far I cannot reproduce this here. So I am wondering if somehow something in the surrounding code is helping to trigger this effect.

Also, can you see if turning Off:

VA Options -> Suggestions -> Enable Suggestion Lists

stops this happening? From the look of the screen shot it should, except that since you are in a comment block VA shouldn't be doing this regardless.
Uniwares Posted - Apr 03 2020 : 10:07:17 AM
comes up automatically



feline Posted - Apr 03 2020 : 07:28:12 AM
Normally VA does not suggest anything in a comment / XML block, you have to specifically trigger a VA listbox.

I am seeing a listbox appear when typing the < character in both VS2017 and VS2019, but it is coming from the IDE, it's nothing to do with VA. If you disable VA via:

VAssistX -> Enable/Disable Visual Assist X

do you still see this listbox? If so, what sort of listbox is it? Are you getting VA Snippets being suggested perhaps? Just trying to work out why you would be seeing a listbox inside a comment block.

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