nickel icon indicating copy to clipboard operation
nickel copied to clipboard

[LSP] Improve printing of large record contracts during completion

Open ebresafegaga opened this issue 2 years ago • 1 comments

Currently, if we have a large record contract associated with an identifier, the LSP output in the editor displays a truncated contract. This can be confusing to a lot of users. The LSP should display just enough information that will be useful to the user.

ebresafegaga avatar Feb 02 '23 12:02 ebresafegaga

Update: I think it might be linked to #1349. A solution to #1349 could provide a pretty printer configuration where we print record fields and the attached type and contracts, but ignore e.g. documentation (that is printed in the window below anyway on hover) and values (or maybe values if they're not a record, or any heuristics to provide the most relevant information).

yannham avatar Jun 12 '23 11:06 yannham