Typing ... currently triggers completion, but it could be more helpful:
It would make sense for variables of type Int to have priority here (length in this case). Variables that can not be used should not be listed (Bool, Float).
Templates probably shouldn't be listed at all, neither should functions with a Void return value.
Might be nice to trigger completion when typing a space after in too, in the case of for each loops (for (i in array) for example). Instances with an iterator() are relevant here.
We might prevent the templates to pop in this case, but technically there could be many ways to get the iteration count so we shouldn't hide anything else.
Typing
...
currently triggers completion, but it could be more helpful:It would make sense for variables of type
Int
to have priority here (length
in this case). Variables that can not be used should not be listed (Bool
,Float
).Templates probably shouldn't be listed at all, neither should functions with a
Void
return value.Might be nice to trigger completion when typing a space after
in
too, in the case of for each loops (for (i in array)
for example). Instances with aniterator()
are relevant here.