Skip to content

revert changes to npmView - #319352

Merged
Martin Aeschlimann (aeschli) merged 1 commit into
mainfrom
aeschli/total-leech-417
Jun 1, 2026
Merged

Martin Aeschlimann (aeschli) merged 1 commit into
mainfrom
aeschli/total-leech-417

Conversation

@aeschli

Copy link
Copy Markdown
Contributor

Fixes #314347

Copilot AI review requested due to automatic review settings June 1, 2026 14:47
@aeschli
Martin Aeschlimann (aeschli) enabled auto-merge (squash) June 1, 2026 14:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the npm extension’s package.json dependency-version suggestion logic to restore compatibility with custom npm registries (e.g. configured via workspace .npmrc), addressing the regression reported in #314347.

Changes:

  • Adjusts the npm view invocation to query the package without @latest and attempts to read the latest version from dist-tags.latest.
  • Updates parsing to prefer dist-tags.latest (falling back to version) when computing the “latest version” used for suggestions/hover info.
Show a summary per file
File Description
extensions/npm/src/features/packageJSONContribution.ts Changes how npm view is invoked and parsed to obtain the latest version for dependency version suggestions and related package info.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

@aeschli
Martin Aeschlimann (aeschli) merged commit a32f3ae into main Jun 1, 2026
26 checks passed
@aeschli
Martin Aeschlimann (aeschli) deleted the aeschli/total-leech-417 branch June 1, 2026 17:23
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 1, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jul 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

package.json doesn't autocomplete versions for packages from custom npm registries since 1.117

3 participants