'No usage' - message under Solution Explorer (ReSharper 5.51.1, VS2010, VB) for a used class

When I search for the usage of a class in the solution explorer, ReSharper tells me that the searched class is not in use. When I open the source-editor and mark the classname, it shows, the class is in use by itself (designer and resx) and also by another class (main window).

I am a ReSharper newbie. So I deleted some 'unused' classes in solution explorer and destroyed my sourcecode (since the last backup), because I coudn't undo the changes.

Is there something going wrong or is there a trick, I don't know? If the 'find usages' option in solution explorer doesn't work, it should be disabled.

In my opinion, 'find usages' in solution explorer should show all usages outside the class. Am I wrong?

Best regards

Alex

1 comment
Comment actions Permalink

This looks like a usability issue. Searching from Solution Explorer finds
usages of file itself, like if you are looking for where an image file is
used. If you are searching for class usage, you'd start searching from a
class declaration itself. This is how it was designed to be used. 

I admit we could do better if searching from Solution Explorer would find
usages of file (as in path-like references) and all the symbols defined in
file. Same could work for a folder, including all subfolders and files inside.
I've created an issue you can watch here: http://youtrack.jetbrains.net/issue/RSRP-198961

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> When I search for the usage of a class in the solution explorer,
IR> ReSharper tells me that the searched class is not in use. When I
IR> open the source-editor and mark the classname, it shows, the class
IR> is in use by itself (designer and resx) and also by another class
IR> (main window).
IR>
IR> I am a ReSharper newbie. So I deleted some 'unused' classes in
IR> solution explorer and destroyed my sourcecode (since the last
IR> backup), because I coudn't undo the changes.
IR>
IR> Is there something going wrong or is there a trick, I don't know? If
IR> the 'find usages' option in solution explorer doesn't work, it
IR> should be disabled.
IR>
IR> In my opinion, 'find usages' in solution explorer should show all
IR> usages outside the class. Am I wrong?
IR>
IR> Best regards
IR>
IR> Alex
IR>
IR> ---
IR> Original message URL:
IR> http://devnet.jetbrains.net/message/5279093#5279093


0

Please sign in to leave a comment.