halohalospecial / atom-elmjutsu

A bag of tricks for developing with Elm. (Atom package)
https://atom.io/packages/elmjutsu
MIT License
192 stars 24 forks source link

Autocompletion of function call whose type contains type variable #60

Closed aravantv closed 7 years ago

aravantv commented 7 years ago

Step-by-step:

  1. in any source file, type in Result.m (really, just 'm') -> the context menu should display Result.map as the first entry
  2. press enter to complete your entry into Result.map

Observed: Result.map (a -> value) Result.Result x a gets inserted into the source code

However would be nicer, in my opinion, to have: Result.map (a -> value) (Result.Result x a)

The current behaviour gives the misleading impression that the function has 4 arguments. It's even more annoying if there are more parameters after the second argument: one really has to think where arguments begin or end.

halohalospecial commented 7 years ago

Good idea! Thanks for the suggestion!

halohalospecial commented 7 years ago

This is already in the latest version (v5.1.1). Thanks again!

aravantv commented 7 years ago

No way. You're a machine. Thank you!!!