zed-gdscript icon indicating copy to clipboard operation
zed-gdscript copied to clipboard

Variables not listed after NOT operator

Open kraftwer1 opened this issue 4 months ago • 1 comments

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?

kraftwer1 avatar Aug 18 '25 12:08 kraftwer1

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:

Image

However, if I type ! and then quickly type is without waiting, then all I see is this:

Image

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

fstxz avatar Aug 18 '25 13:08 fstxz