Repository navigation
Description
Problem
Developers using Helix need Citry assistance in Python components and standalone templates. Feedback specifically identifies losing normal JavaScript editing features inside component strings as a reason to avoid that authoring style.
The current checkout has a reusable citry-lsp, but no verified Helix setup. Some Citry-specific diagnostics, completion, hover, and navigation use standard LSP. General embedded JavaScript assistance currently depends on a VS Code provider bridge.
Proposed work
- Provide a tested
languages.tomlsetup that launches the project'scitry-lspalongside its Python language server, including selection of the app whose registered components the server should load. - Support Python components and standalone Citry templates without taking over unrelated HTML files or losing normal Python assistance.
- Add Tree-sitter queries/configuration for embedded language highlighting where supported. Treat highlighting and language-server features as separate capabilities.
- Document installation, how Helix finds the server, which features require loading the app, and which server's answer takes precedence when several respond.
- Publish an honest capability list and connect general embedded JavaScript assistance to the shared language-service issue linked below.
Acceptance criteria
A reproducible Helix example demonstrates Citry diagnostics, completion, hover, and navigation in supported source regions. Ordinary Python assistance still works. Missing server or invalid app configuration has documented recovery. The guide records the tested editor version and distinguishes verified support from remaining gaps.
Baseline integration can ship before full JavaScript language-service support. Browser debugging is tracked separately.
References
- Helix language-server configuration
packages/py/citry_lsp/docs/design/embedded_language_ide.md
Related work
- Shared JavaScript language service: IDE: provide shared JavaScript language-service support through citry-lsp #116
- Source-mapped debugging: Debugging: map running component JavaScript back to authored source #117
Activity