resharper-unity icon indicating copy to clipboard operation
resharper-unity copied to clipboard

No grouping for assets Find Usages results in ReSharper

Open citizenmatt opened this issue 4 years ago • 2 comments

Given a method used in assets or scenes, Find Usages in ReSharper will list the results as a flat list, rather than grouped by file/game object/component, etc.

citizenmatt avatar Sep 09 '21 14:09 citizenmatt

This is an issue in the ReSharper platform. All grouping options require an IProjectFile, but we only get one of those if the file is opened in VS and added to the "Misc Files" project. If the file is closed, it doesn't get a project file. It's also possible to open the file from Solution Explorer + Show All Files and not get a project file.

Even when there is a project file, the grouping isn't great - the filename is something like <Miscellaneous Files>\main.unity, rather than the relative path to the asset.

See RSCPP-21079

citizenmatt avatar Sep 13 '21 16:09 citizenmatt

See also #1782

citizenmatt avatar Sep 13 '21 16:09 citizenmatt