Allow content mappers emit diagnostics with different severity levels

未關閉
#64,932 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
53/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
typescript
領域
tooling

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.
主要語言
Go
星號
112k
分支
15.4k
平均合併
3 天 1 小時
30 天內合併 PR
136

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoft/TypeScript 的其他 Issue

查看 microsoft/TypeScript 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。