usse/scrape/venv/lib/python3.10/site-packages/esbonio/lsp/sphinx/directives.py
2023-12-22 15:26:01 +01:00

11 lines
361 B
Python

import json
from esbonio.lsp.directives import Directives
from esbonio.lsp.sphinx import SphinxLanguageServer
from esbonio.lsp.util import resources
def esbonio_setup(rst: SphinxLanguageServer, directives: Directives):
sphinx_docs = resources.read_string("esbonio.lsp.sphinx", "directives.json")
directives.add_documentation(json.loads(sphinx_docs))