Repository navigation
fix(vscode): Fix host.json validation for NuGet-based projects, enforce consistency check opt-out - #9707
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
|
| 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
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
There was a problem hiding this comment.
🟡 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.jsongeneration 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
…get-based-project-consistency-check-fix
…get-based-project-consistency-check-fix
There was a problem hiding this comment.
🟡 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
There was a problem hiding this comment.
🟡 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


Commit Type
Risk Level
What & Why
host.json, but project consistency checks incorrectly asserted that the workflows extension bundle reference should always existazureLogicAppsStandard.enableProjectConsistencyChecksshould allow user to disable project consistency checks on startup, but they were still applied even ifazureLogicAppsStandard.enableProjectConsistencyChecks == false. Updated to check settingImpact of Change
Test Plan
Contributors
Andrew Eldridge (@andrew-eldridge)