ols
ols copied to clipboard
Switch enum autocompletion is not being limited to missing cases in case above others.
Enum :: enum {A, B, C, D, E}
e: Enum
switch e {
case . // autocompletions: .A, .B, .C, .D, .E
case .A, .B:
case . // autocompletions: .C, .D, .E
}
https://github.com/user-attachments/assets/6911ce12-08a4-4679-868d-344b52d103db
It might not be possible to fix without the parsing being more fault tolerant. I'll have to check.
Yeah it does seem this has to be fixed in core:odin.