gleam icon indicating copy to clipboard operation
gleam copied to clipboard

LSP: support inlay hints and/or automatic annotation insertion

Open lpil opened this issue 1 year ago • 4 comments

https://github.com/gleam-lang/gleam/pull/2393

lpil avatar Dec 21 '23 16:12 lpil

Hey can I continue working on this ?

omprakaash avatar Dec 29 '23 20:12 omprakaash

You can! Thank you

lpil avatar Dec 30 '23 15:12 lpil

import mod1.{Value as V1}
import mod2.{Value as V2}

pub fn main() {
  let x: V1 = mod1.v()
  let y: V2 = mod2.v()
  #(x, y)
}

I am a bit confused on how to handle qualified imports like those In the above code block. Would the inlay-hints for the return type of main be #(V1, V2) or #(Value, mod2.Value) like in the docs ?

omprakaash avatar Jan 14 '24 15:01 omprakaash

The former, it should be valid code for the file being viewed.

lpil avatar Jan 15 '24 09:01 lpil

Hi @lpil, should I close https://github.com/gleam-lang/gleam/issues/2319 and use this issue for tracking inlay hint feature ?

septemhill avatar Apr 23 '24 01:04 septemhill

Oh! There's more info in yours so lets use that one

lpil avatar Apr 25 '24 10:04 lpil