-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
no switch case completion on function inside container #1535
Comments
I keep repeating it, but before anyone dives into the completions logic — parser limitation.
|
Instead of expecting users to know about a workaround, this shouldn't be necessary. This issue with the parser should be investigated and resolved upstream. |
I don't mean to nag, simply posted it as a heads-up to anyone that might look into it, and the workarounds as a proof/way to verify that the issue stems from syntax errors. The reason I refer to it as limitation is that it's only an issue for third parties
I've experimented with passing I've also explored making additional changes, but not certain the benefits warrant supporting custom node tags. |
This appears to be fixed by #1536. |
Zig Version
0.12.0-dev.978+78855bd21
Zig Language Server Version
1a282b3
Steps to Reproduce
Expected Behavior
List all fields of
E
i.e.foo
,bar
andbaz
.Actual Behavior
no completions.
Hovering of
e
inside the switch expression yields no result which is the underlying problem.If you move
foo
outside of the enum, then it works.This looks like one of those situations where the parser goes crazy.
The text was updated successfully, but these errors were encountered: