Fix: include azure_roles.json in wheel package data

The pyproject.toml packaging config only included .py files, so
azure_roles.json (682 Azure role names) never made it into the built
wheel/Docker image. This silently broke the 'roles: [...]' array
completion feature in production even though the code and local dev
worked fine (repo files were always on disk locally).

Root-caused via a raw WebSocket JSON-RPC test against production that
returned 0 completion items for a roles array, despite the same logic
returning 682 items when exercised directly against the local module
in this repo.
This commit is contained in:
2026-08-14 17:04:41 +02:00
parent 4e957133d0
commit 71738d856e

View File

@@ -24,6 +24,11 @@ ilsp = "ilsp.server:main"
where = ["."]
include = ["ilsp*"]
[tool.setuptools.package-data]
"ilsp.bicep_lsp" = ["*.json"]
"ilsp.yaml_lsp" = ["*.json"]
"ilsp.python_lsp" = ["*.json"]
[project.optional-dependencies]
dev = [
"pytest>=8.0",