Skip to content

Cannot use from a VSCode extension #18

@esamattis

Description

@esamattis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions