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 folding range for function body when parameters contain a container type #2136

Open
Vexu opened this issue Jan 6, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Vexu
Copy link
Contributor

Vexu commented Jan 6, 2025

Zig Version

0.14.0-dev.2609+41786fabf

ZLS Version

0.14.0-dev.329+19421e0f

Client / Code Editor / Extensions

vscode

Steps to Reproduce and Observed Behavior

pub fn foo(a: u32, b: u32, c: enum { // folding range here
    a,
    b,
    c,
}, d: u32) void { // but not here
    _ = a;
    _ = b;
    _ = c;
    _ = d;
}

Expected Behavior

I expect there to be a folding range for the container type and the function body but there is only one for the container type.

Relevant log output

No response

@Vexu Vexu added the bug Something isn't working label Jan 6, 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