swyddfa / esbonio

A language server for working with Sphinx projects.
https://docs.esbon.io/
121 stars 21 forks source link

Don't override sphinx's logging setup anymore #767

Closed alcarney closed 2 months ago

alcarney commented 2 months ago

The sphinx agent no longer overrides Sphinx's logging setup and instead re-directs all output to stderr. The parent language server can monitor stderr and forward any output to the client. By not overriding Sphinx's logging setup, all features like suppress_warnings should now also work as expected. (Closes #695)

We can still extract the diagnostic info we need by converting the logging handler to a simple filter