Skip to content

Remove obsolete UI-thread dependency from credential setup - #7676

Merged
nkolev92 merged 2 commits into
NuGet:devfrom
lifengl:dev-lifengl-removeObsoleteServerModeCheck
Sep 1, 2026
Merged

nkolev92 merged 2 commits into
NuGet:devfrom
lifengl:dev-lifengl-removeObsoleteServerModeCheck

Conversation

@lifengl

@lifengl lifengl commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Bug

Fixes:

Related: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/3053202

Description

Visual Studio's Nexus server mode was removed, so VSSM_Server can no longer be returned. Credential-service initialization still queries that value on the UI thread even though all supported modes produce nonInteractive: false.

Remove the obsolete query and preserve nonInteractive: false, avoiding an unnecessary UI-thread dependency when credential setup is reached from project evaluation or design-time builds. This does not change credential-provider interactivity or address other UI-affine credential paths.

Tests are not added because the removed branch is unreachable in supported Visual Studio modes and the resulting nonInteractive value is unchanged.

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.

Visual Studio no longer supports the Nexus server mode, so the check always returns false after switching to the UI thread. Preserve current credential behavior without introducing that unnecessary UI dependency.

Co-authored-by: Copilot <[email protected]>
@dotnet-policy-service dotnet-policy-service Bot added the Community PRs created by someone not in the NuGet team label Aug 31, 2026
@lifengl
lifengl marked this pull request as ready for review August 31, 2026 21:53
@lifengl
lifengl requested a review from a team as a code owner August 31, 2026 21:53
@lifengl
lifengl requested review from kartheekp-ms and zivkan August 31, 2026 21:53
nkolev92
nkolev92 previously approved these changes Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PRs created by someone not in the NuGet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants