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
Support options in external plugins #3615
Comments
I don't believe #3433 did that. I believe it just exposed (via some code duplication) plugin options in At the moment, all options other than the ones in Lines 628 to 642 in 6c0dd74
In fact this happens before plugins are even loaded. Unless I'm missing something, supporting per-plugin options would require a revamp of option parsing here. You'd need to first load plugins, then load their options, then parse the rest of the config. |
It will just need to key into |
Yeah, something like that. There are a few different code paths here depending on which entry point you use. Also a bit harder for CLI stuff if relevant. Nothing too bad though. Though it is worth thinking about how to configure e.g. trailing commas for Python. Something other than |
use supportOptions to generate CLI options (internal plugins) --> #3622 |
#3433 moved the definition of options to our internal parsers but there's still a bit of work to support external plugins defining new options:
Use cases:
This should include the options contributed by plugins:
CLI should work:
Remove unknown option warning for options contributed by external plugins.
The text was updated successfully, but these errors were encountered: