Skip to content

fix(vscode): Make codeful setting WORKFLOW_CODEFUL_ENABLED source of truth, remove redundant telemetry/context#9335

Merged
andrew-eldridge merged 9 commits into
mainfrom
aeldridge/codefulDeployTelemetry
Jul 1, 2026
Merged

fix(vscode): Make codeful setting WORKFLOW_CODEFUL_ENABLED source of truth, remove redundant telemetry/context#9335
andrew-eldridge merged 9 commits into
mainfrom
aeldridge/codefulDeployTelemetry

Conversation

@andrew-eldridge

@andrew-eldridge andrew-eldridge commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Commit Type

  • feature - New functionality
  • fix - Bug fix
  • refactor - Code restructuring without behavior change
  • perf - Performance improvement
  • docs - Documentation update
  • test - Test-related changes
  • chore - Maintenance/tooling

Risk Level

  • Low - Minor changes, limited scope
  • Medium - Moderate changes, some user impact
  • High - Major changes, significant user/system impact

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

  • Users: May fix codeful project detection in some edge case scenarios
  • Developers: Removes code for redundant telemetry and extension context
  • System: N/A

Test Plan

  • Unit tests added/updated
  • E2E tests added/updated
  • Manual testing completed
  • Tested in:

Contributors

@andrew-eldridge

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

🤖 AI PR Validation Report

PR Review Results

Thank you for your submission! Here's detailed feedback on your PR title and body compliance:

PR Title

  • Current: fix(vscode): Make codeful setting WORKFLOW_CODEFUL_ENABLED source of truth, remove redundant telemetry/context
  • Issue: None — the title is specific, descriptive, and matches the scope of the changes.
  • Recommendation: No change needed.

Commit Type

  • Properly selected (fix).
  • Only one commit type is checked, which is correct.

⚠️ Risk Level

  • The submitted risk level is Low, but the diff touches multiple code paths across command handling, local settings generation, startup logic, and shared utilities. That scope is broader than a minor change.
  • Recommendation: Update the PR risk label/body to Medium unless your team explicitly treats this kind of cross-cutting internal behavior change as low risk.

What & Why

  • Current: 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.
  • Issue: None — concise and clear.
  • Recommendation: No change needed.

⚠️ Impact of Change

  • The section is present and gives a reasonable summary, but it could be a bit more explicit about the behavior change in local settings generation and design-time/startup flows.
  • Recommendation:
    • Users: Mention that codeful project detection and publish/build behavior now rely on WORKFLOW_CODEFUL_ENABLED, which may change whether projects are treated as codeful in some cases.
    • Developers: Mention the cleanup of deprecated telemetry/context and the rename from csproj-based detection to settings-based detection.
    • System: Mention any impact on startup/design-time local settings generation and monitoring view unit-test support gating.

Test Plan

  • Unit tests were added/updated in the diff, which satisfies the test-plan requirement.
  • Manual testing is also checked, which is fine.
  • No failure here because automated tests are present.

⚠️ Contributors

  • A contributor is listed (@andrew-eldridge), which is good.
  • Recommendation: No required change, though if others helped with design/review, consider adding them for credit.

Screenshots/Videos

  • No screenshots are required for this change; it is not a visual/UI-focused change.
  • Blank is acceptable here.

Summary Table

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

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

🤖 AI PR Validation Report

PR Review Results

Thank you for your submission! Here's detailed feedback on your PR title and body compliance:

PR Title

  • Current: fix(vscode): Make codeful setting WORKFLOW_CODEFUL_ENABLED source of truth, remove redundant telemetry/context
  • Issue: No blocking issue. The title is specific and descriptive.
  • Recommendation: None required.

Commit Type

  • Properly selected (fix).
  • Only one commit type is selected, which is correct.

⚠️ Risk Level

  • The selected risk level is Low, but the diff removes several code paths, telemetry, and extension context behavior across multiple VS Code flows. That is broader than a minor/safe change, so the advised risk is medium.
  • Recommendation: Update the PR to Medium - Moderate changes, some user impact unless you can further narrow the scope.

What & Why

  • Current: 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.
  • Issue: Clear and concise.
  • Recommendation: None required.

Impact of Change

  • The section is present and gives reasonable impact coverage.
  • Recommendation:
    • Users: Good as-is.
    • Developers: Good as-is.
    • System: Good as-is.

Test Plan

  • Unit tests were added/updated in the diff, which satisfies the test-plan requirement.
  • Manual testing is also checked, but automated unit coverage is already sufficient.

⚠️ Contributors

  • Present (@andrew-eldridge).
  • Recommendation: Consider adding any PM/Designer/peer contributors if applicable, but this is not required.

⚠️ Screenshots/Videos

  • Not provided.
  • Recommendation: No action required unless this PR is expected to change UI/visual behavior.

Summary Table

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 workflowCodefulEnabledKey and updates code generation to set WORKFLOW_CODEFUL_ENABLED for 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.

Comment thread apps/vs-code-designer/src/app/utils/codeless/startDesignTimeApi.ts
Comment thread apps/vs-code-designer/src/app/utils/codeless/startDesignTimeApi.ts
Comment thread apps/vs-code-designer/src/constants.ts
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

📊 Coverage Check

The following changed files need attention:

⚠️ apps/vs-code-designer/src/app/commands/createNewCodeProject/CodeProjectBase/CreateLogicAppWorkspace.ts - 75% covered (needs improvement)
⚠️ apps/vs-code-designer/src/app/utils/appSettings/localSettings.ts - 22% covered (needs improvement)
⚠️ apps/vs-code-designer/src/app/utils/codeful.ts - 67% covered (needs improvement)
⚠️ apps/vs-code-designer/src/app/utils/verifyIsProject.ts - 43% covered (needs improvement)

Please add tests for the uncovered files before merging.

@lambrianmsft lambrianmsft added the risk:low Low risk change with minimal impact label Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

❌ PR Validation Error

An error occurred while validating your PR. Please try again later or contact the maintainers.

Error: API request failed with status 503

@andrew-eldridge andrew-eldridge merged commit 1afcdc4 into main Jul 1, 2026
40 checks passed
@andrew-eldridge andrew-eldridge deleted the aeldridge/codefulDeployTelemetry branch July 1, 2026 22:37
lambrianmsft added a commit that referenced this pull request Jul 2, 2026
…/v5.970] (#9359)

fix(vscode): Make codeful setting WORKFLOW_CODEFUL_ENABLED source of truth, remove redundant telemetry/context (#9335)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
lambrianmsft added a commit that referenced this pull request Jul 2, 2026
…/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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-validated risk:low Low risk change with minimal impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants