Requires py3.8 and up.
Use UV to manage virtual environment and run scripts.
Install dependecies:
uv venvDownload the latest json schema:
uv run download_schemas.pyGenerate the types and fix some issues by triggering formatting:
uv run generate.py
uv run ruff formatCopy the lsp_types.py file to your project.
NOTE: Do not import types that begin with __. These types are internal types and are not meant to be used.