Skip to content

Esbonio Language Server v0.13.1 - 2022-06-29

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Jun 22:59
· 0 commits to c474114f8a15932ffcf29121e768f441687efe02 since this release

v0.13.1 - 2022-06-29

Fixes

  • Log messages from Sphinx's startup are now captured and forwarded onto the language client. (#408)
  • Log messages from the server's startup are now captured and forwarded onto the language client. (#417)
  • Fixed handling of default roles when getting a document's initial doctree. (#418)

API Changes

  • Improved type annotations allow rst.get_feature to be called with a language feature's type and have the return type match accordingly. This should allow editors to provide better autocomplete suggestions etc. (#409)

  • esbonio_setup functions can now request specific language features and servers, just by providing type annotations e.g:

    from esbonio.lsp.roles import Roles
    from esbonio.lsp.sphinx import SphinxLanguageServer
    
    def esbonio_setup(rst: SphinxLanguageServer, roles: Roles):
        ...
    

    This function will then only be called when the language server is actually an instance of SphinxLanguageServer and only when that lanuage server instance contains an intance of the Roles feature. (#410)

Deprecated

  • Calling rst.get_feature with a string will become an error in v.1.0, a language feature's class should be given instead. (#409)