Hi!
The following code snippet illustrates the issue. I have a feeling this might not be easy 😰
test :: proc () {
pokemon: Snorlax
if // pokemon does not appear as an autocomplete here, because Snorlax is invalid due to the incomplete if
Snorlax :: struct {}
}
This issue does not require the Type to be directly under the incomplete if.

Everything is "invalid" until the `if` is closed, and nothing is autocompleted.
A "solution" is to close the incomplete if with {}, but it's somewhat cumbersome to do.
I'm not too hopeful about this, so feel free to close this issue if it's impossible, but I thought I'd mention it regardless.
Cheers!