Repository navigation
Add Error List Fixer infrastructure and fixer to launch Fix Vulnerabilities - #7556
Merged
Merged
Conversation
jebriede
force-pushed
the
dev-jebriede-NuGetAuditFixer
branch
from
July 14, 2026 22:30
dfa47e8 to
eb953fc
Compare
kartheekp-ms
previously approved these changes
Jul 15, 2026
Nigusu-Allehu
previously approved these changes
Jul 15, 2026
nkolev92
reviewed
Jul 15, 2026
nkolev92
left a comment
Member
There was a problem hiding this comment.
Sorry for the delay.
There's been a lot of restore/pack PRs that are not assigned to me via round robin that I still have to review, and unfortunately round robin doesn't take that into account super well.
donnie-msft
reviewed
Jul 15, 2026
jebriede
dismissed stale reviews from Nigusu-Allehu and kartheekp-ms
via
July 15, 2026 22:24
f2fec40
kartheekp-ms
approved these changes
Jul 15, 2026
donnie-msft
approved these changes
Jul 16, 2026
donnie-msft
left a comment
Contributor
There was a problem hiding this comment.
Could we get a screenshot of the fixer?
nkolev92
approved these changes
Jul 16, 2026
Contributor
Author
This was referenced Jul 25, 2026
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: https://github.com/NuGet/Client.Engineering/issues/3820
Description
Adds reusable infrastructure for NuGet Error List entry fixers, and the first fixer built on it: a sparkle action that launches the existing "Fix Vulnerabilities with GitHub Copilot" flow directly from a NuGet Audit warning (in addition to the existing Solution Explorer info bar entry point).
Infrastructure (reusable for future
NU*Error List fixers)NuGetErrorListEntryFixerBase— baseIErrorListEntryFixerproviding the shared sparkle icon,CanFix/TryFix, and fix dispatch. A new fixer only supplies its supported codes, tooltip, and fix action.IErrorListEntryInspector+SupportedCodesErrorListInspector— error-code matching against a fixer's supported set.FixVulnerabilitiesSource— a single, type-safe source of truth mapping each entry point to both its telemetryNavigationOriginand its Copilot client id.IFixVulnerabilitiesService.LaunchFixVulnerabilitiesAsyncnow takes this source, so each entry point is attributed correctly (previously every launch reported the info bar).The fixer
NuGetAuditErrorListEntryFixer— surfaces the sparkle on NuGet Audit entries (NU1901–NU1904) and launches the Copilot fix flow. It is ordered before Visual Studio's built-in Copilot Error List fixer so NuGet takes priority for these codes.Key implementation notes
ErrorSourceisBuild, notNuGet. Matching is therefore based on the error code alone (validated end-to-end:NuGetLogCode.NUxxxx.ToString()equals the entry'sGetName()value).NuGet.SolutionRestoreManager(a lighter assembly that is already loaded when audit rows exist, and which already hosts the sibling info bar entry point). The Copilot-backedFixVulnerabilitiesServicestays inNuGet.Toolsand is imported lazily, so theCanFixhot path never loadsNuGet.Tools/Copilot assemblies.NavigationOriginandIFixVulnerabilitiesServicewere moved toNuGet.VisualStudio.Commonso the contract can stay strongly typed without inverting assembly references.Localization
Title_FixVulnerabilitiesWithCopilotstring inNuGet.SolutionRestoreManager(resx + Designer + regenerated.xlffor all locales).Testing
TryFixpresent/missing-service/non-matching paths, MEF metadata), the inspector (matching, build-sourced entries, null-guard), and the telemetry event (all origins × error types).PR Checklist
Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.