swyddfa / esbonio

A language server for working with Sphinx projects.

Home Page:https://docs.esbon.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detection of esbonio_setup not working for Sphinx

danwos opened this issue · comments

In the function _load_sphinx_extensions is a small bug, which prevents esbonio from detecting esbonio_setup().

if not hasattr(ext, "esbonio_setup"):

This should be if not hasattr(mod, "esbonio_setup"):
So mod instead of ext.
Then everything works fine.

I will try to find some time later for a PR.

PR is there: #383
It's only changing 3 little characters.