Repository navigation
Package Source Mapping VS Settings now has command to invoke GitHub Copilot - #7613
Merged
Merged
Conversation
donnie-msft
requested review from
Nigusu-Allehu,
jebriede,
martinrrm and
nkolev92
August 4, 2026 14:46
martinrrm
approved these changes
Aug 5, 2026
jebriede
reviewed
Aug 6, 2026
jebriede
left a comment
Contributor
There was a problem hiding this comment.
Looks great! Just one concern about overlapping command ids.
jebriede
approved these changes
Aug 6, 2026
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#15021
Description
Introduce a Button (Command) to the Package Source Mapping VS Settings which attempts to prompt GitHub Copilot with "Review this repository's package source mappings.", invoking the NuGet MCP tool to review supply chain security.
The new button appears below the package source mapping array, highlighted here by a red rectangle:
MCP Behavior
Implementation details
Adds
PackageSourceMappingService, modeled afterFixVulnerabilitiesService, to launch GitHub Copilot with the current solution context and Package Source Mapping MCP tool.Refactors
FixVulnerabilitiesServiceto use the sharedCopilotToolInvocationService.HandleSessionErrormethod for error messaging and telemetry.Adds Package Source Mapping navigation telemetry and test coverage.
Adds
PackageSourceMapperCommandand Unified Settings registration for the button.A
PackageSourceMappingServiceis added, closely mimicking theFixVulnerablitiesService.Refactored
FixVulnerablitiesService:Introduces
CopilotToolSessionErroras the shared session error model.FixVulnerabilitiesWithCopilotErrorType.Add a NavigatedTelemetryEvent event with matching test coverage
PR Checklist