capaj / vscode-exports-autocomplete

finds javascript ES6 exports in your project and autocompletes them when writing javascript statements
MIT License
18 stars 6 forks source link

Feature Request: Understanding "import type" from flow #33

Open axelnormand opened 7 years ago

axelnormand commented 7 years ago

Thank you for a great plugin. Are there any plans to make this work with types from flow? ie understand the "import type" statement.

Or in the interim perhaps a setting to ignore any "import type" statements in a js file?

Thanks

capaj commented 7 years ago

There is a plan to support them now. Should be available in couple of weeks if I can get to it. I use flow on couple of projects myself, so I'll gladly add flow support.

ignore any "import type"

why do you ask for this? Is it interfering with something?

axelnormand commented 7 years ago

Brilliant! thanks. I only mentioned the ignore because the plugin added an auto-import to my "import type" line rather than the straight "import" line. Although now i can't seem to replicate that :)