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
19.02k stars 4.03k forks source link

Add a fix for IDE0130 to move file instead of changing namespace #50686

Open ryzngard opened 3 years ago

ryzngard commented 3 years ago

IDE0120 is being introduced in https://github.com/dotnet/roslyn/pull/49990. The current fix moves the types in the namespace using the same code as sync namespace. This tracks adding a fix that would instead move the file to the correct folder based on namespace

genlu commented 3 years ago

Design meeting note: We want to implement this, but need to be aware of the scenarios we don't want to show this option.

arphox commented 10 months ago

Are you sure this is IDE0120? I think that's a typo and it is actually IDE0130.

(Don't forget to update the Feature - IDE0120 label, too.)

bjornhellander commented 8 months ago

Wrong diagnostic id. IDE0120 is "Simplify LINQ expression".

ryzngard commented 8 months ago

Yup, I'll update the title