38794cfa6d
Update work graph verification references from work to workledger.
2.4 KiB
2.4 KiB
id, type, status, title, refs
| id | type | status | title | refs | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| NS-0002 | northstar | ready | LSP and editor experience completion |
|
Objective
Complete the .heml editor experience around existing compiler/build authority: diagnostics parity, completion, hover, cross-file facts, and correct LSP protocol behavior without inventing a second template language or editor framework.
Authority
docs/editor-support.mdsays.hemlauthoring should feel like HTML first and layer hemx diagnostics/completions/hover on top.docs/hemplate-syntax.mdis the stable syntax surface; LSP must not invent Vue/Handlebars-like syntax.docs/diagnostics.mdkeeps editor overlays subordinate to compiler/build diagnostics.REQUIREMENTS.mddiagnostics/004throughdiagnostics/008andcheck/001/check/003constrain editor overlays, spans, completion, hover, and build-visible validation.hemx-lsp/src/main.rscurrently owns the CLI/LSP implementation surface.
Close when
- Diagnostics parity slices prove LSP-published diagnostics match
hemx-buildCLI diagnostics for open/save/file paths. - Completion slices cover hemplate directives,
data-hemx-*attributes, and context-sensitive generated facts without requiring external editor state. - Hover slices explain real hemplate syntax and hemx attributes from docs authority.
- Cross-file fact slices describe what must fail at
cargo checkand what can remain editor-only. - LSP protocol slices cover initialize, sync, completion, hover, diagnostics clearing, and error responses with tests.
Verification
workledger checkworkledger list- Later implementation slices should prefer focused
cargo test -p hemx-lsp/integration tests, thencargo check --workspaceorcargo run -p hemx-xtask -- testwhen build integration changes.
Non-goals
- Do not build a custom editor framework, formatter, Rust type system, selector model, or second
.hemlparser. - Do not make VS Code/Cursor/Neovim provider behavior the source of truth; provider glue stays downstream of LSP/build facts.
- Do not add external publishing/signing flows without explicit authority.
Evidence
hemx-lsp/src/main.rsalready exposes diagnostics, completion, and hover entry points.docs/editor-support.mdanddocs/diagnostics.mddefine the editor/build boundary.