Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typeDefinition goes to variables type annotation when provided instead of the types definition #2020

Open
xdBronch opened this issue Sep 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xdBronch
Copy link
Contributor

xdBronch commented Sep 2, 2024

Zig Version

0.14.0-dev.1407+0b9fccf50

ZLS Version

0.14.0-dev.145+ace6f6d

Client / Code Editor / Extensions

No response

Steps to Reproduce and Observed Behavior

const S = struct {};
const A: S = S{};
const B = S{};

goto type definition on A takes you to its own type annotation while doing so on B takes you to the actual definition of S

Expected Behavior

both should go to the definition of S

Relevant log output

No response

@xdBronch xdBronch added the bug Something isn't working label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant