Open
Description
Zig Version
0.12.0-dev.978+78855bd21
Zig Language Server Version
Steps to Reproduce
const E = enum {
foo,
bar,
baz,
fn foo(e: E) void {
switch (e) {.<ask for completions here>}
}
};
Expected Behavior
List all fields of E
i.e. foo
, bar
and baz
.
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.