Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to define a custom npm registry for visual studio code intellisense/autocompletion?

we have a custom npm registry (specified via npm config set registry http://our.url/path) that also requires a login (npm login --registry=http://our.url/path)

VS Code shows auto completion (intellisense) for npm package names when typing in names in package.json's dependencies. It also shows latest versions for those packages there too. However this only works with public released packages.

As we are using a custom npm registry, how to get VS Code to support auto completion for our own npm packages that only have been published on our own registry (including version number)?

Thanks, toebens

like image 282
toebens Avatar asked Oct 29 '25 13:10

toebens


1 Answers

No, this is not currently possible, it is hard coded to the official registry in this file.

You can open a feature request at https://www.GitHub.com/microsoft/vscode/issues/new

like image 67
Llewey Avatar answered Oct 31 '25 02:10

Llewey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!