zed-gdscript
zed-gdscript copied to clipboard
Variables not listed after NOT operator
I'm not sure if this is a bug or a missing feature.
Usually, variables get listed for code completion while typing:
var is_sunny_weather = true
if is_sun| # | is the text cursor and Zed would list "is_sunny_weather" in the appearing dropdown
However, it does not when there is a preceding NOT operator:
var is_sunny_weather = true
if !is_sun| # note the "!", and Zed does not list any local variables anymore
Any idea?
I am observing some strange behavior. For me, completion works fine if I type !, then i, then wait for the popup to appear, then s:
However, if I type ! and then quickly type is without waiting, then all I see is this:
Notice how not only did the local variable disappear, but also Godot's own functions like is_ancestor_of, etc. No idea what's going on there.
Upd: after a bit of testing, this only seems to happen when the variable starts with is