zls icon indicating copy to clipboard operation
zls copied to clipboard

`CR` and `LF` appear in type hint when there is newline character

Open CrazyboyQCD opened this issue 1 year ago • 0 comments

Zig Version

0.14.0-dev.121+ab4c461b7

Zig Language Server Version

fbd8b9a87a3cd5ab8389054815d9e3f81dfd430b

Client / Code Editor / Extensions

VsCode 1.90.2

Steps to Reproduce and Observed Behavior

OS: Window 11

Define anonymous struct, enum or union like this:

fn F(j: struct {
    b: i32,
}) i32 {
    return j.b;
}
const a = F;

And this is how type hint look like: image

Expected Behavior

Ignore the newline character and display the fields in one line.

Relevant log output

No response

CrazyboyQCD avatar Jul 09 '24 09:07 CrazyboyQCD