Skip to content

fix(vscode): Fix host.json validation for NuGet-based projects, enforce consistency check opt-out - #9707

Merged
Andrew Eldridge (andrew-eldridge) merged 12 commits into
mainfrom
aeldridge/nuget-based-project-consistency-check-fix
Nov 24, 2026
Merged

Andrew Eldridge (andrew-eldridge) merged 12 commits into
mainfrom
aeldridge/nuget-based-project-consistency-check-fix

Conversation

@andrew-eldridge

@andrew-eldridge Andrew Eldridge (andrew-eldridge) commented Nov 13, 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

  • NuGet-based projects should not reference workflows extension bundle in host.json, but project consistency checks incorrectly asserted that the workflows extension bundle reference should always exist
  • Extension setting azureLogicAppsStandard.enableProjectConsistencyChecks should allow user to disable project consistency checks on startup, but they were still applied even if azureLogicAppsStandard.enableProjectConsistencyChecks == false. Updated to check setting

Impact of Change

  • Users: Fixes project consistency check for NuGet-based projects, enforces opt-out setting
  • Developers: Remove extension bundle reference in project root host.json for NuGet-based projects
  • System: Project consistency checks skipped on activation based on user config, NuGet-based projects resolve bundle metadata from design-time host

Test Plan

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

Contributors

Andrew Eldridge (@andrew-eldridge)

@andrew-eldridge Andrew Eldridge (andrew-eldridge) added VSCode Issues or PRs specific to VS Code extension risk:medium Medium risk change with potential impact labels Nov 13, 2026
Copilot AI balanced review requested due to automatic review settings November 13, 2026 17:49
@github-actions

github-actions Bot commented Nov 13, 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): Fix host.json validation for NuGet-based projects, enforce consistency check opt-out
  • Issue: The title is descriptive and accurately summarizes the primary changes. The repeated fix wording is slightly redundant, but it remains clear.
  • Recommendation: Optional improvement: fix(vscode): handle NuGet host validation and consistency-check opt-out

✅ Commit Type

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

✅ Risk Level

  • The selected Medium risk level matches the risk:medium label and is appropriate for the scope: this changes VS Code startup behavior, project consistency validation, NuGet project conversion, task generation, and design-time bundle metadata handling. The advised risk level is medium, matching the submitter's estimate.

✅ What & Why

  • Current: Clearly explains the NuGet host.json validation issue and why the consistency-check opt-out setting was not being honored.
  • Issue: No required information is missing.
  • Recommendation: The section is acceptable as written. Optionally consolidate the two bullets into a short paragraph that explicitly mentions the affected VS Code extension behavior.

✅ Impact of Change

  • The Users, Developers, and System impact areas are all populated and align with the code changes.
  • Recommendation:
    • Users: Correctly describe that NuGet-based projects no longer receive an invalid extension-bundle requirement and that consistency checks can be disabled.
    • Developers: Correctly document the root host.json and debug-task behavior changes for NuGet projects.
    • System: Correctly describe startup behavior and design-time bundle metadata resolution.

✅ Test Plan

  • Unit tests are checked and are backed by substantial unit-test additions and updates in the diff, including coverage for consistency-check opt-out behavior, NuGet host.json generation, project conversion, bundle-version resolution, startup ordering, and task generation.
  • E2E testing is not required because unit tests are present.

⚠️ Contributors

  • The submitter is listed as a contributor.
  • Consider also crediting PMs, designers, reviewers, or other contributors who helped shape or validate the change, if applicable. This is optional and does not block approval.

⚠️ Screenshots/Videos

  • No screenshots or videos are included. This is acceptable because the changes are primarily extension behavior, project-file generation, and startup logic rather than visual UI changes.
  • Add screenshots or a short recording only if there are user-visible VS Code UI changes that should be demonstrated.

Summary Table

Section Status Recommendation
Title ✅ Optional: remove the redundant Fix wording
Commit Type ✅ Keep only fix selected
Risk Level ✅ Medium matches the risk:medium label and diff scope
What & Why ✅ No changes required
Impact of Change ✅ No changes required
Test Plan ✅ Unit-test coverage is present in the diff
Contributors ⚠️ Add any PM, designer, or reviewer credits if applicable
Screenshots/Videos ⚠️ Not required unless there are visual changes to demonstrate

The PR title and body pass review. The advised risk level is medium, which matches the submitted risk level and label.


Powered by: Logic App (fallback) | Last updated: Tue, 24 Nov 2026 04:48:59 GMT

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

📊 Coverage Check

The following changed files need attention:

⚠️ apps/vs-code-designer/src/app/commands/workflows/connectionView/panels/connectionPanel.ts - 36% covered (needs improvement)
⚠️ apps/vs-code-designer/src/app/commands/workflows/designer-v2/panels/localDesignerV2Panel.ts - 47% covered (needs improvement)
⚠️ apps/vs-code-designer/src/app/commands/workflows/designer/panels/localDesignerPanel.ts - 69% covered (needs improvement)
⚠️ apps/vs-code-designer/src/app/commands/workflows/switchToDotnetProject.ts - 78% covered (needs improvement)
⚠️ apps/vs-code-designer/src/app/utils/vsCodeConfig/settings.ts - 53% covered (needs improvement)

Please add tests for the uncovered files before merging.

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.

🟡 Changes recommended

Automatic consistency checks can erase custom host.json settings by replacing the file with defaults, and workspace-level opt-outs are ignored, leaving users unable to prevent these rewrites.

2 open issues
What changed in this PR

Updates project consistency handling in the Logic Apps VS Code extension to distinguish NuGet runtime configuration from bundle-based design-time configuration and respect the consistency-check opt-out.

Changes:

  • Adds NuGet-specific root host.json generation and validation while retaining the design-time bundle reference.
  • Adds setting guards to activation, command execution, and design-time startup, preserving required design-time setup.
  • Adds regression tests for packaging behavior and disabled consistency checks.
File Description
apps/​vs-code-designer/​src/​main.ts Gates startup consistency checks on the setting.
apps/​vs-code-designer/​src/​app/​utils/​codeless/​startDesignTimeApi.ts Limits setup to design-time files when checks are disabled.
apps/​vs-code-designer/​src/​app/​utils/​codeless/​__test__/​startDesignTimeApi.test.ts Tests design-time-only setup under opt-out.
apps/​vs-code-designer/​src/​app/​projectConsistency/​projectFilesConsistency.ts Makes root host validation and generation packaging-aware.
apps/​vs-code-designer/​src/​app/​projectConsistency/​fileGenerators/​host.ts Adds a NuGet host generator without an extension bundle.
apps/​vs-code-designer/​src/​app/​projectConsistency/​fileGenerators/​__test__/​host.test.ts Tests the NuGet host generator.
apps/​vs-code-designer/​src/​app/​projectConsistency/​__test__/​projectFilesConsistency.test.ts Tests NuGet root repair and separate design-time bundle behavior.
apps/​vs-code-designer/​src/​app/​commands/​runProjectConsistencyCheck.ts Skips the consistency command when checks are disabled.
apps/​vs-code-designer/​src/​app/​commands/​__test__/​runProjectConsistencyCheck.test.ts Tests enabled and disabled command paths.
apps/​vs-code-designer/​src/​__test__/​main.test.ts Tests activation with consistency checks disabled.

Review effort: Balanced

Comment thread apps/vs-code-designer/src/main.ts Resolved

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.

🟡 Changes recommended

Unresolved version-handling and startup-ordering defects can prevent designer and connection-panel loading, while failed project conversion can leave users’ local settings unrestored.

3 open issues
2 resolved since last review

Review effort: Balanced

…defaultBundleVersion if workflow-designtime missing

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.

🟡 Changes recommended

The fallback can report the wrong host version for a pinned design-time host by using the highest installed or cached bundle version instead of the selected bundle path.

1 open issue
3 resolved since last review

Review effort: Balanced

@andrew-eldridge
Andrew Eldridge (andrew-eldridge) merged commit b454249 into main Nov 24, 2026
49 checks passed
@andrew-eldridge
Andrew Eldridge (andrew-eldridge) deleted the aeldridge/nuget-based-project-consistency-check-fix branch November 24, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-validated risk:medium Medium risk change with potential impact VSCode Issues or PRs specific to VS Code extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants