-
Notifications
You must be signed in to change notification settings - Fork 403
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
fix: desing menubar order default #4231
Conversation
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
warning eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options. 变更概述详细介绍该变更主要修改了 变更
可能相关的 PR
建议的审阅者
序列图由于变更主要涉及细微的逻辑调整,不需要生成序列图。 Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)packages/design/src/browser/menu-bar/menu-bar.contribution.tsx (1)
使用空值合并运算符 运行以下脚本验证现有菜单的顺序是否受到影响: ✅ Verification successful修复成功:菜单栏顺序处理逻辑已正确优化 使用空值合并运算符
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# 描述:检查菜单栏相关的配置和使用情况
# 搜索菜单项order属性的使用情况
rg -A 2 "order.*?[0-9]+" --type tsx --type ts
# 搜索MenuId.DesignMenuBarTopExtra的使用情况
rg "MenuId\.DesignMenuBarTopExtra" --type tsx --type ts
Length of output: 161 Script: #!/bin/bash
# 搜索菜单项order属性的使用情况,不指定文件类型
rg -A 2 "order.*?[0-9]+"
# 搜索MenuId.DesignMenuBarTopExtra的使用情况
rg "MenuId\.DesignMenuBarTopExtra"
# 查找所有可能包含菜单配置的文件
fd "menu" --type f
Length of output: 67729 Script: #!/bin/bash
# 搜索菜单栏相关的代码
rg -A 5 "MenuId\.DesignMenuBar" --type ts --type tsx
# 搜索菜单项的order属性使用
rg -A 5 "order.*?[0-9]+" packages/design/src/browser/menu-bar/
Length of output: 2280 Script: #!/bin/bash
# 搜索所有菜单相关的文件
fd menu-bar
# 查找菜单项的order属性使用情况
rg -A 5 "order.*?(\?\?|[|]{2})" --type ts --type tsx
Length of output: 1050 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 (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4231 +/- ##
=======================================
Coverage 53.94% 53.94%
=======================================
Files 1617 1617
Lines 98230 98230
Branches 20114 20106 -8
=======================================
Hits 52991 52991
Misses 37579 37579
Partials 7660 7660
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Types
Background or solution
修复 order 默认只,避免 order 为 0 时被改成 100
Changelog
Summary by CodeRabbit