Skip to content
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

Update ProgrammaticSuppressionInfoWrapper for Roslyn 4.10 #1177

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

sharwell
Copy link
Member

Fixes #1175

@sharwell sharwell requested a review from a team as a code owner August 13, 2024 17:15
get
{
var suppressions = s_suppressions(_instance);
if (suppressions is ImmutableHashSet<(string id, LocalizableString justification)> set)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LocalizableString

Just so I'm clear, there was an even earlier change that changed the signature that also would have broke this, right?

dotnet/roslyn@5287f2f#diff-3dfff6578b6a50be75e51e45981adc7e43b19175986a528500cb0ba3d00e8553

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That commit is the change which caused the break.

}

// https://github.com/dotnet/roslyn-sdk/issues/1175
throw new NotImplementedException("The test framework does not yet support suppressions format from Roslyn 4.10+");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NotImplementedException

So, 1175 won't be closed out when this is merged?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be closed. If in the future this property is needed for some purpose, it will need to be implemented again.

Copy link

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@dotnet dotnet deleted a comment from azure-pipelines bot Aug 14, 2024
@sharwell sharwell merged commit d0c5cbf into dotnet:main Aug 14, 2024
9 checks passed
@sharwell sharwell deleted the fix-lightup branch August 14, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Microsoft.CodeAnalysis.Testing.Lightup.ProgrammaticSuppressionInfoWrapper throws TypeInitializationException
2 participants