fix: yaml stdio per-connection, iac catalog path, makefile port
All checks were successful
Build and Deploy iLSP / test (push) Successful in 25s
Build and Deploy iLSP / build-and-deploy (push) Successful in 1m37s

- yaml-language-server: rewrite to stdio per WebSocket (fixes crash loop)
  vscode-jsonrpc v9 createServerSocketTransport is a TCP client, not server
  now spawns yaml-language-server --stdio per connection via asyncio subprocess

- bicep/modules.py: add /iac_source_catalog.json as first path in _IAC_SOURCE_PATHS
  Dockerfile copies to /iac_source_catalog.json but path wasn't listed

- server.py: remove YAML_LSP_PORT daemon (no longer needed with stdio mode)

- Makefile: add -e HTTP_PORT=$(HEALTH_PORT) to all docker run commands
  server defaulted to :8000 but Makefile exposed :2089 with no override
This commit is contained in:
Henrik Jess Nielsen
2026-05-10 16:37:42 +02:00
parent 2a1717ff81
commit ae751f944c
5 changed files with 52 additions and 38 deletions

View File

@@ -31,7 +31,8 @@ _CATALOG_PATHS = [
# IAC source catalog — richer param descriptions from Bicep source code
_IAC_SOURCE_PATHS = [
pathlib.Path("/data/iac_source_catalog.json"), # volume-mount
pathlib.Path("/iac_source_catalog.json"), # baked into Docker image
pathlib.Path("/data/iac_source_catalog.json"), # volume-mount (future)
pathlib.Path(__file__).parent.parent.parent / "iac_source_catalog.json", # dev
]