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

Cannot use from a VSCode extension #18

Open
esamattis opened this issue Mar 21, 2019 · 0 comments
Open

Cannot use from a VSCode extension #18

esamattis opened this issue Mar 21, 2019 · 0 comments

Comments

@esamattis
Copy link

No sure this is something you want to even support but while adding Prettier Plugin support to the prettier-vscode extension I noticed that requireg does not work inside the extension without workarounds.

The reason is obvious: VSCode extensions execute in their own node processes provided by the vscode. So if you install to global modules to the system node it does not even try to look for those modules from the vscode extension because it is a completely different node installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant