zls icon indicating copy to clipboard operation
zls copied to clipboard

no completion for decl literals in function parameters

Open xdBronch opened this issue 1 year ago • 0 comments

Zig Version

0.14.0-dev.2638+04c9f50ae

ZLS Version

0.14.0-dev.345+f7888fc7

Client / Code Editor / Extensions

No response

Steps to Reproduce and Observed Behavior

pub fn main() void {
    foo(.<cursor>);
}
fn foo(_: E) void {}
const E = enum {
    tag,
    const decl: E = .tag;
};

request completions, only .tag is given. not sure if this is a different code path at all but also affects builtins/function-like keywords

Expected Behavior

both tag and decl should be provided as is done with variable assignment

Relevant log output

No response

xdBronch avatar Jan 15 '25 00:01 xdBronch