Skip to content

VS Options Clear NuGet local resources action now uses OK/Cancel - #7684

Merged
donnie-msft merged 1 commit into
devfrom
dev-donnie-msft-clearLocalEsc
Sep 5, 2026
Merged

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

Conversation

@donnie-msft

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#15020

Description

The "Clear NuGet local resources" command on the General Visual Studio options page was previously using Yes/No options.
This means that using ESC (escape) key does not cancel the command.
Since the modal prompt is just a precaution to prevent unintentionally starting the clearing process, we can use OK/Cancel.

  • Creates a helper for the OK/Cancel style of dialog
  • Adds "Select OK to continue." to the original message for clarity.
image

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. No VS options docs call out the explicit strings

@donnie-msft
donnie-msft requested a review from a team as a code owner September 3, 2026 19:01
@donnie-msft
donnie-msft merged commit 25c2145 into dev Sep 5, 2026
18 checks passed
@donnie-msft
donnie-msft deleted the dev-donnie-msft-clearLocalEsc branch September 5, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The "Clear NuGet local resources" window can't be closed by pressing the Esc key

3 participants