dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.92k stars 4.02k forks source link

Refactor: Rename does not rename entries in GlobalSuppresssion file #39833

Open vsfeedback opened 4 years ago

vsfeedback commented 4 years ago

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


When using Analyzers and you have opted to suppress errors via the GlobalSuppressions.cs file and you then perform a rename on a file that has been referenced in that file it is not updated. This results in all the suppressed errors returning. You then have to either reapply the suppression (which will cause duplicates) or manually edit the file with the correct names.


Original Comments

Visual Studio Feedback System on 8/1/2019, 04:01 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Visual Studio Feedback System on 8/1/2019, 00:15 PM:

This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.


Original Solutions

(no solutions)

mavasani commented 4 years ago

I believe this is as per the current design/support - references to symbols from global suppress message attributes are not recognized and/or updated by FAR/Rename. This would require new feature support.