zls icon indicating copy to clipboard operation
zls copied to clipboard

No folding range for function body when parameters contain a container type

Open Vexu opened this issue 1 year ago • 0 comments

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 avatar Jan 06 '25 10:01 Vexu