LSP: self-explaining diagnostics and richer requirement hover
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- backend-api-design, devtools
Direzione di ricerca
Start with the syscribe lsp implementation and the embedded rule catalogue, then review prompts/spec/validation.md, docs/validation/rules.md, ADR-SYS-LSP-001, and the existing LSP tests. The acceptance criteria describe checks for diagnostic links and explanations, related locations, and requirement hover verification details. Done means those behaviors are covered by tests and explanations come from the embedded catalogue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Part of #380.
Current state
Hover shows type, id, qualified name and status. A diagnostic shows the code and message but not what the code means, why it matters, or how to resolve it; the explanation exists (explain_finding over MCP, the rule catalogue prompts/spec/validation.md, docs/validation/rules.md) but is not reachable from the editor.
Proposal
Diagnostic.codeDescription.hrefpointing at the rule's documentation anchor, so the code is a link in editors that support it.- Related information where a finding involves another element (
relatedInformation: the conflicting duplicate id, the parent that lacks the ADR, the escaping reference's target), each a location the user can jump to. - Hover on a diagnostic range appends the catalogue explanation: what the rule checks, the usual cause, the usual fix, and the quick fix if one exists.
- Rich requirement hover: the requirement text (first lines), status,
reqDomain, parents and child count, satisfiers, and the verification state in the same vocabulary ascoverage tree(verified / planned / uncovered) with the last recorded test verdicts. - Severity and tags: map
I-class findings to Information and gate-able warnings to Warning; markDiagnosticTag.Deprecatedfor deprecated keys (W075). - Source of truth: take the catalogue text from the embedded rule catalogue, never a second copy; a test fails if an emitted code lacks an explanation.
Acceptance (tests first)
- A diagnostic carries
codeDescription.href, and the hover on it contains the catalogue explanation. - A duplicate-id finding carries
relatedInformationpointing at the other element. - The hover of a verified requirement shows
verifiedand its latest test verdicts; an uncovered one showsuncovered.
Part of #272. Scope: syscribe lsp only (standard LSP, ADR-SYS-LSP-001).
Generated by Claude Code
- Lingua principale
- JavaScript
- Stelle
- 8
- Fork
- 1
- Merge medio
- 1h
- PR unite (30g)
- 83
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sjames/syscribe
-
Format-preserving writes for structural frontmatter (features, connections, layout, shapes, edges)Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
sjames/syscribe#405 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
sjames/syscribe#398 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sjames/syscribe
Issue simili
-
enhancement javascript python
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
jlab-sensing/ENTS-backend#851 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
guilhermerodz/input-otp#157 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
davidjerleke/embla-carousel#1414 ·
I maintainer di solito rispondono entro 4 giorni
-
0. Needs triage bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno