vscode-js-import icon indicating copy to clipboard operation
vscode-js-import copied to clipboard

Add support for flow type imports

Open ganemone opened this issue 6 years ago • 7 comments

This adds support for automatically importing flow types

Fixes #12

ganemone avatar Feb 11 '19 15:02 ganemone

@ganemone The code seems has been formatted in this commit by prettier

wangtao0101 avatar Feb 13 '19 11:02 wangtao0101

@wangtao0101 Ok - I updated the PR to remove the formatting changes

ganemone avatar Feb 13 '19 17:02 ganemone

@wangtao0101 thoughts on getting this merged? Happy to make any more updates you ask for

ganemone avatar Mar 19 '19 16:03 ganemone

@ganemone I think we should not check 'src/index' for main entry, maybe you can scan both mainfile in packagejson and 'src/index'

wangtao0101 avatar Mar 20 '19 05:03 wangtao0101

@wangtao0101 I do check both src/index.js and package.json main. This is actually the way node.js will handle module resolution. See https://nodejs.org/api/modules.html#modules_all_together

ganemone avatar Mar 20 '19 15:03 ganemone

Curious what the status is of this PR? I was hunting for a vscode plugin that does auto imports of flow types and ran into this!

albertywu avatar Jun 27 '19 16:06 albertywu

I'm also looking for auto import of flow types. This plugin is already great and having the ability to import Flow types would really help me out.

Skurkify avatar Aug 23 '19 14:08 Skurkify