snyk / vulncost

Find security vulnerabilities in open source npm packages while you code
https://marketplace.visualstudio.com/items?itemName=snyk-security.vscode-vuln-cost
MIT License
202 stars 35 forks source link

Commands not found when running inside VScode under WSL #57

Open darkvertex opened 3 years ago

darkvertex commented 3 years ago

I'm using VSCode's WSL extension that runs VSCode's core under Windows Subsystem for Linux, giving me an Ubuntu environment. It generally works pretty well.

Most extensions work seamlessly but for some reason yours apparently fails to register its commands while I'm in WSL mode.

The menu items appear for me, but clicking any of them will tell me their command was "not found": image

darkvertex commented 3 years ago

Hmmm... just tried outside WSL and it's broken there too.

Could it just be broken on Windows altogether? 🤔

darkvertex commented 3 years ago

I see you have a big try-except block before the commands get registered: https://github.com/snyk/vulncost/blob/master/src/extension.js#L26

Where would I see the output/error if there is one?

bmvermeer commented 3 years ago

Not sure, but maybe you can find something in Help -> Toggle Developer Tools