feat(vscode): Add "Don't show again" for designer version notifications#9362
Merged
Conversation
Contributor
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
✅ Impact of Change
✅ Test Plan
✅ Contributors
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | None |
| Commit Type | ✅ | None |
| Risk Level | ✅ | None |
| What & Why | ✅ | None |
| Impact of Change | ✅ | None |
| Test Plan | ✅ | None |
| Contributors | ✅ | None |
| Screenshots/Videos | Optional, but helpful for this UI-related change |
PR body passes validation. The advised risk level matches the submitted low-risk classification.
Last updated: Thu, 02 Jul 2026 17:44:11 GMT
Contributor
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a user-facing “Don’t show again” option to the VS Code designer version notification so users can suppress the v1↔v2 prompt across designer opens via extension global state.
Changes:
- Introduces a new globalState key to persist a “suppress designer version notification” preference.
- Updates the designer-version notification flow to offer “Don’t show again” and persist suppression when selected.
- Updates unit tests to mock
globalStateand validate suppression behavior.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| apps/vs-code-designer/src/constants.ts | Adds a new exported globalState key constant for suppression. |
| apps/vs-code-designer/src/app/commands/workflows/openDesigner/openDesignerForLocalProject.ts | Removes a now-unnecessary inline comment before calling the notification helper. |
| apps/vs-code-designer/src/app/commands/workflows/openDesigner/openDesignerForAzureResource.ts | Removes a now-unnecessary inline comment before calling the notification helper. |
| apps/vs-code-designer/src/app/commands/workflows/openDesigner/openDesignerBase.ts | Adds “Don’t show again” option and persists suppression via ext.context.globalState. |
| apps/vs-code-designer/src/app/commands/workflows/openDesigner/test/openDesignerForLocalProject.test.ts | Extends ext.context test setup to include a mocked globalState. |
| apps/vs-code-designer/src/app/commands/workflows/openDesigner/test/openDesignerForAzureResource.test.ts | Extends ext.context test setup and updates expectation for the additional message option. |
| apps/vs-code-designer/src/app/commands/workflows/openDesigner/test/openDesignerBase.test.ts | Adds globalState mocking and new unit tests covering suppression flows. |
lambrianmsft
approved these changes
Jul 2, 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.
Commit Type
Risk Level
What & Why
Quality of life improvement, "Don't show again" option will prevent designer version notification (switch from v1->v2 or v2->v1) from showing each time designer is opened.
Impact of Change
Test Plan
Contributors
@andrew-eldridge