swyddfa / esbonio

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

Introduce `CompletionTriggers` #829

Closed alcarney closed 3 weeks ago

alcarney commented 3 weeks ago

Replacing the previous list of re.Patterns, language features now need to declare a CompletionTrigger which describes the conditions required before completions should be triggered.

This allows features to declare, in addition to the patterns, the language and trigger characters they require. (Closes #413)

By limiting the existing features to the languages they support fixes #800

Lastly, the server will now include eval-rst in its list of completion suggestions for MyST files (Closes #799)