If you use a variable declaration like so:
local foo, bar, baz;
Then only “foo” will show in the code completion dropdown as an option. “bar” and “baz” are still recognized correctly as variables in subsequent code (they don’t show up as “Unrecognized global variable …”), but for some reason don’t show up in the dropdown.