dotnet/roslyn

CodeLens report 0 references for attributes not using constructor

オープン

#46,089 opened on 2020/07/17

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDECodeLensConcept-Continuous ImprovementDeveloper CommunityIDE-Navigationhelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

This issue has been moved from a ticket on Developer Community.


I have a few custom attributes defined in some of my projects. It looks like if they have an explicit constructor with some parameter, CodeLens correctly shows the references over the constructor as expected. But, if the attributes have no constructor and are just added with the standard [SomeAttribute] syntax, then I only see "0 references" over the attribute type definition, with no easy way to find the actual usages of that attribute in the project.

CodeLens should correctly report all the actual usages of the attribute in the current project, regardless of how they're defined and added to the respective targets in the codebase.


Original Comments

Feedback Bot on 7/15/2020, 06:51 PM:


Original Solutions

(no solutions)

コントリビューターガイド