microsoft / microsoft/TypeScript
Extend Watchfile options to allow for watching some files with higher priority.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.4k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
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:
- I make a change to my sever code (i.e. django app)
- Which generates a change to the schema (graphql, openapi, protobuff)
- Which generates some new typescript code
- 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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Das Issue nennt TypeScript's watchfile options, den TypeScript language server und VSCode IntelliSense, aber keine Quelldateien oder Tests. Beginne damit, die Watch-Verarbeitung des language servers und seine vorhandenen watch options zu finden; die Arbeit ist abgeschlossen, wenn eine angegebene Gruppe von Dateien mit höherer Priorität überwacht werden kann und generierte TypeScript-Aktualisierungen IntelliSense umgehend erreichen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript, vscode
- Bereich
- developer-experience, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100