microsoft / microsoft/TypeScript

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

Abierto
#54,511 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Awaiting More Feedback Suggestion
Lenguaje dominante
Go
Estrellas
111k
Forks
14.4k
Merge medio
1 d 19 h
PR fusionados (30 d)
117

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

El issue menciona las watchfile options de TypeScript, el TypeScript language server y VSCode IntelliSense, pero no menciona archivos fuente ni pruebas. Empieza por localizar el manejo de watch del language server y sus watch options existentes; el trabajo estará terminado cuando se pueda observar un conjunto especificado de archivos con mayor prioridad y las actualizaciones de TypeScript generadas lleguen rápidamente a IntelliSense.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript, vscode
Área
developer-experience, tooling
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.