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

Fix dependency injection #429

Merged
merged 6 commits into from
Jul 17, 2022
Merged

Conversation

alcarney
Copy link
Member

Closes #428

The majority of the extension loading logic has now been refactored into
a `load_extension` method available on the `RstLanaguageServer`. Given
an extension name and a setup function it handles the dependency
injection for and execution of the given setup function.

This commit adjusts the `_load_sphinx_extensions` and
`_load_sphinx_config` code to use this new method, enabling dependency
injection for the Sphinx based extension points.
@alcarney alcarney merged commit 815a82c into swyddfa:develop Jul 17, 2022
@alcarney alcarney deleted the fix-dependency-injection branch July 17, 2022 17:05
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.

Dependency injection isn't available to functionality declared in Sphinx configs or extensions
1 participant