Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto complete for nested constructors #106

Open
joshhornby opened this issue Dec 4, 2017 · 1 comment
Open

Auto complete for nested constructors #106

joshhornby opened this issue Dec 4, 2017 · 1 comment

Comments

@joshhornby
Copy link

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 :)

@halohalospecial
Copy link
Owner

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 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants