durkiewicz / elm-plugin

Elm language support plugin for IntelliJ IDEA.
MIT License
136 stars 15 forks source link

Generated import clauses should be above non-module-doc-comments #37

Closed klazuka closed 7 years ago

klazuka commented 8 years ago

When adding an import clause with the unresolved reference Quick Fix, the generated import clause is currently being inserted after any comments following the module declaration. This behavior is correct when the comment is a module doc comment, but it is undesirable for regular one-line or multi-line comments.

BAD:

screen shot 2016-09-29 at 7 40 44 am

The line import Dict exposing (Dict) should be above the line -- TYPES

@durkiewicz please assign to me