-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
[json] package.json: complete package versions from scopes or private registries #54248
Comments
This feature is probably being provided by https://github.com/Microsoft/vscode-npm-scripts, you should file the request there |
This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. Happy Coding! |
The current support is being provided by the built-in package with ID |
@rjgotten my mistake 😅 |
Thanks for the hint. We should try if |
@aeschli I assume that means quite a lot of work if you want to replicate |
Yes, of course, the current code supports only the default registry lookup. |
Probably the best would be to call |
Ive tried to follow the various issues mentioned in here but it does not seem that there has been a conclusion on this issue. It seems like many people assume this is an extension, but actually its not and its provided by core functionality, is that correct? I would love this feature and think it would be an excellent addition to vscode. |
nth'ing this -- it's very annoying when your work uses a private registry for internal libraries to not get any intellisense for version info on them just because vscode has some hard-coded package that (very weirdly) only looks to npm. Especially since github does registries now as well, and microsoft owns both npm and github... |
I use this extension: https://github.com/pgsandstrom/package-json-upgrade |
@meriturva thanks for the rec, that does provide the functionality I wanted for private registries! |
While there are numerous issues explaining that package names cannot be autocompleted for scopes on the official registry or for private registries, that doesn't mean you shouldn't be able to autocomplete package versions.
And I'd argue that atleast for private registries autocompleting the version is generally more important than autocompleting the name. The name is usually well known for internal dependencies. But the version range available; that not so much...
Anyway, for scoped packages and even for scopes that are redirected to other registries using
registry
entries in.npmrc
, the versions can be gotten from a simplenpm view
command, which returns a JSON structure that also holds all of a package's versions. No reason the functionality for that command couldn't be tapped for autocompletion as well.The text was updated successfully, but these errors were encountered: