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

inlay hints for merged error sets show the entire body of the error type #1828

Open
xdBronch opened this issue Mar 13, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@xdBronch
Copy link
Contributor

Zig Version

0.12.0-dev.3245+4f782d1e8

Zig Language Server Version

0.12.0-dev.490+fd3b5af

Client / Code Editor / Extensions

No response

Steps to Reproduce and Observed Behavior

test {
    const not_merged = @as(error{ a, b, c, d, e, f, g, h }, undefined);
    const merged = @as(error{ a, b, c, d } || error{ e, f, g, h }, undefined);

    _ = not_merged;
    _ = merged;
}

image

the problem becomes much worse with many error types in the stdlib due to doc comments on each error

Expected Behavior

error set should be truncated similar to what was done in #1822

Relevant log output

No response

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