zls
zls copied to clipboard
completion label sorting should unescape identifiers
Zig Version
0.17.0
ZLS Version
0.18.0-dev.29+8de40aa3
Client / Code Editor / Extensions
VSCodium (1.140.0)
Steps to Reproduce and Observed Behavior
const E = enum {
a,
@"b ",
c,
};
test {
E.<ask completion here>
}
The results are ordered like this:
@"b "ac
Expected Behavior
The expected order is this however:
a@"b "c
An escaped identifier should be ordered by the inner content b instead.
Attach ZLS log output
No response
Related issue on whether completions should be sorted by name in the first place: #1792