Audit Sources Changed event triggers Package Manager UI to refresh#7022
Merged
Conversation
zivkan
reviewed
Jan 1, 2026
kartheekp-ms
reviewed
Jan 7, 2026
44fb822 to
24615bf
Compare
65ea9b8 to
27a8a90
Compare
donnie-msft
commented
Jan 16, 2026
27a8a90 to
1c7c9c7
Compare
…kageSourcesChanged
zivkan
approved these changes
Jan 16, 2026
zivkan
left a comment
Member
There was a problem hiding this comment.
customer experience improvement, with 60 fewer lines. Fantastic! 👍
This was referenced Jan 23, 2026
martinrrm
added a commit
that referenced
this pull request
Jun 2, 2026
…kage Source Mapping enabled When Package Source Mapping is enabled and an installed package needs a new mapping, NuGet auto-creates one. That mapping is saved (raising SettingsChanged) before the package changes are applied. PR #7022 made Settings_SettingsChanged start a fire-and-forget refresh, which during install reads pre-install state and races the post-install refresh, leaving the details pane stale (Install dropdown still shown). Defer the settings-changed refresh while an action is executing; the action completion already performs a full refresh. Co-authored-by: Copilot <[email protected]>
2 tasks
martinrrm
added a commit
that referenced
this pull request
Jun 2, 2026
…kage Source Mapping enabled (#7441) When Package Source Mapping is enabled and an installed package needs a new mapping, NuGet auto-creates one. That mapping is saved (raising SettingsChanged) before the package changes are applied. PR #7022 made Settings_SettingsChanged start a fire-and-forget refresh, which during install reads pre-install state and races the post-install refresh, leaving the details pane stale (Install dropdown still shown). Defer the settings-changed refresh while an action is executing; the action completion already performs a full refresh. Co-authored-by: Copilot <[email protected]>
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#14688
Description
The Package Manager UI now automatically refreshes and correctly reflects vulnerability data with the new state of the vulnerability resources.
For example, adding/deleting an Audit Source from VS Options will now either show/not-show package vulnerabilities (if that audit source was the sole provider of vulnerability data for the solution).
Removes the legacy
PackageSourcesChangedevent from the SourcesService and the listener from the PM UI PackageManagerControl.Settings.SettingsChangedtriggers a newRefreshAfterSettingsChangedevent which covers the previous PackageSourcesChanged event (now removed) and the new behavior around changes to audit sources.UI Refresh Behavior:
This PR moves us closer towards completing Remove or improve configuration change events Home#8479
PR Checklist