Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

LSP: trace navigation through hierarchy requests, document links and document symbols

Aperta
#385 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

Direzione di ricerca

Start with the syscribe lsp entry point and ADR-SYS-LSP-001, then inspect the existing references and code lens implementations and their tests. Add coverage for hierarchy requests, document links, symbols, folding ranges, and workspace symbols based on the acceptance criteria. Done means the specified trace relationships, prose links, and ordered TestCase scenario outline are returned; selection ranges and semantic tokens remain out of scope.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Part of #380.

Current state

References and code lens counts exist (N verifiedBy · N derivedChildren), but the user cannot walk the trace. Ids written in the Markdown body (see REQ-X-004) are plain text. The outline is empty.

Proposal

  1. Hierarchy requests as the trace. Implement textDocument/prepareTypeHierarchy + typeHierarchy/supertypes/subtypes for requirements, mapping parents to derivedFrom: and children to the derived children; callHierarchy incoming/outgoing for satisfies/verifies (satisfier and verifier of a requirement; the requirements a test covers). Standard requests, so an editor's built-in hierarchy view becomes a requirements trace without custom UI.
  2. Document links (textDocument/documentLink): every resolvable stable id or qualified name in the body and in free-text fields becomes a link; unresolved ones are not linked.
  3. Document symbols (textDocument/documentSymbol) for the outline: the element with its main fields, and for a TestCase each Gherkin scenario; for a StateDef its states. Folding ranges for the frontmatter and fenced blocks.
  4. Workspace symbols gain containerName (package) and a kind per element type, so search groups sensibly.
  5. Selection range / semantic tokens are not in scope.

Acceptance (tests first)

  • The type hierarchy of a leaf requirement returns its parent chain; subtypes returns its derived children.
  • The call hierarchy of a requirement lists its satisfiers and verifying tests; of a test, the requirements it verifies.
  • documentLink returns a link for an id in prose and none for an unknown token.
  • The outline of a TestCase lists its scenarios in order.

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sjames/syscribe

Tutte le issue di sjames/syscribe

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.