Skip to content

Always refresh after Package Source changes in VS Options - #7092

Merged
donnie-msft merged 1 commit into
devfrom
dev-donnie-msft-refreshPackageSources
Feb 3, 2026
Merged

donnie-msft merged 1 commit into
devfrom
dev-donnie-msft-refreshPackageSources

Conversation

@donnie-msft

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#14693

Description

The Issue highlights a scenario where refreshing the entire Sources options page is necessary.
In this example, a user-level package source named "Microsoft Visual Studio Offline Packages" hides a source with the same name from the Visual Studio installation directory's nuget.config.

When this user-level package source is deleted, it unhides the machine-wide package source.
To display this source, the machine-wide source table needs to be refreshed.

The cost to refresh the Sources settings in VS Options is low. The simplest solution to this and possibly other unknown edge cases is to just refresh all Sources setting data when a package source is modified.

Simplifies logic by removing the detection of Package Source name changes. Now a removal or any edit to a package source will refresh the data.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. NA

@donnie-msft
donnie-msft requested a review from a team as a code owner January 31, 2026 00:33
@donnie-msft
donnie-msft merged commit 32272e9 into dev Feb 3, 2026
16 checks passed
@donnie-msft
donnie-msft deleted the dev-donnie-msft-refreshPackageSources branch February 3, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants