-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Disallow Options source gen produce diagnostics from outside the compilation #88396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow Options source gen produce diagnostics from outside the compilation #88396
Conversation
|
Tagging subscribers to this area: @dotnet/area-extensions-options Issue DetailsFixes #88152
|
|
@xakep139 I have modified the fix to let the diagnostics use the closest location of the failure inside the compilation. I tested it with Visual Studio too :-) please have a look. Thanks! |
src/libraries/Microsoft.Extensions.Options/tests/SourceGeneration.Unit.Tests/Main.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Options/tests/SourceGeneration.Unit.Tests/Main.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Options/tests/SourceGeneration.Unit.Tests/Main.cs
Outdated
Show resolved
Hide resolved
xakep139
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few nit comments, but the PR LGTM
Fixes #88152