Skip to content

Conversation

@RikkiGibson
Copy link
Member

@RikkiGibson RikkiGibson commented Sep 7, 2023

I started to completely remove the ability to declare interceptors in the global namespace and the test churn was just too much :)

Goal of the PR is to push people as much as possible toward granular opt-in while leaving in an undocumented global enable for expediency.

@ghost ghost added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 7, 2023
@RikkiGibson RikkiGibson marked this pull request as ready for review September 12, 2023 20:55
@RikkiGibson RikkiGibson requested a review from a team as a code owner September 12, 2023 20:55
comp = CreateCompilation(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("interceptorspreview"));
comp.VerifyEmitDiagnostics(sadCaseDiagnostics);

verifier = CompileAndVerify(new[] { (source, "Program.cs"), s_attributesSource }, parseOptions: TestOptions.Regular.WithFeature("interceptorspreview"), expectedOutput: "1");
Copy link
Contributor

Choose a reason for hiding this comment

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

hFeature("interceptorspreview"),

Are we still testing the lowercase success case (which I believe is WithFeature("interceptorspreviewnamespaces", "global"))?

@RikkiGibson RikkiGibson requested a review from a team September 14, 2023 22:32
@RikkiGibson
Copy link
Member Author

@dotnet/roslyn-compiler for second review
@captainsafia for heads up, are you ready for us to merge the change which removes the original InterceptorsPreview flag or do you need more time?

@captainsafia
Copy link
Member

@dotnet/roslyn-compiler for second review @captainsafia for heads up, are you ready for us to merge the change which removes the original InterceptorsPreview flag or do you need more time?

You should be good to go. We merged the change to move to granular opt-in in the SDK last week.

cc: @layomia to make sure the correct things have been done for nupkg for the config binder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants