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

Make AnalyzerConfigOptions available during PostInitialization in SourceGenerators #53632

Open
SQL-MisterMagoo opened this issue May 23, 2021 · 3 comments

Comments

@SQL-MisterMagoo
Copy link

Would it be possible to make the AnalyzerConfigOptions available to PostInitialization in a SourceGenerator?

It would be useful to be able to allow the end user to configure what sources my SourceGenerator adds in this callback, as they may not want all features.

It is not a big problem, as I can always provide multiple SGs and they can then include whichever ones are relevant, but that makes the process a bit more messy for the end developer.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels May 23, 2021
@jaredpar jaredpar added Bug Feature - Source Generators Source Generators and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Jun 18, 2021
@jaredpar
Copy link
Member

@chsienki

@workgroupengineering
Copy link

workgroupengineering commented Jan 8, 2024

Hi, are there any plans for this feature? I have the same need. How can I help implement it?

If you decide to add this functionality to IncrementalGeneratorInitializationContext as well, it can help solve the following problems:

#47384
#55518

@sharwell
Copy link
Member

sharwell commented Jan 9, 2024

This is somewhat related to #71546, which is looking to resolve another lack of input ability for PostInit operations.

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

No branches or pull requests

5 participants