fix(vscode): Fix azure connectors prompt silent fail on startup#9361
fix(vscode): Fix azure connectors prompt silent fail on startup#9361andrew-eldridge wants to merge 2 commits into
Conversation
🤖 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 | ✅ | No change needed |
| Commit Type | ✅ | No change needed |
| Risk Level | ✅ | No change needed |
| What & Why | ✅ | No change needed |
| Impact of Change | ✅ | No change needed |
| Test Plan | ✅ | No change needed |
| Contributors | ✅ | No change needed |
| Screenshots/Videos | Optional; not required for this non-visual change |
Passed: the PR title and body are compliant, and the submitted risk level matches the label and observed scope.
Last updated: Thu, 02 Jul 2026 15:39:31 GMT
…ureConnectorWizardFix
There was a problem hiding this comment.
Pull request overview
This PR addresses a VS Code extension startup issue where the Azure connectors wizard could silently fail due to connection key refresh running (and not being awaited) during activation. It removes connection key refresh from extension startup and confines it to pre-runtime/debug flows, reducing unexpected prompts at activation time.
Changes:
- Removed connection key refresh from extension activation and moved refresh to runtime/debug entry points.
- Refactored parameterization-on-load prompt logic and renamed the command entrypoint to clarify intent.
- Extracted the Logic App debug configuration provider into a shared utility and cleaned up related extension variables.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/vs-code-react/src/app/designer/appV2.tsx | Switches codeful-workflow flag lookup to a local settings key string. |
| apps/vs-code-designer/src/main.ts | Stops refreshing connection keys on activation; uses shared debug config provider and renamed parameterization entrypoint. |
| apps/vs-code-designer/src/extensionVariables.ts | Removes unused ext.codefulEnabled flag. |
| apps/vs-code-designer/src/app/utils/startRuntimeApi.ts | Refreshes connection keys immediately before starting the runtime API. |
| apps/vs-code-designer/src/app/utils/debug.ts | Introduces logicAppDebugConfigProvider to centralize debug configuration resolution logic. |
| apps/vs-code-designer/src/app/utils/codeless/common.ts | Uses non-null assertions for localSettings.Values when reading connector settings. |
| apps/vs-code-designer/src/app/utils/appSettings/localSettings.ts | Ensures Values is initialized when parsing local.settings.json; minor type tightening. |
| apps/vs-code-designer/src/app/utils/appSettings/connectionKeys.ts | Renames and narrows connection key logic to refreshConnectionKeys(projectPath) and updates telemetry naming. |
| apps/vs-code-designer/src/app/utils/appSettings/test/connectionKeys.test.ts | Updates unit tests to the renamed/narrowed connection key refresh behavior and removes obsolete scenarios. |
| apps/vs-code-designer/src/app/commands/pickFuncProcess.ts | Refreshes connection keys prior to debug attach/process selection flow. |
| apps/vs-code-designer/src/app/commands/parameterizeConnections.ts | Renames startup parameterization entrypoint and refactors decision/prompt logic. |
| apps/vs-code-designer/src/app/commands/test/pickFuncProcess.test.ts | Updates mocked connection key refresh function name and imports. |
| const parameterizeConnectionsSetting = getGlobalSetting(parameterizeConnectionsInProjectLoadSetting); | ||
| if (parameterizeConnectionsSetting) { | ||
| return true; | ||
| } |
| return undefined; | ||
| }, | ||
| } |
| * Refreshes the connection keys for the specified Logic App project, or all workspace projects by default. | ||
| * @param {IActionContext} context - The action context. | ||
| * @param {string} projectPath - The path to the Logic App project. If not provided, all Logic App projects in the workspace will be verified. | ||
| * @returns {Promise<void>} A promise that resolves when the verification is complete. | ||
| * @returns {Promise<void>} A promise that resolves when the refresh is complete. | ||
| */ |
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
Commit Type
Risk Level
What & Why
When refreshing connection keys on startup, if azure connectors configuration doesn't exist in local settings then user is prompted with the azureConnectorWizard. This ultimately results in azureConnectorWizard silently failing after 'Use connectors from Azure' is selected since connection keys refresh is unawaited on startup. This is confusing to the user who then has to restart connectors setup when opening designer or running workflow.
As a solution, removed connections key refresh from startup entirely- it is now only done prior to starting runtime, so there is no longer an azureConnectorWizard prompt on startup.
Impact of Change
Test Plan
Contributors
@andrew-eldridge