Skip to content

Conversation

@joelverhagen
Copy link
Contributor

@joelverhagen joelverhagen commented Jul 31, 2025

If the user types in a package name that does not match the exact case of actual package, NuGet and PyPI fail silently. This is because the HTTP metadata request accepts different casing but the extension code rejects it.

if (this.pendingSetup?.name !== args.name) {
return undefined;
}

This addresses the problem and adds the canonical casing and version (for an improved message) to the result. Here is the VS Code PR to use the new properties: microsoft/vscode#259081.

npm and Docker Hub are case sensitive so this is a non-issue. It will fail with "package not found" if the user gets the casing wrong.

Resolve microsoft/vscode#257675.

@connor4312 connor4312 enabled auto-merge August 1, 2025 16:20
@connor4312 connor4312 added this pull request to the merge queue Aug 1, 2025
Merged via the queue into microsoft:main with commit ba5297f Aug 1, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[NuGet MCP] Installing NuGet MCP server halts mid-process, unlike npm

4 participants