ChristianKohler / NpmIntellisense

Visual Studio Code plugin that autocompletes npm modules in import statements
MIT License
154 stars 43 forks source link

Improve quickpick #29

Open ChristianKohler opened 7 years ago

ChristianKohler commented 7 years ago

This is thread to collect ideas on how quickpick can be improved.

Some ideas:

dgieselaar commented 7 years ago

It'll probably be a bit difficult to get the exports for a module. The file might contain flow/typescript/jsx etc which makes it difficult for NpmIntellisense to parse. A solution might be to look for babel locally and parse the file.

dgieselaar commented 7 years ago

Another thing, my implementation also included local modules in addition to those in node_modules.

ChristianKohler commented 7 years ago

I added support for local modules with 1.1.0 but forgot to update the documentation. Fixed that with 1.2.1. See: https://github.com/ChristianKohler/NpmIntellisense#show-build-in-local-libs

dgieselaar commented 7 years ago

Sorry for the late reaction! What I meant was local (or relative) modules/files such as ./app/foo/index.js, not built-in modules like fs and path. Do you have plans to support that?

ghSP commented 5 years ago

@dgieselaar is this what you are looking for? I believe there is already an extension for that: https://github.com/ChristianKohler/PathIntellisense

dgieselaar commented 5 years ago

@yaas-dev yeah, maybe! This is pretty long ago, I'm not sure what existed at that point. I'm not using the extension anymore either. Appreciate the update though!