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
 Find references issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

khashfirestorm
New Member

United Kingdom
7 Posts

Posted - Nov 23 2018 :  09:23:42 AM  Show Profile  Reply with Quote
I have noticed that Find references ignores record in
[Visual Assist Options] -> [Project and Files] -> [Extensions to ignore]

It finds records of searched variable eg:
public bool ruins;

in places like
group.ruins = true;
Which is correct

but then goes all over xml files and finds records like:
<outputs name="Search the ruins." ownerID="4" targetID="27" group="G1" fromX="3508" fromY="-1171" />

which not only is totally unrelated to the searched variable, but as well a regular text even for xml standards.

Simplest solution is to ignore all xml files (which currently contains ~1m words) and save on performance, but feature does not work OR is misunderstood by me.

Any help would be appreciated!
Thank you

Cofee->Code

Edited by - khashfirestorm on Nov 23 2018 09:25:13 AM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 24 2018 :  02:56:09 AM  Show Profile  Reply with Quote
We're considering to improve the extensions to ignore feature:

case=27623

Right now, it only affects the source window.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Nov 24 2018 :  06:25:43 AM  Show Profile  Reply with Quote
In the short term, are you aware you can right click in the Find References Results window and turn Off displaying "Comment and string references"? This will remove the string results from the XML files.

Are the XML files in the same project as the code you are searching? If not, would limiting the find to the current project only help?

If neither of these options helps, and you don't mind telling VA to always ignore XML files, you can close all instances of the IDE, and then edit the registry key:

HKEY_CURRENT_USER\Software\Whole Tomato\Visual Assist X\ <IDE> \ExtXml = ".xml;.resx;.config;.manifest;"

removing the ".xml;" extension from the list. Here the <IDE> version is listed on this page, and depends on the version of Visual Studio you are using:

https://docs.wholetomato.com/default.asp?W407

zen is the art of being at one with the two'ness
Go to Top of Page

khashfirestorm
New Member

United Kingdom
7 Posts

Posted - Nov 24 2018 :  08:48:03 AM  Show Profile  Reply with Quote
Hi!

Comment and string was off for a long time for me, and xmls are in the same project, I cannot do much about it as the project is auto-generated by another software.

I will try to edit registry as any xmls search I'm doing using regular VS searches

Thank you!

Cofee->Code
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Nov 24 2018 :  08:59:41 AM  Show Profile  Reply with Quote
It feels like an ugly work around, but another user had the same problem, lots of Find References Results in XML files, making it hard to see what they needed, and this fixed the problem for them.

Just make sure you have closed all instances of the IDE before editing the registry, since VA saves out its current settings on exit, which can overwrite any changes you make to the registry while the IDE is loaded.

zen is the art of being at one with the two'ness
Go to Top of Page

khashfirestorm
New Member

United Kingdom
7 Posts

Posted - Nov 24 2018 :  09:12:08 AM  Show Profile  Reply with Quote
Yup it works!
Thanks again!

Good luck with some form of resolving it directly, but for me this is fine now :)

Cofee->Code
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