microsoft / microsoft/TypeScript

Extend Watchfile options to allow for watching some files with higher priority.

Aperta
#54,511 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Awaiting More Feedback Suggestion
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
1g 19h
PR unite (30g)
117

Descrizione

Suggestion

🔍 Search Terms

  • Watch specific file
  • Restart part of TS server
  • send an event to ts server

✅ Viability Checklist

My suggestion meets these guidelines:

  • 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 feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

Provide the ability to watch some files closely for changes to make VSCode intellisense work faster.

📃 Motivating Example

I generate a some typescript code from an openapi specification, and the typescript language server fails to update the types in a timely manner.

💻 Use Cases

I want to use this to create a much much faster feedback loop between the API client type and the API sever contract.
Here is a possible flow:

  1. I make a change to my sever code (i.e. django app)
  2. Which generates a change to the schema (graphql, openapi, protobuff)
  3. Which generates some new typescript code
  4. Which is instantly available for my IDE, as if the server code was written in typescript in the same project.

All of this hopefully happens as fast as possible (maybe 250ms is reasonable)

Imagine TRPC, but make it for language-agnostic backends.

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

La issue nomina le watchfile options di TypeScript, il TypeScript language server e VSCode IntelliSense, ma non indica file sorgente né test. Inizia individuando la gestione di watch del language server e le watch options già esistenti; il lavoro è completato quando è possibile monitorare un insieme specificato di file con priorità più alta e gli aggiornamenti TypeScript generati raggiungono rapidamente IntelliSense.

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

Valutazione

Stack tecnologico
typescript, vscode
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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.