We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
0.14.0-dev.1511+54b668f8a
0.14.0-dev.147+dd78968
VS Code
If you use Go To Declaration on baz ZLS jumps you to foo.
baz
foo
const foo = 0; const bar = foo; const baz = bar; // Go To Declaration on baz jumps to `foo`
Go To Declaration should respect aliasing and take you to bar instead of foo. This works correctly if you Go To Declaration on bar instead:
bar
const foo = 0; const bar = foo; const baz = bar; // Go To Declaration on bar correctly jumps to `const bar = ...`
No response
The text was updated successfully, but these errors were encountered:
are you sure youre using goto declaration and not goto definition? this is working as expected for me
Sorry, something went wrong.
Yes. The behavior is the same for go to definition and go to declaration with the baz case. Perhaps this has been fixed in a more recent version.
No branches or pull requests
Zig Version
0.14.0-dev.1511+54b668f8a
ZLS Version
0.14.0-dev.147+dd78968
Client / Code Editor / Extensions
VS Code
Steps to Reproduce and Observed Behavior
If you use Go To Declaration on
baz
ZLS jumps you tofoo
.Expected Behavior
Go To Declaration should respect aliasing and take you to
bar
instead offoo
. This works correctly if you Go To Declaration onbar
instead:Relevant log output
No response
The text was updated successfully, but these errors were encountered: