fix(vscode): Make codeful setting WORKFLOW_CODEFUL_ENABLED source of truth, remove redundant telemetry/context#9335
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
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | No change needed |
| Commit Type | ✅ | No change needed |
| Risk Level | Update to Medium to better match the scope |
|
| What & Why | ✅ | No change needed |
| Impact of Change | Add a little more specificity about affected flows | |
| Test Plan | ✅ | No change needed |
| Contributors | ✅ | Optional: add any additional contributors |
| Screenshots/Videos | ✅ | No change needed |
Overall: the PR body mostly passes, but I recommend raising the risk level to Medium to better reflect the cross-cutting scope of the change.
Last updated: Wed, 01 Jul 2026 21:39:28 GMT
🤖 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
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | |
| Commit Type | ✅ | |
| Risk Level | Change to Medium to better match the scope of the diff |
|
| What & Why | ✅ | |
| Impact of Change | ✅ | |
| Test Plan | ✅ | |
| Contributors | ✅ | |
| Screenshots/Videos | Add only if this is intended to document a visual change |
Please update the PR risk level to Medium so it matches the breadth of the code changes. The rest of the PR body looks compliant, and the test plan passes because unit tests were updated in the diff.
Last updated: Wed, 01 Jul 2026 01:55:11 GMT
There was a problem hiding this comment.
Pull request overview
This PR updates the VS Code designer extension’s “codeful” project detection to rely on the WORKFLOW_CODEFUL_ENABLED app setting (from local.settings.json) rather than inferring from .csproj contents, and removes now-redundant context/telemetry plumbing related to codeful workflow file detection.
Changes:
- Switches multiple workflows/commands (deploy, create workflow, publish) to use
hasCodefulWorkflowSetting(...)as the primary codeful signal. - Removes the editor/workspace scanning logic that tracked codeful workflow C# files via VS Code contexts.
- Introduces
workflowCodefulEnabledKeyand updates code generation to setWORKFLOW_CODEFUL_ENABLEDfor codeful templates.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/vs-code-designer/src/main.ts | Removes registration of the codeful workflow context listener. |
| apps/vs-code-designer/src/constants.ts | Adds workflowCodefulEnabledKey; removes older redundant constants/context keys. |
| apps/vs-code-designer/src/app/utils/verifyIsProject.ts | Uses the codeful setting flag to set isCodeful context and influence project validation. |
| apps/vs-code-designer/src/app/utils/extension.ts | Removes workspace scanning + context update utilities for codeful workflow C# files. |
| apps/vs-code-designer/src/app/utils/codeless/startDesignTimeApi.ts | Updates design-time local settings generation to determine “codeful” status (currently via SDK reference). |
| apps/vs-code-designer/src/app/utils/codeful.ts | Renames/refines helpers (hasCodefulSdkReference) and updates cache invalidation gating. |
| apps/vs-code-designer/src/app/utils/test/extension.test.ts | Removes tests for deleted context/scanning utilities. |
| apps/vs-code-designer/src/app/utils/test/codeful.test.ts | Updates tests to validate cache invalidation gating via local.settings.json flag. |
| apps/vs-code-designer/src/app/commands/publishCodefulProject.ts | Switches “is codeful” check to hasCodefulWorkflowSetting. |
| apps/vs-code-designer/src/app/commands/deploy/deploy.ts | Switches deploy path branching to hasCodefulWorkflowSetting. |
| apps/vs-code-designer/src/app/commands/createWorkflow/createWorkflow.ts | Switches create-workflow metadata inference to hasCodefulWorkflowSetting. |
| apps/vs-code-designer/src/app/commands/createWorkflow/createLogicAppWorkflow.ts | Switches create-workflow inference to hasCodefulWorkflowSetting. |
| apps/vs-code-designer/src/app/commands/createWorkflow/test/createLogicAppWorkflow.test.ts | Updates mocks/assertions to hasCodefulWorkflowSetting. |
| apps/vs-code-designer/src/app/commands/createNewCodeProject/CodeProjectBase/CreateLogicAppWorkspace.ts | Writes WORKFLOW_CODEFUL_ENABLED via workflowCodefulEnabledKey for codeful templates; removes redundant telemetry/setting. |
| apps/vs-code-designer/src/app/commands/test/publishCodefulProject.test.ts | Updates mocks/assertions to hasCodefulWorkflowSetting. |
| apps/vs-code-designer/src/app/commands/test/commandWebviewWrappers.test.ts | Updates mocks/assertions to hasCodefulWorkflowSetting. |
…defulDeployTelemetry
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
❌ PR Validation ErrorAn error occurred while validating your PR. Please try again later or contact the maintainers. Error: API request failed with status 503 |
…defulDeployTelemetry
…/v5.961] (#9358) fix(vscode): Make codeful setting WORKFLOW_CODEFUL_ENABLED source of truth, remove redundant telemetry/context (#9335) Preserve hotfix-only #9232 codeful extension-bundle settings (v5.961) while applying #9335's WORKFLOW_CODEFUL_ENABLED source-of-truth refactor. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Commit Type
Risk Level
What & Why
Updates 'isCodeful' checks to use the WORKFLOW_CODEFUL_ENABLED app setting as source of truth rather than csproj content, which is a less reliable/standard indicator.
Impact of Change
Test Plan
Contributors
@andrew-eldridge