yoavbls/pretty-ts-errors

symbol links can point to wrong symbol when error message is a duplicate, but differs in type.

已關閉

#143 建立於 2025年10月13日

 (1 則留言) (0 個反應) (0 位負責人)TypeScript (110 個分叉)batch import
buggood first issue

倉庫指標

星標
 (14,104 顆星)
PR 合併指標
 (平均合併 44分鐘) (30 天內合併 3 個 PR)

描述

Describe the bug After adding examples/example.js I noticed the symbol link is bugged when you happen to have identical error messages, that happen to be unrelated. It is a very niche case that probably does not happen in real world applications, but something to fix nonetheless.

Expected behavior I expect the formatted error message to reference the correct symbol for both errors.

Observed behaviour The formatted error message may reference the incorrect symbol, depending on which error message happens to be formatted and cached first.

Screenshots The reference should point to the Person type in the same file (blue line), instead depending on a duplicate formatted message that may be cached it could point to the wrong file (red line).

貢獻者指南