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

LSP: configuration (variant) awareness for diagnostics, inactive elements and hover

Aperta
#383 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à
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, rust

Direzione di ricerca

Start in the syscribe lsp implementation and its existing diagnostics, hover, and code lens paths; the issue names no file or test paths. Read ADR-SYS-LSP-001 and the configuration projection used by validate --config and why-active. Add configuration-aware diagnostics and navigation, configuration-change handling, and the syscribe.validateAllConfigurations command; done when the three acceptance tests pass.

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

Descrizione

Part of #380.

Current state

The model is validated as a whole (the 150 % model). The CLI can project onto a product (validate --config C, why-active, --all-configs), but the language server has no notion of a configuration, so a user working on one product's requirements sees findings and navigation for all products mixed.

Proposal

  1. Selecting a configuration. An initialization option and a workspace/didChangeConfiguration setting syscribe.configuration (a Configuration id, or empty for the whole model). Standard LSP configuration mechanisms only.
  2. Diagnostics for the selected product. Publish the findings of the projected model (validate --config), including W019/E226 escaping references for that variant; with none selected, behave as today.
  3. Inactive elements. A document whose element is inactive in the selected configuration gets an informational diagnostic ("not active in CONF-X: appliesWhen: Features::…") with DiagnosticTag.Unnecessary (so editors grey it) instead of the findings of the full model.
  4. Hover and code lens. Hover shows whether the element is active and why (why-active); the lens adds active in N of M configurations.
  5. Whole-product gate. A command syscribe.validateAllConfigurations (via workspace/executeCommand) returns a summary the client can show.

Acceptance (tests first)

  • With a configuration selected, an element gated off by appliesWhen produces the "inactive" hint and none of its own findings.
  • Changing the configuration setting republishes diagnostics without restarting the server.
  • With no configuration selected, output is byte-identical to today's.

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
3h 13m
PR unite (30g)
61

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.