fdorg / flashdevelop

FlashDevelop is a free and open source code editor.
MIT License
823 stars 220 forks source link

[haxe] Completion in for loops is not very relevant #471

Open Gama11 opened 9 years ago

Gama11 commented 9 years ago

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.

elsassph commented 9 years ago

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.