zls icon indicating copy to clipboard operation
zls copied to clipboard

hover/goto should show something useful

Open leecannon opened this issue 2 years ago • 0 comments

Currently hover/goto (ctrl+hover in vscode) shows the first token in the declaration.

For example with std.builtin.AtomicOrder, goto hover over std displays pub and over builtin displays const as those keywords just happen to be at the beginning of std.zig and builtin.zig.

image image

I don't know exactly what we should show there but the current behaviour is at least vaguely useful for types and functions:

image image

leecannon avatar Jul 20 '23 21:07 leecannon