gleam
gleam copied to clipboard
Add annotation printer
Adds an annotation printer class that is to be used for inlay hints/code annotations in the language server. This is similar to the pretty_printer, but also context aware. Ref: #2525
Hey, I changed the logic for annotation generation based on the earlier review and added some comments as well. I am still a bit unclear on how the current use of type_aliases
breaks generics (https://github.com/gleam-lang/gleam/pull/3007#discussion_r1575008618). Will add more test cases as soon that is fixed.
Is this stable? I can complete #3001 if so
Thank you!! Gunna use this as a dev branch while v1.2.0 is worked through.