-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
completions for anonymous struct parameters only happen if the struct type and function are defined in a different file #1617
Comments
Parser limitation - try it with #1536 or It has to do with syntax errors and the type node being after the current node. |
i have another issue to report where completions for configs like this are given instead of for the struct fields in cases where the function returns a type. is this related? i can open a new issue if not |
It's the |
yeah thats it lol, will open an issue |
#1618 i also noticed that |
zls/src/features/completions.zig Lines 1375 to 1382 in 71d2c33
A |
The parser limitation is known and tracked in a number of other issues, the issues raised in the comments were fixed in the above linked PR. |
Zig Version
0.12.0-dev.1680+be6f76655
Zig Language Server Version
0.12.0-dev.248+62f17ab
Steps to Reproduce
request completions, none appear. move
Config
andfoo
into a separate filerequest completions and they correctly appear
Expected Behavior
completions should always be given
Actual Behavior
inconsistent
The text was updated successfully, but these errors were encountered: