ols icon indicating copy to clipboard operation
ols copied to clipboard

Switch enum autocompletion is not being limited to missing cases in case above others.

Open thetarnav opened this issue 1 year ago • 2 comments

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

thetarnav avatar Aug 13 '24 16:08 thetarnav

It might not be possible to fix without the parsing being more fault tolerant. I'll have to check.

DanielGavin avatar Aug 13 '24 18:08 DanielGavin

Yeah it does seem this has to be fixed in core:odin.

DanielGavin avatar Oct 03 '24 19:10 DanielGavin