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

Add Parameter quick fix should add XML doc comment if required #41318

Open jasonmalinowski opened 4 years ago

jasonmalinowski commented 4 years ago

If we use our Add Parameter fix, we should consider automatically adding a XML tag for the parameter if the user has the diagnostic on that would require it.

jasonmalinowski commented 4 years ago

25840 tracks having a quick fix to do the second step automatically, but this would track just doing it automatically.

jasonmalinowski commented 4 years ago

In particular the diagnostic I had in mind was:

https://docs.microsoft.com/en-us/dotnet/csharp/misc/cs1573

If that's enabled and there's already at least one doc comment for the other parameters, then we should be adding this automatically or else you're just going to have to do it yourself.