-
-
Notifications
You must be signed in to change notification settings - Fork 366
Remove unneccessary CreateSettingPanel by introducing need check #3300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unneccessary CreateSettingPanel by introducing need check #3300
Conversation
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. If the flagged items are 🤯 false positivesIf items relate to a ...
|
🥷 Code experts: no user matched threshold 10 See detailsTo learn more about /:\ gitStream - Visit our Docs |
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
📝 WalkthroughWalkthroughThe pull request modifies three components to enhance settings panel handling. The Changes
Sequence Diagram(s)sequenceDiagram
participant PV as PluginViewModel
participant P as Plugin (ISettingProvider)
note over PV,P: Evaluate settings panel requirement
PV->>P: Check HasSettingControl
alt Plugin is JsonRPCPluginBase
P->>P: Call NeedCreateSettingPanel()
end
alt If panel creation is required
PV->>P: Call CreateSettingPanel()
else No panel needed
PV-->>P: Skip panel creation
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (6)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Remove unneccessary CreateSettingPanel by introducing need check
Follow on with #3260, we can use
NeedCreateSettingPanel
function to check if we need to create settings panel to remove unnecessary calling ofCreateSettingPanel
.Test
CreateSettingPanel
when theirSettingsTemplate.yaml
files do not have any configurations.