Module related_info

Module related_info 

Source
Expand description

Filter for deduplicating diagnostics based on related information arrays.

Extracts user_data.lsp.relatedInformation entries and skips root diagnostics whose rendered information is already represented, reducing noise (especially repeated hints).

Structs§

RelatedInfo 🔒
Common shape of a root LSP diagnostic and the elements of its “user_data.lsp.relatedInformation”.
RelatedInfoFilter
Filters out diagnostics already represented by other ones (e.g. HINTs pointing to a location already mentioned by other ERROR’s rendered message)