f605c9ee74
Update workledger status for completed diagnostics, completion, hover, and protocol LSP slices.
1.5 KiB
1.5 KiB
id, type, status, parent, title, refs
| id | type | status | parent | title | refs | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| SLICE-0005 | slice | done | 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
Done at commits 6cf800c and verified again at 38794cf with cargo test -p hemx-lsp: protocol tests cover build-equivalent diagnostics publishing on didOpen/didSave, clearing on didChange/didClose, and file-backed didSave without in-memory text.