feat(vscode): 'Add custom code' command for adding custom code to existing logic app - #9526
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 | ✅ | No change needed |
| Commit Type | ✅ | Optionally use feat label wording |
| Risk Level | ✅ | Medium is correct |
| What & Why | ✅ | No change needed |
| Impact of Change | ✅ | Optionally note removed/added utils |
| Test Plan | ✅ | Unit tests confirmed |
| Contributors | Credit PM/designer if applicable | |
| Screenshots/Videos | Add a wizard screenshot/GIF |
✅ This PR passes template validation. All required checks are satisfied and the declared Medium risk matches the estimate. Addressing the two warnings (contributors, screenshot) is optional and does not block merge.
Powered by: Copilot CLI (claude-opus-4.8) | Last updated: Wed, 12 Aug 2026 20:40:47 GMT
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
There was a problem hiding this comment.
Pull request overview
Adds a VS Code Explorer command for attaching .NET custom code to an existing eligible Logic App project.
Changes:
- Registers and exposes the new context-menu command.
- Reuses the project wizard with a locked Logic App selection.
- Adds eligibility filtering and unit tests.
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
apps/vs-code-react/src/state/createWorkspaceSlice.ts |
Adds custom-code flow state. |
apps/vs-code-react/src/state/__test__/createWorkspaceSlice.test.ts |
Tests state initialization. |
apps/vs-code-react/src/app/createWorkspace/steps/logicAppTypeStep.tsx |
Locks preselected project fields. |
apps/vs-code-react/src/app/createWorkspace/steps/__test__/workspaceNameStep.test.tsx |
Updates test state. |
apps/vs-code-react/src/app/createWorkspace/steps/__test__/workflowTypeStep.test.tsx |
Updates test state. |
apps/vs-code-react/src/app/createWorkspace/steps/__test__/reviewCreateStep.test.tsx |
Updates test state. |
apps/vs-code-react/src/app/createWorkspace/steps/__test__/logicAppTypeStep.test.tsx |
Tests locked custom-code UI. |
apps/vs-code-react/src/app/createWorkspace/steps/__test__/dotNetFrameworkStep.test.tsx |
Updates test state. |
apps/vs-code-react/src/app/createWorkspace/__test__/createWorkspace.test.tsx |
Updates test fixture. |
apps/vs-code-designer/src/package.json |
Contributes the command and menu entry. |
apps/vs-code-designer/src/main.ts |
Initializes eligibility context. |
apps/vs-code-designer/src/constants.ts |
Defines command and context keys. |
apps/vs-code-designer/src/app/utils/workspace.ts |
Removes superseded selection helpers. |
apps/vs-code-designer/src/app/utils/customCodeUtils.ts |
Determines eligible Logic Apps. |
apps/vs-code-designer/src/app/utils/__test__/customCodeUtils.test.ts |
Imports the new eligibility utility. |
apps/vs-code-designer/src/app/commands/registerCommands.ts |
Registers the command. |
apps/vs-code-designer/src/app/commands/createProject/createProject.ts |
Uses centralized eligibility discovery. |
apps/vs-code-designer/src/app/commands/addCustomCode/addCustomCode.ts |
Implements the command workflow. |
apps/vs-code-designer/src/app/commands/addCustomCode/__test__/addCustomCode.test.ts |
Tests command validation and setup. |
apps/vs-code-designer/src/app/commands/__test__/registerCommands.test.ts |
Tests command registration. |
apps/vs-code-designer/src/app/commands/__test__/commandWebviewWrappers.test.ts |
Updates project-webview tests. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…ace folder change, move getWorkspaceCustomCodeFunctionsProjectRoots to workspace utils
1302773
into
main
Commit Type
Risk Level
What & Why
Adds new extension command 'Add custom code' used for adding custom code functions project to existing logic app that wasn't initialized with custom code. Re-uses existing project creation flow
Impact of Change
Test Plan
Contributors
Andrew Eldridge (@andrew-eldridge)