add `scope` setting for module placement and identifier queries

Aperta
#47 1 commento 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
rust
Ambito
backend

Direzione di ricerca

Start by locating Settings, into_codespace(), and the identifier query APIs, then trace how scope is currently passed through them. Check existing tests for module placement and scoped identifier queries; done means a setting controls placement and serves as the default query scope, while an explicit per-query scope still overrides it. The issue does not name specific files or tests, so identifying the relevant test coverage will take some repository exploration.

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

Descrizione

Every identifier query takes a scope argument, and a consumer whose types live in a module passes the same one on every call (progenitor passes "types" everywhere). Separately, into_codespace() decides where the types go. Nothing keeps the two in agreement.

We could add a scope field in Settings: into_codespace() honors it for module placement, and identifier queries default to it, so it's set once and the two can't disagree. The per-query scope argument stays as an override, since progenitor generates code both inside and outside the types module and needs the prefixed and unprefixed forms both; the setting only makes the common case implicit.

Lingua principale
Rust
Stelle
4
Fork
4
Merge medio
15h 16m
PR unite (30g)
26

Preparare l'ambiente

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 oxidecomputer/typespace

Tutte le issue di oxidecomputer/typespace

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.