microsoft / microsoft/TypeScript

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

Đang mở
#54,511 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Awaiting More Feedback Suggestion
Ngôn ngữ chính
Go
Star
111k
Fork
14.4k
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
117

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Issue nêu các watchfile options của TypeScript, TypeScript language server và VSCode IntelliSense, nhưng không có tệp nguồn hay bài kiểm thử nào. Hãy bắt đầu bằng cách xác định phần xử lý watch của language server và các watch options hiện có của nó; công việc hoàn tất khi có thể theo dõi một tập hợp tệp được chỉ định với mức ưu tiên cao hơn và các cập nhật TypeScript được tạo ra đến IntelliSense một cách kịp thời.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript, vscode
Lĩnh vực
developer-experience, tooling
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.