jasonnutter / vscode-search-node-modules

Simple plugin for VS Code that allows you to quickly navigate the file inside your project's node_modules directory.
https://marketplace.visualstudio.com/items?itemName=jasonnutter.search-node-modules
MIT License
60 stars 17 forks source link

Error: Search node_modules: No node_modules folder in this workspace. #3

Closed chipit24 closed 7 years ago

chipit24 commented 7 years ago

Just installed the extension and I get this error when trying to search:

Error: Search node_modules: No node_modules folder in this workspace.

My node_modules folder is not in the root of my project, but at src/node_modules; could this be the issue?

jasonnutter commented 7 years ago

Yes, the issue is that your node_modules folder is not in the root of your project. I've been considering adding an option to specify this, sounds like it should be added.

christophior commented 7 years ago

Has this already been added?

jasonnutter commented 7 years ago

This has been added in 1.2.0, which is now available to install.

borekb commented 7 years ago

Our project which is a monorepo which contains many node_modules folders. Is there any chance this module would ever support it? Would be very useful.

jasonnutter commented 7 years ago

@borekb I'll take a look at adding that when I get chance to look into the new multi root workspaces.