gleam icon indicating copy to clipboard operation
gleam copied to clipboard

LSP: Don't find node on function call, do find node on assignment, find node when de-structuring

Open lucasavila00 opened this issue 1 year ago • 1 comments

It's more what the Rust LSP does...

I constantly mis-hover a function argument, and the LSP shows the call. I constantly try to create a variable and hover it to inspect the type, but the assignment does not has hover.

This MR fixes both.

Is find_node used for important stuff or can it be changed to please the LSP UX?

lucasavila00 avatar Aug 12 '22 01:08 lucasavila00

Is find_node used for important stuff or can it be changed to please the LSP UX?

It's only used by LSP and is safe to change. The LSP is pretty basic and rough currently :)

lpil avatar Aug 12 '22 15:08 lpil