microsoft / microsoft/TypeScript
Provide an editor-level warning when including output files
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
Something that we noticed with internal codebases, as well as even with RxJS is that tsconfig.jsons are incorrectly configured for editor scenarios and include folders like dist and lib. This means you end up with slower performance, and noisy auto-imports.
We already provide some sort of error here when compiling, but we don't provide the same error in editor scenarios.
Open questions:
- How is this information presented to the user? How is the editor given notice that it should alert a user about this?
- What exactly does it mean to include an output file? In the case of RxJS, there are no "output files" getting included in the compilation based on how we determine a file is an an output of input files. Specifically, the root-level
tsconfig.jsondoesn't specify anoutDir, so it doesn't know that it should avoid includingdist. Maybe we can use some directory-naming heuristics when we find one folder namedsrcand another nameddistorlib?
Guida per i contributori
Apri la guida per i contributori
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.
Direzione di ricerca
Inizia con l’errore esistente del compilatore per i progetti che includono file di output e confronta il modo in cui lo stesso tsconfig.json viene gestito negli scenari dell’editor. Chiarisci come notificare l’editor e cosa viene considerato un file di output, quindi definisci il comportamento dell’avviso e le regole di rilevamento come criteri di completamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- developer-experience, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100