You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that zls in vscode doesn't display the type when showing more information about a variable. Instead it shows the definition.
Here's an example of what I'm seeing with zls:
Compared to the information typically shown in other langs (e.g. Go):
According to the lovely folks in Discord (discussion) this is by design and not a bug, but something that could be improved.
The value in improving this is largely driven by the fact that in Zig the types of values are not always found at the location of the declaration. This isn't unique of Zig, plenty of other languages allow for this. ZLS could help provide this introspection that the source itself does not make clear.
The text was updated successfully, but these errors were encountered:
Hey Leigh, thanks for opening an issue! This is an awesome idea and the only problem I can see with this is types determined by some sort of comptime logic. Does anybody want to tackle this one? Else I can try and spin something up! :)
I've noticed that zls in vscode doesn't display the type when showing more information about a variable. Instead it shows the definition.
Here's an example of what I'm seeing with zls:

Compared to the information typically shown in other langs (e.g. Go):

According to the lovely folks in Discord (discussion) this is by design and not a bug, but something that could be improved.
The value in improving this is largely driven by the fact that in Zig the types of values are not always found at the location of the declaration. This isn't unique of Zig, plenty of other languages allow for this. ZLS could help provide this introspection that the source itself does not make clear.
The text was updated successfully, but these errors were encountered: