df0fabd4fb
Add repo-local northstars and ready slices for testing strategy, LSP/editor completion, and hemplate highlighting boundaries.
1.3 KiB
1.3 KiB
id, type, status, parent, title, refs
| id | type | status | parent | title | refs | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| SLICE-0005 | slice | ready | NS-0002 | Prove LSP diagnostics parity with hemx-build |
|
Objective
Make LSP diagnostics a faithful editor transport for hemx-build diagnostics across open, change, save, close, and CLI file checks.
Authority
docs/diagnostics.md and REQUIREMENTS.md diagnostics/004, diagnostics/005, and check/001 require editor overlays to share compiler authority and preserve useful spans.
Close when
- A focused LSP test opens an invalid
.hemldocument and observes the same diagnostic code/severity/range as thehemx-lsp diagnostics FILE.hemlpath. didChangeupdates diagnostics from in-memory text.didSavewith and without text uses the documented source of truth.didCloseclears diagnostics.
Verification
cargo test -p hemx-lspcargo run -p hemx-lsp -- diagnostics <fixture>.hemlcargo check --workspaceif public LSP/build types change.
Non-goals
- Do not implement a second
.hemlparser in the LSP. - Do not add provider-specific VS Code/Neovim behavior in this slice.
Evidence
hemx-lsp/src/main.rs already has diagnostics CLI and LSP publish paths that can be covered with protocol tests.