gleam icon indicating copy to clipboard operation
gleam copied to clipboard

Add annotation printer

Open omprakaash opened this issue 10 months ago • 3 comments

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

omprakaash avatar Apr 18 '24 16:04 omprakaash

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.

omprakaash avatar Apr 27 '24 10:04 omprakaash

Is this stable? I can complete #3001 if so

raquentin avatar May 20 '24 21:05 raquentin

Thank you!! Gunna use this as a dev branch while v1.2.0 is worked through.

lpil avatar May 24 '24 21:05 lpil