microsoft / microsoft/TypeScript
Include results from `--extendedDiagnostics` when using the compiler API
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 1g 19h
- PR unite (30g)
- 117
Descrizione
🔍 Search Terms
extendedDiagnostics, compiler API
✅ Viability Checklist
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
⭐ Suggestion
For users of the TypeScript compiler API, it would be extremely useful to include the performance statistics obtained when using the --extendedDiagnostics compiler option.
From the review I've done in this codebase, it seems like this performance information is only reported when invoking tsc directly.
📃 Motivating Example
"The compiler API can now report performance information when enabling the extendedDiagnostics compiler option"
💻 Use Cases
- What do you want to use this for? Investigating performance variations in a project that interacts with TypeScript using the compiler API.
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 tracciando il modo in cui l’opzione --extendedDiagnostics segnala le informazioni sulle prestazioni quando viene invocato tsc, quindi confronta questo percorso con l’API del compilatore. Definisci come l’API del compilatore dovrebbe esporre queste statistiche e verifica che un consumer dell’API del compilatore possa recuperarle per analizzare le prestazioni.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- compilers, performance
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100