Wilfred Hughes 031930de60 fix: Truncate display version of commands consistently
In #20327 we started truncating custom check commands so they render
nicely in the IDE. This was then accidentally undone in
9c18569d0c87d7f643db50b4806b59642762f1c3, and ended up making the
command summary longer (it included full paths).

We ended up with a `Display` implementation and a `display_command`
function that both tried to solve the same problem. I've merged and
simplified the logic and added tests.
2026-02-03 15:53:41 +00:00
..
2025-06-23 00:50:22 +03:00