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

AST support : Context sensitive auto-completions for import module names #240

Open
rundis opened this issue Sep 28, 2016 · 0 comments
Open

Comments

@rundis
Copy link
Contributor

rundis commented Sep 28, 2016

Summary

When the user has started an import declaration, with the cursor in the position where you should provide a module name for the import, an editor should be able to provide a list of applicable module names.

Discussion/Challenges

  1. For this feature to work, you need to be aware of all project modules including modules from 3rd party dependencies (+ default imports). This might be out of scope for AST support as such.
  2. For this too work at all, the AST would have to support being in an illegal state

Details

Let's say I've imported HTML and I'm in a module where everything is in a legal state, I then write

import Ht - I should now get a suggestion of Html, Html.App etc

  • Need to be able to list all import declaration nodes, to be able to filter dupes
@avh4 avh4 added the discussion label Mar 8, 2017
@avh4 avh4 modified the milestone: 2.0.0 public AST Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants