Open
Description
Zig Version
0.12.0-dev.899+027aabf49
Zig Language Server Version
Steps to Reproduce
- Paste the following code:
pub const bar = struct {
pub const baz = struct {
pub const Foo = struct {
a: u32 = 0,
};
pub fn qux() u32 {
return Foo{
.
};
}
};
};
test {
bar.baz.qux() == 0;
}
- No completions for
a

Note that if Foo
is moved to be defined inside bar
instead of baz
, it works as expected.
Expected Behavior
Completions for the Foo
struct fields should work
Actual Behavior
No completions for the struct fields