atom-elmjutsu icon indicating copy to clipboard operation
atom-elmjutsu copied to clipboard

Auto complete for nested constructors

Open joshhornby opened this issue 7 years ago • 1 comments

Hi, auto completion currently works for single level types, see Foo below. But autocomplete for Baz wouldn't work in the following example

type Foo = Bar Baz

type Baz = A | B | C

viewFoo : Foo -> Html Msg
viewFoo foo = 
    case foo of
         Bar baz -> 
             case baz of -> .. -- This won't auto complete

Are there plans for this feature?

Thanks for this great plugin :)

joshhornby avatar Dec 04 '17 15:12 joshhornby

Hi @joshhornby, that requires more involved parsing. Right now, only top-level functions are parsed. Might be better to include that in the plans for the Elm Language Server instead since it will require major rearchitecting :smile:

halohalospecial avatar Dec 06 '17 06:12 halohalospecial