Skip to content
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 completion for decl literals in function parameters #2146

Open
xdBronch opened this issue Jan 15, 2025 · 0 comments
Open

no completion for decl literals in function parameters #2146

xdBronch opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@xdBronch
Copy link
Contributor

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 xdBronch added the bug Something isn't working label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant