Allow content mappers emit diagnostics with different severity levels

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
53/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
tooling

Hướng nghiên cứu

Start by tracing how content mappers return diagnostics and where those diagnostics are classified as errors. The issue does not name files or tests, so locate the mapper diagnostic types and their callers first. Done means content mappers can report warnings while existing diagnostics remain errors; verify the behavior with relevant tests, including a warning from a Svelte mapper.

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

Mô tả

Suggestion
🔍 Search Terms

content mappers, diagnostics, warning

✅ Viability Checklist
⭐ Suggestion

Currently, all diagnostics returned by a content mappers are treated as errors. It would be nice if content mappers could also produce warnings.

📃 Motivating Example

For example, a Svelte content mapper could emit warnings for the svelte's compiler warnings.

💻 Use Cases
  • Compiler warnings in compiled languages
  • Flagging duplicate keys in simple formats that allow them
  • Flagging trailing commas in json.
Ngôn ngữ chính
Go
Star
112k
Fork
15.4k
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
126

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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.

Issue khác của microsoft/TypeScript

Tất cả issue của microsoft/TypeScript

Issue tương tự

Thêm issue về Go

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.