Show commands on palette only on relevant profile in WI app#2196
Show commands on palette only on relevant profile in WI app#2196kaumini wants to merge 6 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo VS Code extensions update command palette visibility conditions to enforce profile-based gating. Ballerina commands now show only in the Default profile; MI commands show only in the MI profile when running under WI runtime, otherwise commands remain visible. ChangesProfile-based Command Visibility Gating
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@workspaces/ballerina/ballerina-extension/package.json`:
- Around line 1144-1146: The `when` expression for the command
"ballerina.view.entityDiagram" contains a stray backtick after the && which
breaks the expression; open the object for the "ballerina.view.entityDiagram"
entry and remove the stray backtick from the `when` string so the conditional
reads correctly (e.g., isPersistModelActive && ( ... )), ensuring the boolean
logic and quoted segments around WI.isWiRuntime and
config.integrator.selectedProfile remain unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 92d0692c-a82b-4271-ac96-5cc40bea7149
📒 Files selected for processing (2)
workspaces/ballerina/ballerina-extension/package.jsonworkspaces/mi/mi-extension/package.json
|
Better to merge this after the GA release. Merging such a change in the beta state is not good. |
Purpose
Fixes wso2/product-integrator#1300
Fixes wso2/product-integrator#1087
Goals
Approach
UI Component Development
npm run storybookfrom the root directory to view current components.Manage Icons
User stories
Release note
Documentation
Training
Certification
Marketing
Automation tests
Security checks
Samples
Related PRs
Migrations (if applicable)
Test environment
Learning
Summary by CodeRabbit